From: Goncalo Carvalho (g.carvalho++at++gsa.ac.uk)
Date: 06/18/2003 04:36:51
pfHey,
This behavior is known. I reported it before. One way to solve it is to
do a setColorMode of PFMTL_CMODE_OFF on your materials.
On perfly you can use -q 0. It shouldn't call pfdMakeSharedScene.
Goncalo
Devrim Erdem wrote:
>
> Hello,
>
> I have an interesting case, or maybe it is pretty boring and clear for
> some of the mailing list members ( I hope ). My .pfa file has 3
> materials and 3 geostates which refer to these materials. While the
> model is being load in perfly perfly does a pfdMakeShared optimization.
> The optimization says :
>
> PF Info: pfdMakeShared optimizing traversal
> PF Unique state objects:
> PF GeoStates: 1
> PF Materials: 1
> PF Redundant state objects:
> PF None
> PF Performance statistics:
> PF Input objects: 2 (100.00%)
> PF Output objects: 2 (100.00%)
> PF Deleted objects: 0 ( 0.00%)
> PF Elapsed time: 0.000 sec
>
> It looks like there is only one material left out of 3 materials. In the
> pfa the materials are defined as :
>
> #---------------------- Materials
> 0 3
> #---------------------- Material 0
> 2
> 1
> 0
> 0 0 0
> 0.800000012 0 0
> 0 0 0
> 0 0 0
> 1 1
> -1
> #---------------------- Material 1
> 2
> 1
> 0
> 0 0 0
> 0 0.800000012 0
> 0 0 0
> 0 0 0
> 1 1
> -1
> #---------------------- Material 2
> 2
> 1
> 0
> 0 0 0
> 0 0 0.800000012
> 0 0 0
> 0 0 0
> 1 1
> -1
>
> All the materials are different by diffuse color. If I set the second
> parameter of the last material ( alpha ) to 0 , last material survives
> the optimization. But this doesn't work for the others. I am not able to
> understand the login behind this. To my understanding all 3 materials
> shall survive the make shared optimization. I appreciate any hints.
>
> P.S : How can I disable pfdMakeShared in perfly ?
>
> Best Regards,
>
> Devrim Erdem
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
-- Goncalo Carvalho Digital Design Studio - Glasgow School of Art House for an Art Lover - Bellahouston Park 10 Dumbreck Road Glasgow G41 5BW United KingdomTel: +44 (0) 141 353 4616 Fax: +44 (0) 141 353 4422 Mobile: +44 (0) 7766 295867 mailto:g.carvalho++at++gsa.ac.uk
This archive was generated by hypermail 2b29 : Wed Jun 18 2003 - 04:46:25 PDT