Re: Clipmap Config Files

New Message Reply Date view Thread view Subject view Author view

Tom McReynolds (tomcat++at++asd.sgi.com)
Fri, 11 Jul 1997 11:36:21 -0700


Tze Lin Ong wrote:
>
> Hi!
>
> Thanks for the speedy posting.
>
> On Jul 10, 10:54am, Richard McDonald wrote:
>
> > >
> > > ic_version1.0/ct_version1.0
> >
> > OK here.
> >
> > > ext_format PFTEX_PACK_8
> >
> > Try ext_format PFTEX_UNSIGNED_SHORT_5_5_5_1
>
> > This has worked for me.
>
> > int_format GL_RGB5_A1_EXT
> > img_format PFTEX_RGBA
> > <etc>
>
> Right, tried this, but performer sez:
>
> PF Notice: pfTexture - bad number of components 65535 - use
> pfTexImage to set in range [1-4]
> PF Warning: pfdLoadClipTexture: Invalid Image Format
> PFTEX_UNSIGNED_SHORT_5_5_5_1
>
> ...have I not installed something that I should have? It seems performer
> doesn't recognise tokens the man pages say it should, even when I try UNSIGNED
> for img_format (which the man page says is a valid token).
>
> BTW my tiles are 512x512 so for 5551 they are 524288 bytes in size (except for
> the smaller 256 and below tiles).
>
> Also, my 888 tiles work ok, using the sample config files. I just want to see
> the performance delta using smaller-sized tiles.

This is a known performer bug, which is at least partially fixed
in 2.2 (at least you won't hit it with cliptexture config files).
The problem is that the texture configuration code is order dependent.

To fix it, I think you have to have your config files in the
following order:

ext_format PFTEX_UNSIGNED_SHORT_5_5_5_1
int_format PFTEX_RGB5_A1
img_format PFTEX_RGBA

I may have this wrong. Try permutations of these three. The 2.2
config code is careful to always order the calls correctly.

If this still doesn't work, let me know, and I'll look into the
workaround harder.

                -Tom

>
> Cheers,
> tzelin
>
> --
> ______________________________________________________________________
> Ong Tze Lin Silicon Graphics ASEAN Headquarters
> 89 Science Park Drive #03-03 to 06
> Systems Engineer The Rutherford, Singapore 118261
> Vissim/Defence Ind. Mktg. Tel: 65-7773088 Fax: 65-7793650
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
=======================================================================
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:55:36 PDT

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