View Full Version : Taking 2D slices of 3D images in OpenGL

03-14-2004, 06:21 PM
I need to make a program to take 2D slices of 3D images, and to display the 2D slices one-at-a-time quickly. Does anyone have some sample code that I could use to get started?


03-14-2004, 06:26 PM
I need to accomplish the same thing, but I also need to be able to rotate, translate, scale the 3d image, and THEN slice it up and display it.

Can anyone help me out?

03-15-2004, 07:11 AM
All of this is quite doable using 3D textures which are described in the red book (the OpenGL Programming Guide). I'd start by learning how to do 2D texture mapping. Once you can do that, 3D is easy.

Then for rotating the 3D texture you could use texture matrix operations.