PDA

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



argon
03-14-2004, 07: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?

-argon

03-14-2004, 07: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?

endash
03-15-2004, 08: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.