XEffects - Reloaded - New Release (V 1.4)

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
denzelbro
Posts: 50
Joined: Wed Jun 27, 2018 11:53 pm

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

Post by denzelbro »

Hi, I'm trying to use the latest XEffects with 1.7.x, but only DirectX9 works (have to use 1.7 for an existing project and focused only on OpenGL driver/stuff) and I'm getting OpenGL issues like this one here from an older posts.

http://irrlicht.sourceforge.net/forum/v ... 20#p284720

Image

or does it work with XEffects 1.3? I can't seem to find any working url or download as all links points to the latest 1.4 Reloaded. :(
CuteAlien
Admin
Posts: 9648
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post by CuteAlien »

It this is with svn trunk please try setting: Driver->setTextureCreationFlag(video::ETCF_ALLOW_MEMORY_COPY, true);
Alternatively check out new svn trunk where I enabled that flag now as default.
Not sure if this problems is really about that, but worth a shot.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
denzelbro
Posts: 50
Joined: Wed Jun 27, 2018 11:53 pm

Re: XEffects - Reloaded - New Release (V 1.4) - 1.7 OpenGL I

Post by denzelbro »

CuteAlien wrote:It this is with svn trunk please try setting: Driver->setTextureCreationFlag(video::ETCF_ALLOW_MEMORY_COPY, true);
Alternatively check out new svn trunk where I enabled that flag now as default.
Not sure if this problems is really about that, but worth a shot.
Thanks CuteAlien. I tried your suggestion, but it seems that flag does not exist in 1.7.x.

Code: Select all

 error C2039: 'ETCF_ALLOW_MEMORY_COPY' : is not a member of 'irr::video'
I'm actually leaning towards to get the shadow mapping effect working so I turned off the postprocessing part. The washout effect above obviously disappeared, but now I'm left with a plain scene w/o shadows although I see a hint of shadowing on the transparent cube.

Image
denzelbro
Posts: 50
Joined: Wed Jun 27, 2018 11:53 pm

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

Post by denzelbro »

Finally I got this to work with 1.7.x and OpenGL/Direct3D9. It turns out that I just need to convert all the 4 Samplers to

Code: Select all

(const f32*)(&TexVar) 
and keep everything unchanged. :D
CuteAlien
Admin
Posts: 9648
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post by CuteAlien »

Yeah, flag was just in case this was Irrlicht trunk - doesn't exist before. But nice that you figure it out :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
denzelbro
Posts: 50
Joined: Wed Jun 27, 2018 11:53 pm

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

Post by denzelbro »

CuteAlien wrote:Yeah, flag was just in case this was Irrlicht trunk - doesn't exist before. But nice that you figure it out :-)
Thanks, I was also hoping to get the shadows working with terrain, but I'm getting this spotlight effect and could not get rid of the darker areas outside. Is there any way that it can be so that the shadow is only drawn to objects with shadows set and are near to camera? something like orthogonal shadows afaik or related.
Harch
Posts: 75
Joined: Wed Oct 08, 2014 9:01 pm

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

Post by Harch »

Good evening!
I launch the xEffects 1.4 (last version) on the Irlicht 1.8.1, 1.8.4 and from 'trunk'. From 'trunk' screen is like as in the post: http://irrlicht.sourceforge.net/forum/v ... 10#p303738.
For irrlicht 1.8.1 and 1.8.4 xEffects works more or less, but with the next problem: when I compile and launch example 1 (from source xEffects), I get only green light (which was add last). No shadowing from a several light source. There is only a display of one light source. About this problem next post: http://irrlicht.sourceforge.net/forum/v ... 95#p294749. Also, the example 2 also works incorrectly (I suspect that the problem is the same). How to fix this problem? Thank you!

P.S. Sorry for google translate!
denzelbro
Posts: 50
Joined: Wed Jun 27, 2018 11:53 pm

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

Post by denzelbro »

Harch wrote:Good evening!
I launch the xEffects 1.4 (last version) on the Irlicht 1.8.1, 1.8.4 and from 'trunk'. From 'trunk' screen is like as in the post: http://irrlicht.sourceforge.net/forum/v ... 10#p303738.
For irrlicht 1.8.1 and 1.8.4 xEffects works more or less, but with the next problem: when I compile and launch example 1 (from source xEffects), I get only green light (which was add last). No shadowing from a several light source. There is only a display of one light source. About this problem next post: http://irrlicht.sourceforge.net/forum/v ... 95#p294749. Also, the example 2 also works incorrectly (I suspect that the problem is the same). How to fix this problem? Thank you!

P.S. Sorry for google translate!
have you tried the latest XEffects? it should work with 1.8.x

https://github.com/monstrobishi/xeffects
Harch
Posts: 75
Joined: Wed Oct 08, 2014 9:01 pm

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

Post by Harch »

denzelbro wrote:
have you tried the latest XEffects? it should work with 1.8.x

https://github.com/monstrobishi/xeffects
Yes, I using last xEffects (from you link) for Irrlicht 1.8.1 and 1.8.4 and this not working with many lights sources (example 1). For 'trunk' not working all.

