Qbasicnews.com

Full Version: opengl lighting direction...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
well ive figured out alot of the physics of the numbers. ome problem i have left is why the lighting always points in a certain direction even though ive selected positional lighting....look at the pic here

http://www.fbtk.net/phpBB2/viewtopic.php?t=540

why do all the lights point in the same direction???
why does the lighting go from 0-x and 0-y and 0-z ,it covers everything from 0's to the position coordinates...
is there a way to just make a pot light or change the direction of the lights??
Maybe this will givew you some ideas. Try setting up another array for direction. Try rotating the light between push and pop matrix also.

http://www.gameroom.com/glu/blcbenew.html



glu
Many of NeHe's tutorials were converted from C++ to FB here: http://cvs.sourceforge.net/viewcvs.py/fb...s/GL/NeHe/

In case you don't want to look at C++ and think "huh?" if you don't know it. Smile