Jump to content
Ghost Recon.net Forums

Lighting problem


Recommended Posts

I have a problem with my lighting I can't figure out of so I was wondering if anybody here could help me for the second time in a shorth while. The problem is that I don't get the light effect to show up right in the game or igor after it all looks good in the lighting tool. Here's what I do.

1. I load up my map in the lighting tool and everything looks good, exept the trees are all black. I now set the room data for my only room =1. I put use darkmaps and shadows on. Everything goes all black but I see the contures of my map.

2. I put in a point light with shadows and all the other stuff selected. It lights up my map in a nice way and I can now also see the textures on the trees. I go to recalculate darkmaps and it says after a shorth while: Model [1] now lit with shadows. 3 darkmaps created.

3.I go to save map, gives it a new name selects all lights on and saves. This creates the xxxxx.map file and a .rsb file in my working directory. Should I rename this .rsb file?

4.I now go to igor and sets up the enviroment for the map and loads it in...BUT now everything is light up exept for the trees which are all black. (Looks like the default light from max is still there). Only tree that I can see the textures on is the one that was close to my light, so it's pretty sure that the lighting actually does something, but it does just not light/unlight my other models. I can not see shadows from the trees either, even though I have set it up in the map editor in max.

Anyone have any idea what's wrong, is it something I have to do in 3dmax to get it correct or?

Biro.

//EDIT: PROBLEM SOLVED.

I figured out that if I called the .rsb file that was saved for darkmap0xxxx.rsb it all suddenly worked. So I guess it's some inbuilt code in the GR engine that looks for something called darkmap.....

Edited by Alpha_Biro
Link to post
Share on other sites

I've had the same problem and it's one of the many bugs of LightingTool. You have to 'File -> Set Texture Directory' in LightingTool. Apparently LT can search textures from 'working directory' but can't produce working darkmap to same directory unless texture directory is defined.

For more information and conversation about the bug, take a look at http://www.theplatoon.com/snitz/topic.asp?...?TOPIC_ID=10351 this thread, in which I ask about the same problem and manage to solve it as the thread goes on :). It's little off-topic first but 7. post which is mine (k1ller) starts the conversation about darkmap problem.

Link to post
Share on other sites
3.I go to save map, gives it a new name selects all lights on and saves. This creates the xxxxx.map file and a .rsb file in my working directory. Should I rename this .rsb file?
No dont rename it.

did you Save ParticlesThan go ahead and save map as the same name but put in in a diffrent folder.then drag the xxx.map file into you map folder and replace the old one with the new one that the lighting tool made.

Edited by Joel
Link to post
Share on other sites

Thanks for all the hints and tips there guys. I did it just like El_Oso wrote in his little turtorial, but then I got my darkmapfile saved just as a .rsb file. I checked this in Igor, but had no light on the map. Then I changed the name to darkmap0testmap.rsb loaded up Igor again, and the light was one...!

Link to post
Share on other sites

You dont ever have to rename anything.

When you save the map with lighting applied you must save it as a different name than the original. You no longer need the original unless you want to relight it. The darkmaps will be named correctly corresponding with the new map name as .rsb files. You will need the correct darkmaps and the correct map file to see the map appear as it should.

Are you still having trouble with your trees not lighting?

Link to post
Share on other sites

Yes, I saved it with a different name in the same directory, and I got my darkmap created, but it wasn't named anything, just .rsb. I had to rename this file to see the darkmap appear correctly and then it was working on the trees also. I have no idea why the lighting tool didn't name it automatically...

Link to post
Share on other sites

Cool man, Im glad to see that it is working for you at least. I do remember having the darkmaps save out like that before, named only .rsb. I was doing something wrong at the time. I would just advise you to reread the lighting tool section of the level builder .pdf. Theres probably a box you didnt check or something minor.

Another tip with the lighting tool: If you are just loading the same named map each time(such as while you are still in the process of making it) you dont need to select the map directory and texture directory(or even skybox etc.) every time. It will load the last paths you used, just click start. This will save you a few clicks here and there.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...