Sign in to follow this  
Geometrian

3D Textures

Recommended Posts

Hello, I asked this question on IRC, with no success. I'm trying to get 3D texturing working. For simplicity, I'm starting with a white texture, which I tried creating with NumPy. The relevant calls:
data = numpy.ones((64*64*64*3)).tostring()
glTexImage3D(GL_TEXTURE_3D,0,GL_RGB,64,64,64,0,GL_RGB,GL_UNSIGNED_BYTE,data)
I'm drawing a box with appropriate 3D texture coordinates, and I'm getting the result: Why isn't the box white? Thanks, -Geometrian

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this