Blitzmax GL Fog

BlitzMax Forums/BlitzMax Programming/Blitzmax GL Fog

wildboar(Posted 2005) [#1]
I've been reading some online OpenGL tutorials on how to create fog, but I can't get it working in BlitzMax. Does anyone have any samples on how to create fog/clouds using OpenGL in Blitzmax? I'm making a 2D sim and I would like to add fog and/or cloud cover to obscure portions of my tile map.


Matt McFarland(Posted 2005) [#2]
I'd be very interested to use opengl fog too! Maybe I could put some really cool nebulae in the backround in my space shooter with this?


Who was John Galt?(Posted 2005) [#3]
http://www.blitzmax.com/Community/posts.php?topic=45455

The demo code there uses fog.


ImaginaryHuman(Posted 2005) [#4]
If it's only 2d, all you need is SetBlend LIGHTBLEND