how can the fog be disabled?

how can the fog be disabled?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

how can the fog be disabled?

Post by colorblind »

How can I disable the fog? I've binded a key to "glDisable(GL_FOG)" but that doesn't work.
I'm guessing there's more to it than one line of code, but I'm at a loss. Any help is appreciated.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

If you want to really badly, I think you can just modify a setting in all the map files. This could cause multiplayer incompatibility (??) but I'm not sure. I think the relevant line is fogdistance or something similar, and increasing it to 1000 or something should eliminate it entirely.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

Are you referring to actual fog, or fog of war?
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Post by colorblind »

It the actual (openGL) fog I'm talking about, not the fog of war.

I'm guessing it gets disabled and re-enabled every frame (that's why a single "glDisable(GL_FOG)" woudln't work), but I can't find the lines of code responsible for drawing it.
Are they in game.cpp, basicsky.cpp or advsky.cpp? Somebody *please* tell me ....
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

Fog is disabled/enabled several times per frames since not everything in the scene is foged so you would have to search for every occurence of it.
Post Reply

Return to “Engine”