[info-performer] Seg fault trying to control attribute sharing

Date view Thread view Subject view Author view

From: Alex Hill (ahill++at++evl.uic.edu)
Date: 04/21/2005 08:42:10


I am trying to prevent attribute sharing (i.e. pfMaterial) when models are
loaded using pfdLoadFile.
I am looking for a global procedure that does not require sending specific
flags to each loader.
I have tried to create a new pfdShare structure and set it to the global
share (pfdSetGlobalShare) and the builder share (pfdSetBldrShare).
I figured this would allow me to load models without sharing existing
attributes.
I found that this did not prevent sharing, so I resorted to traversing the
loaded pfGeode and duplicating any pfMaterials that have a reference count.
This worked until Performer 3.2, and now I get a seg fault.
Can anyone suggest a more elegant way to load models without sharing
attributes?
Thanks,
Alex Hill
EVL Chicago


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Apr 21 2005 - 08:42:55 PDT