|
Octane fog problem
Mark Davey (mkd@medphys.ucl.ac.uk)
Hi.. I have now sorted out my dithering problems on our new Octane (by reducing the resolution to 1024x768, which makes the screen look a little horrid since we have a nice 21 inch flat screen monitor and so now text looks very pixelated indeed... Never mind...) However, I now have a new problem ( is it just me that has so many problems? ) As part of my current application, I use glFog as a means of improving depth perception. Development has taken place on an Onyx2. Since we received our new Octane I have tried running our application on this platform. Everything goes well (after I fixed the dithering problem) EXCEPT for the GL fog. It appears that maybe lookup tables are not working on the Octane when fog is enabled.
As an example I am including a revised Draw function to replace that
If the demo program
voglBasic CT.Head.Small.char.tif -sc 1 1 3.2
is then run on our Onyx2 then I get a nice fog enhanced volume rendered
Anyway here is the code segment. I replace the usual glFrustum command
Regards
void
glEnable(GL_DEPTH_TEST);
float m[4][4];
glMatrixMode(GL_MODELVIEW);
// Temporary changes to show fog
glMatrixMode(GL_PROJECTION);
glMatrixMode(GL_MODELVIEW);
// End of changes
glMultMatrixf(&(m[0][0]));
glScalef(
my_DrawVolume(my_Data.aTetraSet, my_Data.aVolume);
GLwDrawingAreaSwapBuffers(widget);
}
-- From: Mark Davey Dept. of Medical Physics, UCL.
This archive was generated by hypermail 2.0b2 on Thu Mar 02 2000 - 06:28:56 PST |
|
made by Digital Vintage with nginx-s3-gateway and some magic digitalvintage.ru t.me/digitalvintage_ru instagram.com/digitalvintage.ru |