Hi Tim,

On 21/7/09 2:31 PM, Tim Allen wrote:
I have two problems with texturing in osg.

1)The first problem is to create a procedural 2D texture.The setImage function 
doesnt
work for me.

I created a 2D texture array image[64][64][4];
image->setImage(64,64,1,4,GL_RGBA,GL_UNSIGNED_BYTE,(unsigned
char*)checkImage,osg::Image::USE_NEW_DELETE);

I get an error because it accepts only character type of data.Can some one 
point me to
some example code or help how to use setImage functions for 2d procedural 
textures.

I don't actually understand what the exact problem is. It sounds like the compiler is throwing up an error? What type is 'checkImage' and how is it allocated? Could you post some additional code?

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to