[SOLVED] How do I add fog?

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.
Dogs
Posts: 195
Joined: Wed Sep 15, 2004 1:04 am
Location: michigan

Post by Dogs »

Thanks agian afecelis im sorry to be such a pest..
I hope this helps out this time..
thanks agian man.. :)
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

NP Dogs, I'm glad it helped.

:D
Image
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

Dogs wrote:With my level called levelnode:


levelnode->setMaterialFlag(EMF_FOG_ENABLE,true); //enables fog
driver->setFog(SColor(0,125,125,0),true, 0,4000); //fog color-final values= amount of fog, distance


Where is the name of your level at lol...
I dont have any name for my level that I know of..
Im kinda lost where you got levelnode from?

Sorry to be a pest like this but I dont understand :(
you convert the file into a variable like say for example "levelnode"
Dogs
Posts: 195
Joined: Wed Sep 15, 2004 1:04 am
Location: michigan

Post by Dogs »

So its actually the ISceneNode that is the name your refering to then?
Or realy what the ISceneNode is pointed to yes no?

After looking at the code that is what it looks like to me..
If im wrong maybe some techinical info would be good...

Thanks eveyone for this great info so far by the way... :)
cartoonit
Posts: 286
Joined: Mon Nov 15, 2004 6:36 pm

Post by cartoonit »

Well

Code: Select all

ISceneNode *LevelNode;
LevelNode //is now a pointer to an object of type ISceneNode, so you then get all the functionality of this class.
So ISceneNode is actually a class, but you just creating an instance of it with:

Code: Select all

LevelNode = Smgr->addSceneNode() //or whatever 
This a little more clear??
Post Reply