Hi guys!
I have problem with fog. It dosen't work for me. I know that need to write two funtions:
mesh->setMaterialFlag(EMF_FOG_ENABLE, true);
driver->setFog(SColor(0,255,255,255),true, 1500,1800);
but it still not work. I want to ask how define the mesh (write in first function)?
Please help someone.
Please help me with fog.
Please help me with fog.
"Teach yourself DISCIPLINE."
Your sincerely,
Saulius Šunauskas
Your sincerely,
Saulius Šunauskas
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
You have to enable fog on every mesh (or scene node). And play a bit around with the fog, sometimes you don't see it.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Don't know the exact thread, but the guy, which screenshot is on the main side, posted some code in his 'wip... and please help' thread.
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
The function is part of ISceneNode:
Code: Select all
node->setMaterialFlag(video::EMF_FOG_ENABLE, true);