Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Burzum

Containing fog

This topic is 5821 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 have a fog object in my openGL scene. Is it possible to locate the fog in a certain area of the scene so it''ll be absent from the rest of the scene ?? Death is certain, life is not...

Share this post


Link to post
Share on other sites
Advertisement
I''m a bit of a neophyt in OpenGL, so can you tell me moreabout those fog routine ?

Death is certain, life is not...

Share this post


Link to post
Share on other sites
I''m a bit of a neophyt in OpenGL, so can you tell me more about that? Cause I didn''t see a function with location parameters for the fog

Death is certain, life is not...

Share this post


Link to post
Share on other sites
For fog coords:
glFogCoordfEXT is the function you want. It''s an extension, so read up on how to use those (http://www.opengl.org/developers/code/features/OGLextensions/OGLextensions.html), then grab the following sources:
http://www.mathies.com/cpw/textfiles/volfog.c.html
http://www.gametutorials.com/Tutorials/OpenGL/OpenGL_Pg4.htm (Terrain #4)

For anything else:
*Research billboarding
*Research different blending modes, in particular additive blending and the usage of GL_MODULATE with gltexenvi
*Research Perlin Noise...might help when creating random fog patterns...
*Think about how you might be able to represent fog with a graphics API
*Ask more questions.

Peace,
ZE.

P.S. I''m being intentionally nebulous here to encourage you to get out there and learn the stuff, instead of just ripping off code. If you have specific issues, feel free to ask, though.

//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

Share this post


Link to post
Share on other sites

  • 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!