Re: Yosemite Demo

New Message Reply Date view Thread view Subject view Author view

Don Hatch (hatch++at++hell.engr.sgi.com)
Mon, 12 Jan 1998 19:08:56 -0800


On Jan 5, 4:47pm, giles wrote:
> Subject: Yosemite Demo
> I'm playing around with the Yosemite Demo that ships with Perf. 2.2 We
> are trying to change the saturation of the texture maps. What I can't
> figure out is what format the texture maps are in.
>
> I've looked at the clipmap textures, but I cannot figure out what the
> resultant files are. They don't seem to be rgb, and they are not
> compressed in a format I know of(I already ran the uncompress
> routines). Can you give me any pointers? Will I need to change the
> original map and then remake the clip texture?? For that matter, does
> anyone know where the original map is, or how to reconstruct is from the
> clipmaps.
>
> I've programmed a little performer, but I'm mostly familiar with
> openGL/Inventor. Thank you for any help that you can provide.

They are probably in raw 5551 format,
2 bytes per texel: 5 bits R, 5 bits G, 5 bits B, 1 bit A
with a lower-left origin, and with no file header.

You can deduce this by looking at the .ct file;
it will say something like:
    ext_format PFTEX_UNSIGNED_SHORT_5_5_5_1
See the man page for pfdLoadClipTexture
for how to read these configuration files.

There is a very primitive viewer program for these tiles in:
        /usr_share_Performer/src/tools/viewtile.c
Usage would be:
        viewtile <tilefilename> 5551

Don

-- 
Don Hatch  hatch++at++sgi.com  (415) 933-5150  Silicon Graphics, Inc.
=======================================================================
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:33 PDT

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