Hi, ok I give up. After a lot of trying and searching i still fail to create a simple 3d texture from a raw byte array for example. Could anyone help me with how to put something like
Code: glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glGenTextures(1, &m_GLuint); glBindTexture(GL_TEXTURE_3D, m_GLuint); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_S, GL_CLAMP); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_T, GL_CLAMP); glTexParameteri(GL_TEXTURE_3D, GL_TEXTURE_WRAP_R, GL_CLAMP); glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, m_columns, m_rows, m_frames, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE,&m_data); into osg code or point me towards some example code. The texture3d example here doesn't really help. Any help would be greatly appreciated. ... Thank you! Cheers, rs ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=17648#17648 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

