Game Development Community

Problems with colored fog

by Alan "Nefilim" Schwertel · in Artist Corner · 12/31/2001 (10:56 am) · 10 replies

Whenever i try to make Colored fog, the terrain does something strange, best way to describe it with a screenshot, so here:

www.nefilim.f2s.com/images/TerrainColor.jpg
Notice the fog is red, and the terain turns blue in the distance, making hills seemingly appear out of nowhere.

#1
12/31/2001 (1:09 pm)
I experienced the same thing,

trippy

but it only seems to happen with red fog. All of the other colors I tried seemed to work fine.

-Tim aka Spock
#2
12/31/2001 (2:32 pm)
Well, any COLORED fog does it for me, seems the terrain is the opposite color as the fog.

www.nefilim.f2s.com/images/01.jpg

www.nefilim.f2s.com/images/02.jpg
#3
12/31/2001 (2:34 pm)
Very strange my mappers are haivng the same problem


Oh wait
#4
12/31/2001 (2:35 pm)
vgx drax
#5
12/31/2001 (3:58 pm)
Dont spam my thread you two! :p I get an email every reply...
#6
01/01/2002 (10:34 am)
You guys figure out what's causing this?
#7
01/01/2002 (11:16 am)
nope, no idea still.
#8
01/01/2002 (11:43 am)
i experienced the same problem some time ago...
its weird... couldnt fix it btw...
it happened with every color to me too
#9
01/01/2002 (5:53 pm)
This turned out to be a problem with converting colors into int values in ColorI::getRGBEndian(), and would only have affected multi-pass fog texturing. I think this problem was introduced during the Mac port...

Anyway, fixed and checked in. The only affected file was engine/core/color.h (the one function mentioned ubove), so you can just update (or diff) that one file if you don't want to update everything.
#10
01/01/2002 (10:16 pm)
Thanks =)