...and there was light...
hi!
i''m sure i''m not the first person with this kind of a problem...
i''m creating a game with movement system taken from lesson 10, but when i add Diffuse light to my scene it illuminates only areas i''m currently moving through...
it''s like i''ve got a flashlight in my hands...
my question is: how can i make my diffuse light static...how can i make it stop following me, illuminating only center of my room?
:?
please help, i''m desperate
thanx in advance
follow the yellow brick road
follow the yellow brick road
easy, just do
glLightfv(GL_LIGHT0, GL_POSITION, LightPosition)
after you transform your modelview matix (ie after glTranslatef)
and it should work fine
subsititute whatever light# and LightPosition are appropriate
glLightfv(GL_LIGHT0, GL_POSITION, LightPosition)
after you transform your modelview matix (ie after glTranslatef)
and it should work fine
subsititute whatever light# and LightPosition are appropriate
if my starting light position was for example 2,2,-2
should i put just use that light position , or should i decrease it by xtrans, ytrans and ztrans?
follow the yellow brick road
should i put just use that light position , or should i decrease it by xtrans, ytrans and ztrans?
follow the yellow brick road
follow the yellow brick road
I think if you''re going to change the place of the light with the direction you move you get the same problem as you already had..
Correct me if I''m wrong
Correct me if I''m wrong

This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement