From: Christoph Ramseyer (cramseye@stud.ee.ethz.ch)
Date: 08/10/2000 05:21:35
Hi,
When I am calling voBrickSet's getVoxelAddr() or setVoxel() my program
(built around voglSimple) exits with the error message
[1] Trace/BPT trap voglSimple ...
Some info about the data format:
dataType: unsigned byte
diskDataFormat: luminance
externalFormat: luminance_alpha
internalFormat: luminance8_alpha8_ext
At the time of the function calls the voxel data is properly initialized
and resident in memory (I can see the voxel data on screen).
The voxel coordinates passed should be O.K., my volume has size 128 x
128 x 38.
I am using
OpenGL Volumizer 1.2 (Date: Dec 10 1999 16:17)
IRIX 6.5
SGI OCTANE
Thanx a lot for solutions & suggestions
Chris
Here comes part of the code:
//read voxel
GLubyte* valueGetCast = new GLubyte;
valueGetCast = (GLubyte*) aBrickSet->getVoxelAddr(2,2,2);
//set voxel
GLubyte valueSet[] = {244,230};
aBrickSet->setVoxel(2,2,2,valueSet);
This archive was generated by hypermail 2b29 : Thu Aug 10 2000 - 06:46:04 PDT