Fog with IrrEdit

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Veiter
Posts: 18
Joined: Sun Mar 11, 2007 6:24 pm

Fog with IrrEdit

Post by Veiter »

Hi,

in IrrEdit, every mesh has a flag "FogEnable".
The default fog-color ist white.
But how can this color be changed?

thank you very much
Veiter
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Maybe you can't change it in IrrEdit.. (could be in one of the toolbar menus though..)

Do you need to change it in IrrEdit or could you just change it in Irrlicht?
Image Image Image
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

like this

Post by 3DModelerMan »

After you load the scene use

Code: Select all

driver->setFog(video::SColor(0,138,125,81), true, 250, 1000, 0, true);
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Veiter
Posts: 18
Joined: Sun Mar 11, 2007 6:24 pm

Post by Veiter »

@both: yes that works

so IrrEdit doesn't need the feature of editing the color.

thank you very much!
Post Reply