View Full Version : problem when using 3d texture
05-17-2005, 11:49 PM
hello i use a stack of CT images to make 3d texture. when using 1 image the 3d texture is 256*256*1,the mapping result is correct.but when using 2 images to define 3d texture,it must be 256*256*2,the result have something wrong.the result image become bigger and only see a little area of initial image and image quality becomes bad. whether my glTexParameter()wrong? when the 3d texture is 256*256*2 or 256*256*4 ,does the rendeing process need some change?
05-18-2005, 10:28 PM
This is a strange one. Something crazy like a projection on your texture matrix could cause this.
It may just be a 3D addressing bug but it's difficult to tell from your desctiption.
Oh.... it may be the way you're specifying your images, if you screwed up the str image dimensions you could see what looked like blocks of your image scattered through the volume in a pattern, make sure you don't confuse s,t,r dimensions anywhere in your code from your loading, your in memory layout to your teximage or texsubimage calls.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.