Fog bug?
by abc · in Torque Game Engine · 10/27/2004 (1:02 pm) · 11 replies
I have been mixing with some fog values now and I think I found a bug.
The fog is meant to be "pink-ish" and it is, but there is something very blue too :)
This image shows what I mean:
My sky settings are the following:
Is this a bug or something wrong done by me?
The fog is meant to be "pink-ish" and it is, but there is something very blue too :)
This image shows what I mean:
My sky settings are the following:
new Sky(Sky) {
position = "-1088 -928 0";
rotation = "1 0 0 0";
scale = "1 1 1";
materialList = "~/data/skies/sky_storm.dml";
cloudHeightPer[0] = "0.349971";
cloudHeightPer[1] = "0.25";
cloudHeightPer[2] = "0.199973";
cloudSpeed1 = "0.0002";
cloudSpeed2 = "0.0004";
cloudSpeed3 = "0.0006";
visibleDistance = "500";
fogDistance = "300";
// fogColor = "0.820000 0.828000 0.844000 1.000000";
fogColor = "0.9 0.5 0.5 1.0";
fogStorm1 = "0";
fogStorm2 = "0";
fogStorm3 = "0";
fogVolume1 = "100 0 200";
fogVolume2 = "0 0 0";
fogVolume3 = "0 0 0";
fogVolumeColor1 = "128.000000 128.000000 128.000000 -222768174765569861149077900047473967104.000000";
fogVolumeColor2 = "128.000000 128.000000 128.000000 0.000000";
fogVolumeColor3 = "128.000000 128.000000 128.000000 -170698929442160049016675429178998259712.000000";
windVelocity = "0.1 0.1 0";
windEffectPrecipitation = "1";
SkySolidColor = "0.547000 0.641000 0.789000 0.000000";
useSkyTextures = "1";
renderBottomTexture = "0";
noRenderBans = "0";
locked = "true";
};Is this a bug or something wrong done by me?
About the author
#2

Now it ain't blue (cyan?) but still, it shouldn't be there should it? :)
I only changed fogColor to "0.5 0.5 0.0 1.0" this time.
Oh, forgot to mention.
This is on TGE 1.3 (without engine modifications) on Mac OS 10.3.5
10/27/2004 (2:07 pm)
You mean like this?:
Now it ain't blue (cyan?) but still, it shouldn't be there should it? :)
I only changed fogColor to "0.5 0.5 0.0 1.0" this time.
Oh, forgot to mention.
This is on TGE 1.3 (without engine modifications) on Mac OS 10.3.5
#3
I dont use 1.3 ,because my game dont like that version :)
I think there is strange error somewhere but its a nice one !
10/27/2004 (3:20 pm)
Superb !I dont use 1.3 ,because my game dont like that version :)
I think there is strange error somewhere but its a nice one !
#4
we are making tank game but when we upload tank, it alway happend that camera has focus tank bottom.
Please, anybody can can help us?
Thanks
steve
10/29/2004 (9:30 pm)
Hi we are making tank game but when we upload tank, it alway happend that camera has focus tank bottom.
Please, anybody can can help us?
Thanks
steve
#5
11/03/2004 (6:36 pm)
I remember a discussion about this problem on macs, but I didnt really understand it.
#6
Hmm... That is a pretty mysterious bug. Have you looked at the fog texture generation code? It might not be swizzling colors properly.
11/03/2004 (10:37 pm)
Yong-woo - if you have a new topic to discuss, start another thread. It's rude to try to hijack a thread.Hmm... That is a pretty mysterious bug. Have you looked at the fog texture generation code? It might not be swizzling colors properly.
#7
I should probably look at it again and make some changes, and see if I can get it right.
If I find the problem I will post a fix for it.
11/04/2004 (1:36 am)
Yeah, I have looked at it but I couldn't find anything.I should probably look at it again and make some changes, and see if I can get it right.
If I find the problem I will post a fix for it.
#8
11/04/2004 (12:16 pm)
It's possible to get the fog code to dump a bitmap of what it's producing ($takeFogShot or something similar). You might try doing that and seeing if you're getting the colors you expect.
#9
11/14/2004 (10:06 am)
Got the fix from John Kabus now:[b]core/color.h[/b] line [b]436[/b] sould read:
inline U32 ColorI::getRGBEndian() const
{
#if defined(TORQUE_OS_MAC)
return(getRGBPack());
#else
return(getBGRPack());
#endif
}
#10
11/14/2004 (9:58 pm)
Thanks... I'll add this to my todo list to make sure the fix goes into 1.4! (How embarassing...)
#11
03/14/2005 (11:43 pm)
Ok, fix is in! Thank you!
Torque 3D Owner Billy L
Can you make it happen with different colors to ?