UPDATE: For 'turnk' all works fine WITHOUT transparent_ref material. For 1.8.1 and 1.8.4 without transparent_ref material don't working, like as with this.
Harch
Posts: 75
Joined: Wed Oct 08, 2014 9:01 pm

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

Post by Harch »

Are there any alternatives to the program? Program it does not work on versions 1.8.x (for example:http://irrlicht.sourceforge.net/forum/v ... 0&p=304839). Or maybe someone has already fixed it? Thank's!

P.S. irrlicht 'trunk' work correctly with xEffects, problem in irrlicht 1.8.x.
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

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

Post by netpipe »

the opengles shader needs work, tried compiling for emscripten and it yeilds

Code: Select all

 
ERROR: 0:6: 'gl_Vertex' : undeclared identifier
ERROR: 0:6: 'x' :  field selection requires structure or vector on left hand side
ERROR: 0:6: 'gl_Vertex' : undeclared identifier
ERROR: 0:6: 'y' :  field selection requires structure or vector on left hand side
ERROR: 0:8: 'gl_Vertex' : undeclared identifier
ERROR: 0:8: 'x' :  field selection requires structure or vector on left hand side
ERROR: 0:9: 'gl_Vertex' : undeclared identifier
ERROR: 0:9: 'y' :  field selection requires structure or vector on left hand side
ERROR: 0:10: 'gl_TexCoord' : undeclared identifier
ERROR: 0:10: 'expression' :  left of '[' is not of type array, matrix, or vector 
ERROR: 0:10: 'xy' :  field selection requires structure or vector on left hand side
ERROR: 0:10: 'assign' : l-value required (can't modify a const)
ERROR: 0:10: '=' : dimension mismatch
ERROR: 0:10: 'assign' : cannot convert from 'highp 2-component vector of float' to 'const highp float'
ERROR: 0:14: 'gl_TexCoord' : undeclared identifier
ERROR: 0:14: 'expression' :  left of '[' is not of type array, matrix, or vector 
ERROR: 0:14: 'xyz' :  field selection requires structure or vector on left hand side
ERROR: 0:14: 'assign' : l-value required (can't modify a const)
ERROR: 0:14: '=' : dimension mismatch
ERROR: 0:14: 'assign' : cannot convert from 'highp 3-component vector of float' to 'const highp float'
ERROR: 0:17: 'gl_TexCoord' : undeclared identifier
ERROR: 0:17: 'expression' :  left of '[' is not of type array, matrix, or vector 
ERROR: 0:17: 'xyz' :  field selection requires structure or vector on left hand side
ERROR: 0:17: 'assign' : l-value required (can't modify a const)
ERROR: 0:17: '=' : dimension mismatch
ERROR: 0:17: 'assign' : cannot convert from 'highp 3-component vector of float' to 'const highp float'
ERROR: 0:18: 'gl_TexCoord' : undeclared identifier
ERROR: 0:18: 'expression' :  left of '[' is not of type array, matrix, or vector 
ERROR: 0:18: 'xy' :  field selection requires structure or vector on left hand side
ERROR: 0:18: 'assign' : l-value required (can't modify a const)
ERROR: 0:18: '=' : dimension mismatch
ERROR: 0:18: 'assign' : cannot convert from 'highp 2-component vector of float' to 'const highp float'
https://github.com/netpipe/IrrlichtDemo ... t-demo.cpp there is codeblocks project for it there too
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

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

Post by netpipe »

https://drive.google.com/file/d/1r0pC_S ... sp=sharing here is what the freelancer came up with but it did not work
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9648
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post by CuteAlien »

Sorry, didn't look at your new file. But errors above sound like something you would get using an GL shader with ES2.
gl_Vertex and gl_TexCoord are no longer defined there. So instead Irrlicht passes variables like "inVertexPosition" and "inVertexColor". The exact names can be found in EVertexAttributues.h
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
lgliao
Posts: 1
Joined: Mon Jun 14, 2021 7:13 am

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

Post by lgliao »

Hi, Thanks for your notes. I'm the Freelancer and I did exactly what you noted. In the zip file there is a 'notes-0516.txt' file with the following change logs. The shaders no longer give errors, but the graphics are not showing.

EffectHandler.cpp
Commented out these two lines:
//device->getLogger()->log("XEffects: Shader effects not supported on this system.");
//shadowsUnsupported = true;

EffectShaders.h Made shader adaptations
BloomP.glsl Made shader adaptations
BlurHP.glsl Made shader adaptations
BlurVP.glsl Made shader adaptations
BrightPass.glsl Made shader adaptations
The shader adaptations include the use of the built in attribute names
defined in EVertexAttributes.h and the changes to gl_Vertex, gl_Normal,
glTexCoord. The other one gl_MultiTexCoord0 has no direct replacement
so I left it unchanged.

COpenGLCoreRenderTarget.h
Commented out the line:
//checkFBO(Driver);
This is to stop in-loop printouts. This printouts may reveal some clues
to the bug though.
CuteAlien
Admin
Posts: 9648
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

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

Post by CuteAlien »

gl_MultiTexCoord0 should be inTexCoord0
Sorry, I can't help too much with this currently.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply