creating a simple sun like the sun in overgrowth

Anything else
Post Reply
Re<<aL
Posts: 8
Joined: Wed Sep 05, 2012 6:40 am

creating a simple sun like the sun in overgrowth

Post by Re<<aL » Sat Sep 08, 2012 11:49 am

Hello, it's me again and i have another question :D

How can i do with opengl/GLSL a sun like the one in overgrowth. I mean, just a sphere that shines. I dont want it to move, change the color, etc.. Just know how to do it with opengl/GLSL a sun like that, i shearch in google but i couldnt find anything, nothing about gloss, a shininess sphere nothing!

So if someone can healp me... Thank you

Pd: Actually I'm using a directional light for simulating the sun, its better a point light?

User avatar
Korban3
Posts: 4146
Joined: Tue May 31, 2011 9:14 pm
Location: 42nd St E, Hell

Re: creating a simple sun like the sun in overgrowth

Post by Korban3 » Sat Sep 08, 2012 9:29 pm

http://blog.wolfire.com/2009/01/lens-flares/
David links to the paper he used for it and everything. It is a bit complex, but not impossible at all.

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: creating a simple sun like the sun in overgrowth

Post by Endoperez » Sun Sep 09, 2012 3:35 am

I think the sun's light is a directional light, but the sphere itself is probably done separately.

Re<<aL
Posts: 8
Joined: Wed Sep 05, 2012 6:40 am

Re: creating a simple sun like the sun in overgrowth

Post by Re<<aL » Wed Sep 19, 2012 2:13 pm

Ok, Thank you very much for your time, i will read that topic and yes i also think that it's a directional light.

Thank you very much. I love u xDDDDDD


Pd. Skomakar'n i didnt said or wanted to said that the overgrowth sun is simple, i said or wanted to say :shock: that i wanted to implement a simple sun (of course the sun in overgrowth isn't simple)

Post Reply