I have one BIG problem:
We write game, in her we use 2 renders OpenGL and DirectX8.1.
So, when use DirectX8.1 it's all normal, but when use OpenGL all images is white, at all I do not know.
Beforehand thanks for the help

Best regards,
Vitaliy
Moderators: CEGUI MVP, CEGUI Team
scriptkid wrote:Hi,
do you mean the standard CEGUI renderers? Can there be an issue with texture sizes (power of 2) or something, which might cause drivers to behave differently? Or do the problems also occur when you run default CEGUI samples?
HTH!
Pompei2 wrote:Simple question: Do you catch CEGUI exceptions ? And did you already look in the CEGUI.log file ?
Pompei2 wrote: (maybe wrong path, wrong codec, ...)
Levia wrote:..Try to convert the picture you are loading to another format.
Pompei2 wrote:In OpenGl, everything is white when the texture hasn't been correctly loaded. In most cases, when a OpenGL call failed, glError returns the last error. As CEGUI generates no exception, I believe that CEGUI doesn't check the OpenGL error state (but I'm not sure !), so you could try to see if there happened a OpenGL error after CEGUI loaded all your data (using glError function). If it is so, it might help you to find your error. If there is no OpenGL error, you can try to debug the CEGUI code
Code: Select all
// Here you initialise CEGUI (and it loads the textures)
...
// Right after it, you call glGetError to see if opengl reported an error.
if( GL_NO_ERROR != glGetError( ) ) {
// OpenGl reported an error, now you just have to look what error it is
// and think a bit about it, maybe you will find what's up :)
}
Pompei2 wrote:hmm ok a sample:Code: Select all
// Here you initialise CEGUI (and it loads the textures)
...
// Right after it, you call glGetError to see if opengl reported an error.
if( GL_NO_ERROR != glGetError( ) ) {
// OpenGl reported an error, now you just have to look what error it is
// and think a bit about it, maybe you will find what's up :)
}
see all possible return values and a detailed description in the man page.
Return to “Modifications / Integrations / Customisations”
Users browsing this forum: No registered users and 8 guests