Taking 2D slices of 3D images in OpenGL

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

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?

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.