From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 05/20/2003 19:00:44
Hi Devrim !
Try:
pfdConverterMode_pfb(PFPFB_SHARE_GS_OBJECTS, PF_OFF).
This should turn off sharing of all objects, including textures.
The PFB loader doesn't have a texture-only sharing flag.
> I have noticed that if a pfb contains several pfTexture objects which
> use the same image file but differ in other texture properties such as
> texture repeat and filter, perfly loads only one image file. However to
> my understanding although these pfTextures are not identical except the
> image they contain, these pfTextures are shared.
The PFB loader source checks for all the different attributes of a texture.
It shares textures only if they are identical (including their wrapping
attributes). Are you sure that your PFB file contains two separate textures ?
> A simple example is when 4 polygons exist in the database and each of
> them have the same texture image but with different texture repeat
> settings. In perfly they all look the same.
Sounds like all your polygons share a single pfTexture.
> Is this a bug or a feature which I can tweak ?
Performer ships with the source to the PFB loader. It's under:
/usr/share/Performer/src/lib/libpfdb/libpfpfb/
So, it's easy to check what it does.
-yair
--
\_________ \_____ \__ \__ \_____
\_________ \_____ \__ \__ \_____ Yair Kurzion
\__ \__ \____\__ \__ yair++at++sgi.com
\__ \__ \__ (650) 933-6502
\__ \__ \__
\__ \__ \__
This archive was generated by hypermail 2b29 : Tue May 20 2003 - 19:01:05 PDT