XEffects - Reloaded - New Release (V 1.4)
Re: XEffects - Reloaded - New Release (V 1.4)
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
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.
http://irrlicht.sourceforge.net/forum/v ... 20#p284720
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)
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.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: XEffects - Reloaded - New Release (V 1.4) - 1.7 OpenGL I
Thanks CuteAlien. I tried your suggestion, but it seems that flag does not exist in 1.7.x.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.
Code: Select all
error C2039: 'ETCF_ALLOW_MEMORY_COPY' : is not a member of 'irr::video'
Re: XEffects - Reloaded - New Release (V 1.4)
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 and keep everything unchanged.
Code: Select all
(const f32*)(&TexVar)
Re: XEffects - Reloaded - New Release (V 1.4)
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: XEffects - Reloaded - New Release (V 1.4)
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.CuteAlien wrote: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)
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!
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)
have you tried the latest XEffects? it should work with 1.8.xHarch 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!
https://github.com/monstrobishi/xeffects
Re: XEffects - Reloaded - New Release (V 1.4)
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.denzelbro wrote:
have you tried the latest XEffects? it should work with 1.8.x
https://github.com/monstrobishi/xeffects
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)
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.
P.S. irrlicht 'trunk' work correctly with xEffects, problem in irrlicht 1.8.x.
Re: XEffects - Reloaded - New Release (V 1.4)
the opengles shader needs work, tried compiling for emscripten and it yeilds
https://github.com/netpipe/IrrlichtDemo ... t-demo.cpp there is codeblocks project for it there too
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'
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: XEffects - Reloaded - New Release (V 1.4)
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%
-- https://github.com/netpipe/Luna Game Engine Status 95%
Re: XEffects - Reloaded - New Release (V 1.4)
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
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: XEffects - Reloaded - New Release (V 1.4)
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.
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)
gl_MultiTexCoord0 should be inTexCoord0
Sorry, I can't help too much with this currently.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm