Sign in to follow this  
Julien Bayle

Light sources lighting volumic matter?

Recommended Posts

Julien Bayle    115
Hi there,

I'd like to understand [url="http://www.youtube.com/watch?v=o5z1wEj3tHk&feature=player_embedded"]how this light diffusion effect is done[/url]
Each light seems to influence the "space"
It seems there is a kind of diffusion.
I firstly thought about a kind of open-cubes based grid with transparent faces but which would reflect or distort those lights or whatever.
Not sure.

Thought about fog too.

Would someone have some leads to dig this ?
Any kind of leads would be appreciate.

Share this post


Link to post
Share on other sites
dpadam450    2357
As stated last time: I'm 95% sure that its simply point sprites that always face the camera. It does not appear the star objects have any 3D spheres or real geometry. They influence space because they are a 2D texture with blended alpha that way you can still see through them. Open a paint tool and use a radial blur of white. For each start call glColor3f() for the stars color to be blended with the alpha texture.

Share this post


Link to post
Share on other sites
Julien Bayle    115
Hello dpadam450,
sorry for the late reply.

Thanks for your answer.
I got you about that.

About the influence of space, I cannot understand how it works.
Indeed, these 2D textures are "only" 2D and if I pass through with the camera, how should it behave ?
Wouldn't it be only like if you passed through a wall ..?

Share this post


Link to post
Share on other sites
dpadam450    2357
You are right. What you could do then is render a sphere with a shader applied like fog. So as the pixel distance from the sphere center increases the fog goes to zero. Once you clip inside the sphere with the camera, then apply some kind of fog to the whole screen based on depth as well.

That is what I would try. No idea how well that will look but should be fairly decent as long as when you clip inside the light sphere, that the fog doesnt all of a sudden change thickness.

Share this post


Link to post
Share on other sites
Julien Bayle    115
I got the thing to avoid sudden change
But I'm still suprised by the strange light effect in the video linked
finally, maybe it is a bit more complex (for me)

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