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

Reply via email to