[Sandy] lighting (again)

Martin Wood-Mitrovski flashdev at relivethefuture.com
Sat Apr 14 12:34:58 EDT 2007


If you hadnt noticed the thread on the forum about the new new lighting this is 
what I posted :

ok, the current implementation allows you to switch between lighting models (at 
the moment its World3D.GO_BRIGHT)

Here's the GO_BRIGHT = false (i.e. no burn out)

http://relivethefuture.com/code/sandy/nobright.html

and with GO_BRIGHT = true :

http://relivethefuture.com/code/sandy/gobright.html

bear in mind that on the second one there is no ambient light and the light 
power is set to maximum, probably not what you would use for real, but it shows 
the full range of lighting.

p.s. you can move the camera with the cursor keys.

// -- END

Personally, I think being able to switch between them could be really useful, as 
you may have an application where you dont ever want to go brighter than the 
original textures (in fact, the application im developing which brought me to 
Sandy in the first place requires exactly that)

But, its probably more intuitive for the GO_BRIGHT flag to be left on.

let me know what you think if you havent already and i'll commit the code.

thanks,

Martin




More information about the Sandy mailing list