Atmospheric Scattering

Published April 18, 2007
Advertisement


Not much to say, I've implemented atmospheric scattering at last. It took me ages to figure out the equations and how you can actually implement them in real time. It looks pretty good though, so I figure it's worth it.

As yet it's totally unoptimised. I've still to get rid of my hacky IM sphere drawing code, and shift to proper VBOs. Then I'm going to see how much of the scattering calculations I can move to a vertex shader. I'm quietly confidant that you can fit most of it in and get a great bonus, since most of it is standard vector operations and lookups - the only problem might be the exp() calls for the attenuation calculation.

Once everything's drawing right, I've decided to get a bit of variety and work on rendering moons, stars, asteroids, nebulae and things like that. After I've got a baseline for the rendering, I'll go back and work in the procedural generation of the textures. On the other hand, there aren't any real sources for pre-made geometry of nebulae, so I'd probably have to do the generation before the rendering. If I remember right, Ysaneya did his nebulae via navier stokes equations - I might have to figure out a less flexible more hacky way since I don't think I'm up to that challenge.
Previous Entry Proper entry
0 likes 3 comments

Comments

Prinz Eugn
Well, it looks fucking awesome right now.
April 18, 2007 07:30 PM
nordwindranger
I second that motion and raise you a "damn that looks good"
April 19, 2007 09:31 AM
baldurk
Thanks guys :). Once I've cleaned this up the next task will be moons, which will mean shadow rendering :X.
April 19, 2007 12:13 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement