Page 1 of 1

[Solved] Not see anything (CEGUI -v0 with Ogre 2.1)

Posted: Wed May 06, 2015 13:01
by jserve
Hi,

after a long absence from CEGUI and OGRE3d I started for an project again for testing out both systems.
Compiling of CEGUI (-v0 branch) and OGRE3D (2.1) went fine, no problems (besides that I need to finetune the cmake project results).

I digged around and found code snippets for using CEGUI with the new OGRE3D 2.1 System, but I not see any outcome.
I get some shader errors in the logfiles, are this the reason of the problems? Or do I something wrong (Sure, I must be doing something wrong, I have seen other threads where people was able to use CEGUI with Ogre 2.1).

Could someone point me into the right direction for seeing the test button?

Logfiles:
Testcode: http://pastebin.com/59nmm2gL
CEGUI Log: http://pastebin.com/7cnXfNuL
OGRE3D Log: http://pastebin.com/zEST2B2W

Logout from ogre.log:

Code: Select all

14:42:12: Shader Compiler:error(high) 0: GLSL compile failed for shader 3, "": ERROR: 0:6: 'array without size' :  supported in geometry shaders only 
ERROR: 0:9: 'exTexCoord' : undeclared identifier
ERROR: 0:9: 'uv0' : undeclared identifier
ERROR: 0:9: 'exColour' : undeclared identifier
ERROR: 0:9: 'colour' : undeclared identifier
ERROR: 0:9: 'modelViewPerspMatrix' : undeclared identifier
ERROR: 0:9: 'vertex' : undeclared identifier
ERROR: 0:9: 'assign' :  cannot convert from 'float' to 'Position 4-component vector of float'
 
 
14:42:12: GLSL compile log: __cegui_internal_vs__
ERROR: 0:6: 'array without size' :  supported in geometry shaders only 
ERROR: 0:9: 'exTexCoord' : undeclared identifier
ERROR: 0:9: 'uv0' : undeclared identifier
ERROR: 0:9: 'exColour' : undeclared identifier
ERROR: 0:9: 'colour' : undeclared identifier
ERROR: 0:9: 'modelViewPerspMatrix' : undeclared identifier
ERROR: 0:9: 'vertex' : undeclared identifier
ERROR: 0:9: 'assign' :  cannot convert from 'float' to 'Position 4-component vector of float'
14:42:12: OGRE EXCEPTION(3:RenderingAPIException): Vertex Program __cegui_internal_vs__ failed to compile. See compile log above for details. in GLSLShader::compile at ..\..\..\RenderSystems\GL3Plus\src\GLSL\OgreGLSLShader.cpp (line 297)

Re: Not see anything (CEGUI -v0 with Ogre 2.1)

Posted: Sat May 09, 2015 17:19
by jserve
I switched now to the 0.8 branch and atleast the errors doesn't appearing anymore...
But still, I can't see anything from CEGUI (neither the test button or the mouse cursor)

Re: [Solved] Not see anything (CEGUI -v0 with Ogre 2.1)

Posted: Sun May 10, 2015 14:04
by jserve
Thanks to Ident and fluxlucebac I was able to dig down the problem.
My major problem was that I not had used a FrameListener. (Which wasn't needed with Ogre 1.9?)

Sofar, I get my testapplication working and seeing my CEGUI stuff as I expected :)

So, next step is for creating a wiki and a simple Ogre3D 2.1 example for giving other people a kickstart.