Page 55 of 56

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

Posted: Fri Jun 29, 2018 11:53 pm
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. :(

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

Posted: Sun Jul 01, 2018 12:23 pm
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.

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

Posted: Sun Jul 01, 2018 10:37 pm
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

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

Posted: Sun Jul 01, 2018 11:13 pm
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

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

Posted: Mon Jul 02, 2018 2:00 pm
by CuteAlien
Yeah, flag was just in case this was Irrlicht trunk - doesn't exist before. But nice that you figure it out :-)

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

Posted: Tue Jul 03, 2018 10:14 am
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.

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

Posted: Wed Sep 19, 2018 8:54 pm
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!

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

Posted: Thu Sep 20, 2018 4:20 am
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

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

Posted: Thu Sep 20, 2018 12:08 pm
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.

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

Posted: Wed Aug 07, 2019 7:35 pm
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.

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

Posted: Sun Dec 01, 2019 3:42 pm
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

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

Posted: Thu Jun 10, 2021 10:04 pm
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

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

Posted: Thu Jun 10, 2021 10:48 pm
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

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

Posted: Mon Jun 14, 2021 7:21 am
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.

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

Posted: Mon Jun 14, 2021 9:46 am
by CuteAlien
gl_MultiTexCoord0 should be inTexCoord0
Sorry, I can't help too much with this currently.