Ricebug on 15/3/2014 at 14:54
Did a search on the forum for this but found nothing specific...
I implemented fog in my current work. Unfortunately, as the player moves, the sky pops in and out of the fog as shown here:
Inline Image:
http://www.bogadocious.com/BB2/Fog1.jpgInline Image:
http://www.bogadocious.com/BB2/Fog2.jpgI did a full compile, in case anyone asks. Any clues?
I'm using a skybox, if that makes any difference. Total unbroken sky measures 1024x1024, which may be the culprit.
fibanocci on 15/3/2014 at 15:03
What's the fog distance?
What's the size of the roombrushes (with fog)?
Ricebug on 15/3/2014 at 18:49
Distance is set to 500. I may increase this number, as I want just enough to diminish distant objects.
RB is slightly larger than 1024x1024x64, and sits above the other RBs, as shown here:
Inline Image:
http://www.bogadocious.com/BB2/Fog3.jpg
fibanocci on 15/3/2014 at 19:09
I can see Jorge. Is this an area brush? Compile the whole area. Do you use sunlight/moonlight?
I guess the roombrush is not big enough (64 isn't enought for a 500-distance fog).
Yandros on 15/3/2014 at 19:23
500 is a huge fog distance, you'll never see it in game. You might consider just fogging the sky and distant art instead, if that's kind of what you're going for.
Ricebug on 15/3/2014 at 20:34
I did an Area Brush to render only a quarter of the map. Doing a Full Process on the whole thing takes nearly 4 hours. It still acts the same, whether part of its rendered or the entire map. (Next week, my new 8-core AMD 5 ghz machine should shave a minute or two off of that. Heh-heh)
Yandros: Even though the distance is set to 500, I can still see it in the distance, which is really what I'm shooting for. I'm trying to make things far away appear indistinct and fuzzy. Without fog, everything renders crystal clear, which doesn't reflect reality.
Since I'm using skybox art, I don't think I can set fog to the sky. Neither am I using any distant art. That said, perhaps I'll try rendering it as a 'stars' (no texture), since the skybox is sort of lost in the fog anyway.
EDIT: Yup, getting rid of the skybox art fixed the problem. Apparently, my nVidia card was choking on too much input. Unfortunately, the sky remains light gray (see first screenshot in OP), which makes it seem almost like daytime. I may have to scrap the fog thing altogether, if this is the case.
fibanocci on 15/3/2014 at 21:05
What's the colour of the fog?
Quote:
... 8-core AMD 5 ghz machine...
A heating stove :laff:
Yandros on 16/3/2014 at 01:55
Quote Posted by Ricebug
Unfortunately, the sky remains light gray (see first screenshot in OP), which makes it seem almost like daytime. I may have to scrap the fog thing altogether, if this is the case.
Check the fog setting on Sky, you may want to turn it off if it's on and see if the sky looks right then.
Ricebug on 16/3/2014 at 12:18
Quote Posted by Yandros
Check the fog setting on Sky, you may want to turn it off if it's on and see if the sky looks right then.
That did the trick. Thank you, sir!
Yandros on 16/3/2014 at 14:28
Woohoo!