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.
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.
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.
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.
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.
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!
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
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.
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'
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
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.