Hi, I am posting this again as i have only gotten one reply back and it was not fruitfull. __________________________________________________ Hi, I have been trying out Doug Gehringer's Volume Rendering app. (available from j3d.org) and have noticed this peculiar misbehavior. What I noticed is that YUP only works for the textures along the z-axis but not the x-axis nor the y-axis. I thought it was a bug in the code but could not resolve it. To try to track it down, I even changed the order in which the textures are generated and displayed, but that did not change things: the z-textures where displayed correctly as YUP, but the the other axis textures where displayed upsided down; this is apparent by the flip of the voxels when the volume is rotated. To see this for yourself, do the following: 1. get Doug Gehringer's Volume rendering app (available from j3d.org) 2. In Texture2DVolume.java, change the following line(s) (approx. line 210 and 226): pArray = new ImageComponent2D(ImageComponent.FORMAT_RGBA, sSize, tSize); and pArray = new ImageComponent2D(ImageComponent.FORMAT_CHANNEL8, sSize, tSize); to: pArray = new ImageComponent2D(ImageComponent.FORMAT_RGBA, sSize, tSize,false,true /* YUP flag*/); and pArray = new ImageComponent2D(ImageComponent.FORMAT_CHANNEL8, sSize, tSize,false,true /* YUP flag*/); respectively. 3. build and run it and load the sample 64x64x64 data set; as you rotate the volume, you will see a sudden jump of the voxels ... this is actually a flip but do due the symmetry of the data, it just looks like a jump. I considered that it might have to do with the loading of the textures from the dataset but the app seems to work fine with YUP being false (there are no apparent flips) so i ruled that out. So, if you do this and this is all true, can you please tell me if this is a bug in the code (and where is it) and if not, is this a YUP bug? nader =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
