Let Spark Engine Effects be affected by 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.
Post Reply
badday
Posts: 102
Joined: Mon Aug 16, 2010 1:14 pm

Let Spark Engine Effects be affected by fog

Post by badday »

Hi,

I use the SPARK particle engine and Irrlicht. Is there a way to let the effects created by SPARK be affected by the irrlicht fog or by another fog created within SPARK?


Thanks.
Juff
Posts: 18
Joined: Fri Oct 30, 2009 7:53 pm

Re: Let Spark Engine Effects be affected by fog

Post by Juff »

Hi, I m the SPARK developer. I ll check that and get back to you soon.
Juff
Posts: 18
Joined: Fri Oct 30, 2009 7:53 pm

Re: Let Spark Engine Effects be affected by fog

Post by Juff »

Hi, I have modified the management of material in SPARK and commit it to the SPARK svn.
You can get the latest version and recompile.

Then to use fog with a given SPARK renderer, make a call to :

Code: Select all

myRenderer->getMaterialProxy().setFogEnable(true);
badday
Posts: 102
Joined: Mon Aug 16, 2010 1:14 pm

Re: Let Spark Engine Effects be affected by fog

Post by badday »

Is this SPARK2? I´m using version 1_05_04 as there seem to be much more examples available for it. Could your patch be applied to that version as well?

Anyway: Thanks a lot for your patch and the SPARK Engine, it´s just great to use and I get really very nice effects. Great work!
Post Reply