From: Victor H. <vic...@gm...> - 2012-06-11 15:18:30
|
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 |