format texture

New Message Reply Date view Thread view Subject view Author view

Marco Tartaglia (marco++at++infobyte.it)
Tue, 23 Apr 1996 19:25:32 +0000


Hello Performer guys,

I need to speed up the texture loading and reduce the amount of disk and memory
space.
Since in my application I have power of two textures, no mipmap filter, static
image, I think all I have to do is:

1. (just for one time) build a program that load my 'unformatted' textures,
format them and save on disk the formatted textures;

2. (in regular loading stage) load from the disk only already formatted
textures with the PFTEX_SUBLOAD_FORMAT option:

        image = pfMalloc(...);
        read_image(image, ...);
        tex = pfNewTex(...);
        pfTexFormat(tex, PFTEX_SUBLOAD_FORMAT, PF_ON);
        pfTexImage(tex, image, ...);

And so the questions:

- Do you think it's possible ?

- Is there a way in Performer to get a pointer/handle of the formatted copy of
a texture ?

My configuration is : RE2, Performer 2.0 (IrisGL and OpenGL) and I use 900 Mb
of RAM for unformatted and formatted textures.

thank you

marco

-- 
Marco Tartaglia                                                    Infobyte Spa
VR R&D Software Engineer                              Via della Camilluccia, 67
E-mail marco++at++infobyte.it                                     00135 Roma - Italy
Tel +39-6-35572210                                           Fax +39-6-35572300

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:52:45 PDT

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