Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
opengl lighting direction...
#1
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??
Reply
#2
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
Reply
#3
tried nehe?
http://nehe.gamedev.net/data/lessons/les...?lesson=07
ttp://m0n573r.afraid.org/
Quote:quote: "<+whtiger> you... you don't know which way the earth spins?" ... see... stupidity leads to reverence, reverence to shakiness, shakiness to... the dark side
...phear
Reply
#4
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
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)