Re: iR vs O2 textures

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Tue, 6 Jan 1998 13:00:00 -0800


On Jan 6, 7:29pm, Svend Tang-Petersen wrote:
> Subject: iR vs O2 textures
> Hi Performers.
>
> I'm doing some development using Performer-2.1 on my O2 and Onyx2
> InfiniteReality.
>
> I've noticed a difference in the appeareance of textures on the two
> graphics systems. On the O2 they
> look fine, but on iR I get banding. i.e. the texture(s) look like it's
> only 4 bit components and not 8.
>
> I'm probably missing something when I load the textures or set the
> texture environment:
>
> tev = new pfTexEnv();
> tev->setMode( PFTE_MODULATE );
>
> crystal_texture = new pfTexture;
> crystal_texture->setFormat( PFTEX_INTERNAL_FORMAT, PFTEX_RGBA_8 );
> crystal_texture->loadFile( "flare1.rgb" );
> crystal_texture->setRepeat( PFTEX_WRAP_S, PFTEX_CLAMP );
> crystal_texture->setRepeat( PFTEX_WRAP_T, PFTEX_CLAMP );
>
> I'm using a pure white and no alpha on the polygon. Is there some
> difference in the default
> Performer/OpenGL settings.
>
This is strange. Use the OpenGL tokens to explicitly request a desired
format. There is probably an IrisGL token legacy issue here, the
GL_RGB8_EXT is probably what you want. RGB & RGBA used to be the
same in IrisGL (I think) but you're using a 4 component internal
format with a 3 component image in your example, it's probably wise
use the OpenGL tokens explicitly in this case.

Cheers,Angus.

-- 
"They can't break you if you don't have a spine."
                                      - Wally.

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:32 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.