Sylvain Mayer (mayer++at++CAE.CA)
Fri, 08 Oct 1999 16:53:11 -0400
is there any particularities using convolution stuff on O2?
I have some code that runs fine on an Indigo2/Impact but runs very slowly on my
O2. Here are the portions of code I suspect is causing slowdown (which is taken
from the draw function of a pfChannel derived class):
glSeparableFilter2DEXT( GL_SEPARABLE_2D_EXT,
GL_LUMINANCE,
3, 3, GL_LUMINANCE, GL_FLOAT,
kern, kern );
// apply scaling factor
glPixelTransferf(GL_RED_SCALE,gain);
glPixelTransferf(GL_GREEN_SCALE,gain);
glPixelTransferf(GL_BLUE_SCALE,gain);
// apply bias factor
glPixelTransferf(GL_RED_BIAS,level);
glPixelTransferf(GL_GREEN_BIAS,level);
glPixelTransferf(GL_BLUE_BIAS,level);
// set color table
glColorTableSGI(GL_COLOR_TABLE_SGI, GL_RGBA8_EXT, colorTableSize,
GL_LUMINANCE, GL_UNSIGNED_BYTE, colorTable);
// Perform color table lookup followed by convolution.
glEnable(GL_COLOR_TABLE_SGI);
glEnable(GL_SEPARABLE_2D_EXT);
glCopyPixels(0,0,sizeX,sizeY,GL_COLOR);
Is it normal that it is slow on an O2 ??
My desktop is configured to be 32+32 bitplanes and I tried using the following
pixel format: 0x3a, 0x3b but any of these would give me good performance. I'm
using Performer 2.2.2 and IRIX 6.3.
regards, Sylvain
________________________________________
Sylvain Mayer, 3D Graphics Developer
Graphics Simulation Technology
Display Eng. & Special Projects
CAE Electronics Ltd. (http://www.cae.ca)
mailto:mayer++at++cae.ca
Tel: (514) 341-6780 Ext: 3065
Fax: (514) 734-5618
*** For the latest Vis-Sim related info check out: http://www.vis-sim.org
This archive was generated by hypermail 2.0b2 on Fri Oct 08 1999 - 13:54:31 PDT