A sun in openGL?

Started by
0 comments, last by Zeus_ 22 years, 6 months ago
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!
Advertisement
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
~V'lionBugle4d

This topic is closed to new replies.

Advertisement