Page 1 of 1

Fog and far value

Posted: Sun Oct 05, 2014 6:46 pm
by JunkerKun
Now there is this problem:
When I use EXP fog I need only a little of fog but the far value of the camera cuts the map. It's like a white wall in the distance. I don't think there is an easy way to ge rid of this effect (aside from making far value ridiculously high) so... what can I do to make it look like there is no culling? (like when you use a linear fog you can set its end to far value and there will be no wall visible)

Re: Fog and far value

Posted: Wed Oct 08, 2014 4:32 pm
by FloatyBoaty
maybe you could try changing the density... or set the map camera to ortho and set the position really close...

Re: Fog and far value

Posted: Sun Oct 12, 2014 1:15 am
by JunkerKun
FloatyBoaty wrote:maybe you could try changing the density... or set the map camera to ortho and set the position really close...
I do change the density. The problem is a completely different thing.

Re: Fog and far value

Posted: Sun Oct 12, 2014 8:48 pm
by FloatyBoaty
I think I get the problem. You also need to make sure that all the objects have fog enabled: node->setMaterialFlag(irr::video::EMF_FOG_ENABLE, true);

Re: Fog and far value

Posted: Sun Oct 26, 2014 10:05 pm
by JunkerKun
FloatyBoaty wrote:I think I get the problem. You also need to make sure that all the objects have fog enabled: node->setMaterialFlag(irr::video::EMF_FOG_ENABLE, true);
Sorry for the late answer.
No, this isn't the problem. The problem is the culling distance. I found only one way of getting this right: making the distance higher so the fog won't cut with a geometry. The problem is that I don't really want to make it higher.
I guess there is no real solution for this.