Some info on fog, and a quick request please? -1 reply

Please wait...

Paradox1

Supreme etc

50 XP

10th June 2003

0 Uploads

128 Posts

0 Threads

#1 16 years ago

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




GothiX

No Time to Cry

50 XP

18th September 2003

0 Uploads

1,290 Posts

0 Threads

#2 16 years ago

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?




EXiT

7o'nine

50 XP

11th April 2002

0 Uploads

2,175 Posts

0 Threads

#3 16 years ago

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

EXiT




Paradox1

Supreme etc

50 XP

10th June 2003

0 Uploads

128 Posts

0 Threads

#4 16 years ago

Ok thanks for that tutorial. Actually using that I should be able to sort the shader myself. :D