Hi all!

I have a problem with passing a 1D Array of floats to my shader:

TextureObjChunk::initialize image failed: invalid value(0x501)

This error happens when I try to use a 1D Image:
img->set( Image::OSG_RGBA_PF, N, 1, 1, 1, 1, 0, (UChar8*) &buffer[0],
OSG::Image::OSG_FLOAT32_IMAGEDATA);

where buffer is a std vector<float> with size 4*N

Texture:
tex_obj_chunk->setTarget(GL_TEXTURE_1D);
tex_obj_chunk->setInternalFormat(GL_RGBA_FLOAT32_ATI);

I am not sure what enum I have to use, I think there is an obvious
mistake.. (I hope so ;))


Best regards,
Victor
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to