Jump to content
  • Advertisement
Sign in to follow this  

This topic is 4100 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to have a spherical puff of smoke in an OpenGL scene. It should be of a variable size and transparency. It should not significantly affect the render speed. In short, something like GlFog() in a single spherical cloud. Thanks in advance, Geometrian

Share this post


Link to post
Share on other sites
Advertisement
I haven't really tried anything yet, other than check the docs. I would like to make this cloud of smoke, but I don't know where to start, or what to try.

Share this post


Link to post
Share on other sites
Billboarding quads that are texturemapped with a smoke puff can get you some pretty looking fog. Remember to enable blending and sort them back to front.

Share this post


Link to post
Share on other sites
Yes, I'd already thought of that. Is that the only way to do it though? Isn't there something OpenGL could do to draw the smoke? It's a little awkward to do it that way because the smoke has to be visible from all angles. It would take a bit of work to get the textures to always face the screen (not edge-on).
Thanks for your comment.

Share this post


Link to post
Share on other sites
as was mentioned billboarding will make the quad always face the camera thus its always visable

Share this post


Link to post
Share on other sites
OK, I read up on billboarding. It still doesn't seem like an ideal solution- I need to vary the size, shape, distance, density/opacity, etc. I need to have the same controls as GlFog() but around a single point instead of covering the screen.
G

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!