Re: Storing pfObject to file

New Message Reply Date view Thread view Subject view Author view

From: Peter Oslej (peterO++at++vrm.sk)
Date: 01/26/2001 01:52:25


Hello Allan,

thank you for your answer.
The problem is how to save all textures without any geometry .
During the conversion every terrain tile is converted and stored into pfb
file without textures in it,
all textures are collected into pfdShare object.After last tile I can
obtain list of all textures with
 pfdGetSharedList(shObj,pfTexture::getClassType()).
pfdStoreFile() takes the argument pfNode * . So I need to make dummy
pfGroup and attach all texture to it ?
If yes how ? What function can store the pfList only without any geometry ?
Another way is to generate ascii initfile with names of all textures and
read it in init phase and then load to RM.
But more convenient way form me is to save textures to pfb file.
Do you have any idea ?
PeterO.

----- Original Message -----
From: Allan Schaffer <allan++at++sgi.com>
To: Peter Oslej <peterO++at++vrm.sk>; <info-performer++at++sgi.com>
Sent: Thursday, January 25, 2001 6:49 PM
Subject: Re: Storing pfObject to file

> On Jan 25, 5:47pm, Peter Oslej wrote:
> > Is it possible to store the pfList of pfTextures to pfbFile ?
> > I am writing utility for converting tiles of terrains
> > to pfb format for dynamic loading , and I am looking for the way
> > how to save info ( or whole texture) about all textures in terrain to
be
> > preloaded
> > on init phase into main memory and RMs.
>
> Yes, here's the mode you'll want to take a look at for storing them
> (from 'man pfb'), then pfuDownloadTexList to pre-load.
>
> [...]
> pfdConverterMode_pfb, pfdGetConverterMode_pfb,
> pfdConverterAttr_pfb, pfdGetConverterAttr_pfb, pfdConverterVal_pfb
> and pfdGetConverterVal_pfb allow the user to access and alter the
> modes, attributes and values of the pfb loader/storer. The pfb
> converter modes are:
> [...]
> PFPFB_SAVE_TEXTURE_IMAGE
> By default texture images are not saved in pfb files if the
> name of the file names an image file. Setting this mode to
> PF_ON forces the texture image to be saved.
>
> Allan
>
> --
> Allan Schaffer allan++at++sgi.com
> Silicon Graphics http://reality.sgi.com/allan
>
>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Jan 26 2001 - 03:24:03 PST

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