Light question

Blitz3D Forums/Blitz3D Programming/Light question

John Blackledge(Posted 2005) [#1]
I just tried changing my LightRange light,far# value, and nothing appears to happen.

Is this becuse the default light (light=CreateLight() or light=CreateLight(1)) has an infinite range, unlike CreateLight(2) and CreateLight(3)?


Shambler(Posted 2005) [#2]
Yes light type 1 is directional and has infinite range.

Your lighting may be maxed out, in which case turn off any lights of type 1 and you should be able to see the effect of any type 2/3 lights then.


John Blackledge(Posted 2005) [#3]
Thanks Shambler.

No, I just want a simple 'sun'.
Do I still have to 'PointEntity light' down to my terrain, or is that light omnidirectional?


Shambler(Posted 2005) [#4]
A light of type 2 has a position but no direction, it's like a lightbulb.
[edit] it creates light that shines in all directions.

If you want a sun then that is what light type 1 is for, unless you want it to fade out that is.


John Blackledge(Posted 2005) [#5]
Cheers, Shambler.