• Advertisement
Sign in to follow this  

Nebula rendering

Recommended Posts

Hi there,

I am currently trying to render nebulae in space. I have already managed to render the semi-transparency order-independent, but I'm stuck with the problem that when I render multiple axis-aligned planes, it looks like a grid when you look from a steep angle (see attached file).

Is there a way to fix this? I have to be able to move in space and into/within nebulae, so just rendering a sky dome is not possible I guess. Rendering spheres around the particles could be an option, but for this there is the problem that spheres overlap and therefore it may look bad, too.

Edit: I could multiply the transparency with the dot product of the plane normal and the normalized vector between the point on the plane and the camera. I will try this and tell you the results.

Edit 2: This looks better (see second attached file), but I still have maxima at the vertices because colors are interpolated...

Edited by Magogan

Share this post


Link to post
Share on other sites
Advertisement

If it were me I would use a post processing effect to render the nebula. You can apply a blur to soften things up and also use the depth map to smooth around objects(space ships or whatever).

Share this post


Link to post
Share on other sites

Please, no blur! Could you not just raycasting ( Wolfenstein 3d) ? Spare GPU or CPU core   to texture. There are so many sophisticated working nebulas with lightning, but raycasting is dead simple.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Advertisement