display00

Posted By: BERG

display00 - 10/27/06 05:30

when i put a terrian in my level and added a new template a6 script to it, and ran the engine, the terrain had no shading at all. so i went to the sun angle and light in the map properties box and changes some values, and still nothing. so i did some investigating and found on the display00 code "var sunlight=1;" and commented it out. it worked! my terrian was shaded (although rather bright). so what is that variable?

thx,

Alex
Posted By: JibbSmart

Re: display00 - 10/27/06 08:16

that variable determines whether or not models should treat the sun as a dynamic light source.

good job figuring that out!

julz
Posted By: BERG

Re: display00 - 10/27/06 14:26

but why is everything dulled out when its on?
thx tho
Posted By: JibbSmart

Re: display00 - 10/28/06 08:02

hmm... in my version of the manual it seems to be undocumented. a bit more research revealed the variable that i was referring to is actually called sun_light which, if set to anything other than zero, places a dynamic light at the sun position. maybe the templates use "var sunlight" to in a function to determine certain settings?

julz
© 2024 lite-C Forums