Simple fog...

A forum to store posts deemed exceptionally wise and useful
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

R00mpel wrote:2DarkWhoppy & Robomaniac: Uhm... I hadn't found the source of the problem, which video display cards have you got (if not a secret)?.. Anyways, i'm really in short of time :(
SuryIII3D_guest: Only in VC++ 6.0...
I've got an old 8Mb card... ViaTech something...
Programmer of the Irrlicht Scene Editor:
Homepage - Forum Thread
Version 2 on its way!!
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

nVidia geForce4 GO! 64 mb ram
The Robomaniac
Project Head / Lead Programmer
Centaur Force
Evil Mr Sock
Posts: 37
Joined: Fri Jul 02, 2004 5:36 pm
Location: Albany, NY
Contact:

Post by Evil Mr Sock »

No results for me, either. I have it configured as

driver->setFog(irr::video::SColor(47, 12, 82, 64), false, 0.0f, 1000.0f, 0.9f, false, true);

it's funny, that you initially put up the call function as
driver->setFog(false, false, true, irr::video::SColor(47, 12, 82, 64), 0.0f, 1000.0f, 0.9f );

for some reason, my compiler Visual SlickEdit (an extention of VC++) changes it to the first format, and the comment built into the function that explains each part reinforces that order.

I'm not sure why that is.

Anyway, that's my setup, with no visual changes.

Could you post a screenshot of what a level should look like under these circumstances?
------------------------------------------
A monkey poured coffee in my boots.
------------------------------------------
Tyn
Posts: 932
Joined: Thu Nov 20, 2003 7:53 pm
Location: England
Contact:

Post by Tyn »

For each node that you want fog to be visble on you have to put this flag in:

node->setMaterialFlag(EMF_FOG_ENABLE, true);
Guest

Post by Guest »

Awesome, that's got it going. As a special note to anyone else trying this out for the first time, that default 0.1 parameter for volumetric fog will entirely coat the example level in flat grey - I've found 0.005 to be a decent, thick fog.
Guest

Post by Guest »

Awesome, that's got it going. As a special note to anyone else trying this out for the first time, that default 0.1 parameter for volumetric fog will entirely coat the example level in flat grey - I've found 0.005 to be a decent, thick fog.
can you give an example, not sure which parameter is volumetric fog
bal
Posts: 829
Joined: Fri Jun 18, 2004 5:19 pm
Location: Geluwe, Belgium

Post by bal »

API?
General Tools List
General FAQ
System: AMD Barton 2600+, 512MB, 9600XT 256MB, WinXP + FC3
Post Reply