View Full Version : cutting into 3D texture with irregular shape
09-09-2002, 04:08 AM
iam facing a problem how i can cut into a 3D texture with irregular shape so that i can visualize internal parts of the volume
thx for help
09-09-2002, 04:59 AM
If your geometry and volume data is decoupled, this is quite easy. Otherwise you could "carve" out the structure by altering the volume data directly.
Have you tried letting OpenGL generate the texture co-ordinates (OBJECT_LINEAR) when you draw the shape?
(using glTexGenf( GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR) etc.)
That should work if you have a true 3D texure setup.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.