Volumizer Appearance Problem

New Message Reply Date view Thread view Subject view Author view

Florian Schroecker (fschroecker@hotmail.com)
Wed, 24 Mar 1999 07:58:58 PST


A adapted version of the Volumizer Inventor example class
voivAppearance generates the following error on creating a
voBrickSetCollection:

Error: Bad value in textureLoad(); possibly too large of a brick
requested.

This happens when a new Volume is loaded by changing the fileNameField,
it works fine the first time. The Volume we use is 256*256*128 and
should
use the whole 16MB Texture memory of our ONYX.

The voivAppeance class had no cleanup code, we added the following to
clean up
before loading another Volume:

voAppearanceActions::volumeUnoptimize(_aVolume);

voBrickSetCollectionIterator collectionIter(_aVolume);
for (voBrickSet * brickSet; brickSet = collectionIter();)
{
voBrickSetIterator brickSetIter(brickSet);
for(voBrick * brick; brick=brickSetIter();)
voAppearanceActions::dataFree(brick);
}
delete _aVolume;

Maybe there is a problem in the destructor of voBrickSetCollection or in
voAppearanceActions::unOptimize ?

The problem does not appear if voAppearanceActions::volumeOptimize
is not used, but this results in really slow rendering.

Maybe somebody knows about the problem or has any suggestions?

thanks, Florian

-------------------------------------------------------------------
Institute for Medical Informatics
Braunschweig, Germany

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Nov 01 1999 - 12:03:15 PST