Wrong lights for models Created 9 years ago2015-01-02 03:39:12 UTC by Kaner Kaner

Created 9 years ago2015-01-02 03:39:12 UTC by Kaner Kaner

Posted 9 years ago2015-01-02 03:39:12 UTC Post #323052
Hello everyone!

I'm mapping two versions of a map changing just the ilumination, one is at day and the other is at night, but the same map. There are also some models like trees and cars.

So, in-game when I change between each other, the light of the models keep illuminated though I go to the night-dark version of the map, the models get the light from the day version.

Does anyone can explain me what is going on?
Thank you!!! :D
Posted 9 years ago2015-01-02 03:49:40 UTC Post #323053
Is this two different maps, or just the same map with different entities toggled?
Posted 9 years ago2015-01-02 03:51:39 UTC Post #323054
They have some differences but the same models. So different maps with same models.
Posted 9 years ago2015-01-02 03:55:36 UTC Post #323055
Also what game is this for? If you are using a static mesh, say, an env_model, the model's lighting is only sampled once unlike a model with motion. If you used a monster_furniture this wouldn't be a problem. I'm not sure if this is the case with cyclers.
Rimrook RimrookSince 2003
Posted 9 years ago2015-01-02 04:10:13 UTC Post #323056
It's for counter-strike goldsrc engine and I mapped this with cycler_sprite, but you give me an idea, I will just duplicate the models with other names, and I think it would be solved, what do you think?
Posted 9 years ago2015-01-02 14:04:43 UTC Post #323060
Shouldnt have to but if it works, that one solution. Can you share screenshots in game and in the editor?
Rimrook RimrookSince 2003
Posted 9 years ago2015-01-02 15:14:06 UTC Post #323061
It has not work, It seems all the models get the last light_environment value, cause in my dark-night version I have no sun, I will try to put there some sun with 1 of brightness.

Here are the screenshots:

http://s13.postimg.org/whh3rd5sn/c40000.jpg
http://s13.postimg.org/qukqtw39z/c40001.jpg
Posted 9 years ago2015-01-02 16:06:05 UTC Post #323063
Models sample their lighting from the ground they are over. I can't think of an explanation for why they would all light up, including the player model.

Are you compiling with any special settings?

Also, is this all on one BSP file or two separate maps?
Rimrook RimrookSince 2003
Posted 9 years ago2015-01-02 16:27:41 UTC Post #323064
I compile the illumination with vluzacn's tools 33 version:

hlrad.exe -texdata 524288 -lightdata 524288 -ambient .001 .001 .001 -extra -bounce 16 -estimate -verbose %mapName%

The two images belong to the same BSP, so I charge the map, I change to cs_italy (for example) and I go back to the map and I got that result, I will try the sun with "zero" brightness and I ll tell you about
Posted 9 years ago2015-01-02 16:50:34 UTC Post #323065
that or info_sunlight
Posted 9 years ago2015-01-02 18:50:13 UTC Post #323066
With info_sunlight or light_environtment it does not happen anymore, so it's solved.

In addition, with light_environment it can't get the enough darkness as it could be without sun, but with info_sunlight can get it.

Hence, in conclusion if you don't want any light environment in the map, you should set an info_sunlight with 0 0 0 0 value to avoid light model errors.
Posted 9 years ago2015-01-03 16:32:53 UTC Post #323093
The two images belong to the same BSP, so I charge the map, I change to cs_italy (for example) and I go back to the map and I got that result
Sounds like some base values weren't being reset. Nothing you could do about it but change the value yourself to something else.
Rimrook RimrookSince 2003
You must be logged in to post a response.