White image
Moderators: CEGUI MVP, CEGUI Team
White image
Hello!!!
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
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
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!
Yes, I mean standart CEGUI renderers. Yesterday I take old builds and has noticed that a problem in converting at preservation images (me recently have put on the project, the man which worked earlier has left, to consult is not present with whom) if I take old images (which made not I) it's OK, I mean simply incorrectly I save tga format, can there is any special adjustments (I has tried all in AdobePhotoshop CS2 and ASDSee)? You can tell as correctly save it, and where? I has rummaged all of the help and forums, I can not find anywhere.
Thanks that you have responded
Pompei2 wrote:Simple question: Do you catch CEGUI exceptions ? And did you already look in the CEGUI.log file ?
Yes, but there is no exeptions!!
Pompei2 wrote: (maybe wrong path, wrong codec, ...)
As I already spoke, problem in convertation. Most likely wrong path or codec, or.... And what correct? Through what program it is necessary to convert?
Please, help, because I have gone to "impasse"!!!!!!!!!!!
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
Levia wrote:..Try to convert the picture you are loading to another format.
OpenGLTexture::tImageTGA* OpenGLTexture::LoadTGA(const unsigned char* buffer, size_t buffer_size) - Support of other formar necessary to finish manually
Last edited by Vetal_28 on Tue Apr 03, 2007 15:15, edited 2 times in total.
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
I don't see glError function, it's not present. Or I blind ?
hmm ok a sample:
see all possible return values and a detailed description in the man page.
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.
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.
There is no error! glGetError( ) return GL_NO_ERROR. Problem only in convertation of the image now is precisely clear that.
I heard that in tga format there are special bits indicating, whether is turned image or is reflected, only as well as than them to specify I do not know, and find I can not.
Can a problem be in it?
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 2 guests