Re: Volumizer Appearance Problem

New Message Reply Date view Thread view Subject view Author view

Sean Spicer (spicer@bme4.stanford.edu)
Thu, 25 Mar 1999 10:43:22 -0800 (PST)


Florian,

I think I know exactly what your problem is, Chikai and I actually ran
into this just a couple of weeks ago. Look at your DrawVolume code, does
it contain the following lines???

// Update texgen equation for the current brick.
if (!hasTextureComponent(svrVolume::interleavedArrayFormat)){
if(voError::getErrorNumber() != voErrorTypeScope::NO_ERROR){
cerr << voError::getErrorString() << endl;
exit(1);
}
voAppearanceActions::texgenSetEquation(aBrick);
}

If so, then I think this is where things are going wrong. I've found that
there appears to be bug in hasTextureComponent(...) on Reality machines,
and some MXI Octanes. I'm not sure exactly why some machines are effected
and others aren't, but that has been my observation. In my Volume
rendering class (svrVolume -- see DT) I have replaced the above with the
following:

/* O2 error in here. */
// Update texgen equation for the current brick.
/*
if (!hasTextureComponent(svrVolume::interleavedArrayFormat)){
if(voError::getErrorNumber() != voErrorTypeScope::NO_ERROR){
cerr << voError::getErrorString() << endl;
exit(1);
}
voAppearanceActions::texgenSetEquation(aBrick);
}
*/

// THIS IS A BUG WORKAROUD!!! hasTextureComponent fails on
// on some Reality machines and Octanes.!
voAppearanceActions::texgenSetEquation(aBrick);

This means your code won't work on O2's, if you care about that, but my
experience has also been that there's an O2 bug in texgenSetEquation(...).
Oh well, 1.2 should be out soon <grin>.

Hope this helps,

sean

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sean Spicer (spicer@bme.stanford.edu)
Department Of Mechanical Engineering " It could be that the
Stanford University purpose of your life is
Office: P329 MSLS, 650.498.4976 (daytime) only to serve as a
650.497.7964 (evening) warning to others. "

WWW: http://solvedeath.stanford.edu/~spicer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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