A sun in openGL?
Hello; I''ve been looking at some lighting tutorials that have been somewhat, useless. I know its only a few commands (I think), but could someone show me where there are any lighting tutorials? Or a good way for me to create a sun? (glowing ball that will shine on things
thanks!
How accurate ?
If you dont need total accuracy, simply put a yellow sphere at 0,0,0 and stick a GL_LIGHTx at 0,0,0.
Absolutly terrible, but workable.
On the other end, you do per-pixel lighting with each pixel of the sun shining and some kind of ray-casting algorithim.
Which would not be anything close to real time.
Yuo need to define yourself...
I came, I saw, I got programmers block.
~V''''lion
If you dont need total accuracy, simply put a yellow sphere at 0,0,0 and stick a GL_LIGHTx at 0,0,0.
Absolutly terrible, but workable.
On the other end, you do per-pixel lighting with each pixel of the sun shining and some kind of ray-casting algorithim.
Which would not be anything close to real time.
Yuo need to define yourself...
I came, I saw, I got programmers block.
~V''''lion
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement