Hi Cartern,
Thank you for the opengl debugger suggestion. I have used glInterceptand it
seens to be pretty nice :-)
After you asked if the values of width, height and depth were powers of 2, i
scaled the image using the function scaleNextPower2() to check if this is
not the problem. The result was the same. Still getting the same error. But
the glInterceptand log prints the following:
GL ERROR - Function
glTexImage3DEXT(GL_TEXTURE_3D,0,6406,512,2048,256,0,GL_ALPHA,GL_UNSIGNED_BYTE,0x26060040)
generated error GL_INVALID_VALUE
ImageSaveManager::Save3DImage - invalid width/height/depth on image
InterceptImage::SaveTextureImage - Error saving image 2
Wich makes me think that it is a error on image dimension. But, as you can
see, the values are power of 2. So, this looks strange to me.
Daniel
> Hello Daniel,
>
> daniel trindade wrote:
>
> Hi, I'm trying to create a 3d texture, which will be accessed in a
>
> shader program. I think i'm having problems with the texture creation,
>
> because the following message is always
>
> printed:
>
>
> WARNING:
>
> (..\..\..\Source\System\State\Base\WS\OSGTextureObjChunk.cpp,1187):
>
> TextureObjChunk::initialize image failed: invalid value (0x501)
>
>
> hm, yes there is a wrong value passed to OpenGL, but this message is
> from the glError check after most of the setup work for the texture is
> done, so there is a large block with many OpenGL calls before it.
> It would help a lot if the exact call that fails could be located, do
> you have access to an OpenGL debugger? On linux bugle normally works
> fine (never tried it on windows though), I've had some success with
> glIntercept on windows.
>
> I found that this error occurs when a invalid value is passed to opengl.
>
> But i can't see what i'm doing wrong. Here is the code:
>
>
> [SNIP - code]
>
>
> data is a array of unsigned chars with width * height * depth elements.
>
> I'm using a nvidia quadro fx 5500, so i think the hardware is not the
>
> problem since 3d texture is supported.
>
>
> Is there anything wrong with the code above?
>
>
> can't spot anything. What are the actual values of width, height and
> depth, are they powers of 2 (not that I'd really expect it to be a
> problem nowadays if they are not...)?
>
> Cheers,
> Carsten
>
>
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users