LOADING 3D Images in Open GL
Hi guys,
Could anyone please show me how to upload an image (.pln, or 3d .bmp) into open gl. The pln extension is an archicad extension.
Thanks.
You would use glTexImage3D. It takes a pointer to your array of texels as indicated here
http://www.opengl.org/sdk/docs/man/xhtml/glTexImage3D.xml
If you can use a glTexImage2D, then you can use glTexImage3D except that texcoords need to be 3d as well.
http://www.opengl.org/sdk/docs/man/xhtml/glTexImage3D.xml
If you can use a glTexImage2D, then you can use glTexImage3D except that texcoords need to be 3d as well.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement