XEffects - Reloaded - New Release (V 1.4)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki

Re: XEffects - Reloaded - New Release (V 1.3)

Postby Harch » Mon Jun 22, 2015 9:59 pm

Somebody repaired xEffects? What about other approaches?
Harch
 
Posts: 66
Joined: Wed Oct 08, 2014 9:01 pm

Re: XEffects - Reloaded - New Release (V 1.3)

Postby christianclavet » Tue Jun 23, 2015 12:54 am

Hi, This is Nadro answer about the transparency problem:

This is the best solution to handle alpha + shaders with Irrlicht from SVN:
- Use standard SOLID material as a base material.
- Set SMaterial::BlendOperation to EBO_ADD;
- Set SMaterial::BlendFactor to pack_textureBlendFunc(EBF_SRC_ALPHA, EBF_ONE_MINUS_SRC_ALPHA);
With this solution you don't need separate materialType for solid and transparent shaders, you can just change SMaterial::BlendFactor, however old solution should works too.

You can check this thread. Where I reported the problem.
http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=50805
Last edited by christianclavet on Tue Jun 23, 2015 12:58 pm, edited 1 time in total.
User avatar
christianclavet
 
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA

Re: XEffects - Reloaded - New Release (V 1.3)

Postby Harch » Tue Jun 23, 2015 11:41 am

I do so. It turned out that all the shadows drawn EXCEPT the shadow from a cube with an alpha channel. I would like to and from the shadows drawn. So, I could not just the cube add processing shadows ... But I want to see the shadow, and from the letters of the cube.

Give a link to the thread, please. Because the old solution does not work. I will write to it...

Code:

cpp Code: Select all
 
cube->getMaterial(0).MaterialType = video::EMT_SOLID;
    cube->getMaterial(0).BlendOperation = EBO_ADD;
    cube->getMaterial(0).BlendFactor = pack_textureBlendFunc(EBF_SRC_ALPHA, EBF_ONE_MINUS_SRC_ALPHA);
    effect->addShadowToNode(cube, filterType, ESM_CAST);
 
Harch
 
Posts: 66
Joined: Wed Oct 08, 2014 9:01 pm

Re: XEffects - Reloaded - New Release (V 1.3)

Postby mongoose7 » Wed Aug 05, 2015 10:20 am

Harch wrote:While mongoose7 is preparing an example may be someone who understands the shaders, look, why xEffects not work with a transparent material, please?


Done: viewtopic.php?f=9&t=50889&p=294636#p294636
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: XEffects - Reloaded - New Release (V 1.3)

Postby mongoose7 » Mon Aug 10, 2015 10:19 am

Harch wrote:Somebody repaired xEffects? What about other approaches?

Hmm, I don't know that XEffects is broken.

Image

I'm actually not convinced that you have fixed EffectCB.h as previously suggested. That is, change
cpp Code: Select all
irr::u32 TexVar = 0;

to
cpp Code: Select all
irr::s32 TexVar = 0;

and change
cpp Code: Select all
((irr:f32 *)&TexVar)

to
cpp Code: Select all
&TexVar

Note that the screenshot was taken with Irrlicht Trunk. I tried with 1.8.1 and could only get one light to show (green) but there was no trouble with the transparent cube. Is there a problem with TRANSPARENT_ADD_COLOR in 1.8.1? This is what XEffects uses to combine the lighting passes.
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: XEffects - Reloaded - New Release (V 1.3)

Postby BlindSide » Mon Sep 07, 2015 3:32 am

Good question Mongoose. If someone wants to share an updated package, I can put the link on the main page. Or perhaps I can chuck it on github and link to that? I'm surprised people are still using this to be honest.

Cheers,
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
BlindSide
Admin
 
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Re: XEffects - Reloaded - New Release (V 1.3)

Postby BlindSide » Mon Sep 07, 2015 4:05 am

Hi all, I've updated the first post to link to the new github page and fixed the TexVar issue while I'm at it. :D
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
BlindSide
Admin
 
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Re: XEffects - Reloaded - New Release (V 1.3)

Postby CuteAlien » Mon Sep 07, 2015 9:23 am

Yay, BlindSide is back!
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8150
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: XEffects - Reloaded - New Release (V 1.4)

Postby Harch » Tue Sep 08, 2015 7:01 am

Mongoose7, is this OpenGL or DirectX? In DirectX all is OK, but in OpenGL shadows from transparent objects (ALPHA_CHANNEL_REF) don't work.

My irrlicht is Irrlicht 1.8.1 (not latest build 1.9).
Harch
 
Posts: 66
Joined: Wed Oct 08, 2014 9:01 pm

Re: XEffects - Reloaded - New Release (V 1.4)

Postby mongoose7 » Tue Sep 08, 2015 3:37 pm

You have to use 'trunk'. There appears to be a problem with 1.8.1. Fixes in trunk are not back-ported.
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: XEffects - Reloaded - New Release (V 1.4)

Postby Harch » Wed Sep 16, 2015 8:34 pm

I'll try that, thanks.

I will write when checking this.

P.S. Please give me a link to "trunk".
Harch
 
Posts: 66
Joined: Wed Oct 08, 2014 9:01 pm

Re: XEffects - Reloaded - New Release (V 1.4)

Postby CuteAlien » Wed Sep 16, 2015 9:53 pm

Link to trunk: http://sourceforge.net/p/irrlicht/code/HEAD/tree/
You will need a svn client to download it (on Windows people mostly use TortoiseSVN).
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8150
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: XEffects - Reloaded - New Release (V 1.4)

Postby mongoose7 » Thu Sep 17, 2015 1:47 am

You can download a ZIP file ("Download snapshot").
mongoose7
 
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: XEffects - Reloaded - New Release (V 1.4)

Postby Harch » Fri Sep 18, 2015 7:31 pm

I downloaded a last irrlicht trunk. And also I downloaded the xEffects from the first post. I compiled Irrlicht in release-fast-math-dll(and accurate-math too) mode (Code::Blocks). I included xEffects. I compiled this. And I get the same error: with a transparent cube shadows is no all, but without a transparent cube all is works (with OpenGL driver).
Harch
 
Posts: 66
Joined: Wed Oct 08, 2014 9:01 pm

Previous

Return to Project Announcements

Who is online

Users browsing this forum: No registered users and 1 guest