[Solved]Terrain and Fog,has a bug?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
mynamepfd
Gnoblar
Posts: 7
Joined: Sat Sep 20, 2014 4:30 am
Location: China

[Solved]Terrain and Fog,has a bug?

Post by mynamepfd »

Hello everyone, if i first create SceneManager and setFog, then create terrain, the fog look normal. But if i first create SceneManager and terrain, then setFog, i will not see fog.But if i then reset terrain's layer texture, the fog will apper.What matter?What I need do after create terrain can make fog apper?Sorry i am Chinese,my english is poor.
Last edited by mynamepfd on Tue Nov 04, 2014 7:17 am, edited 1 time in total.
Kenshido
Gremlin
Posts: 153
Joined: Tue Jun 09, 2009 9:31 am
Location: Russia
x 12
Contact:

Re: Terrain and Fog,has a bug?

Post by Kenshido »

I met the same behavior of terrain and fog. If I set fog before terrain, I can change it parameters later, and this will affect the terrain. But not vice versa.
mynamepfd
Gnoblar
Posts: 7
Joined: Sat Sep 20, 2014 4:30 am
Location: China

Re: Terrain and Fog,has a bug?

Post by mynamepfd »

Kenshido wrote:I met the same behavior of terrain and fog. If I set fog before terrain, I can change it parameters later, and this will affect the terrain. But not vice versa.
yes. because i am making a editor, i find this problem. you think is a bug?
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: Terrain and Fog,has a bug?

Post by c6burns »

It is not a bug. You need to have fog enabled at the time the TerrainMaterialGenerator runs or else the shaders will not be built with fog options.
Post Reply