Ok I've heard some contradictory stuff, so basically I need this clearing up. Do fog shaders help frames per second or hinder them? It seems to me that they would help since they block your view so the game woulnd't have to render as much. If so, (since I suck with shaders) could someone write a really quick fog shader which only has a really light effect (you can still see nearly as far as normal, but so the fog is certainly visible) in a kind of teal color? Go on, you know you want to :D
Yes, tehre is a technique called "foghull clipping" that works in that way. it basically blocks the view, as you already stated. Though remember, it only works well with large area's, such as the Hoth map in JA. In small area's it doesn't dramatically decrease fps, nor does it improve them. It just looks good.
And for that request, can you make it more specific, perhaps give an example?
So far, I've found the following tutorial to be the best when it comes to foghull: http://members.lycos.co.uk/quakeroats/le/tutorials/foghull/foghull.htm
It was written for Q3, but it generally is the same for JK2 as well.
Just remember that:
- .shaders go in the base/shaders folder
- Leave out any file extension in your shader (like .tga)
- "surfaceparm nolightmap" is now "q3map_nolightmap" in JK2
You might also need Q3map2 if you don't already have it http://www.shaderlab.com/q3map2
Ok thanks for that tutorial. Actually using that I should be able to sort the shader myself. :D