Re: Can PFCULL_SORT be on for only part of the scene?

New Message Reply Date view Thread view Subject view Author view

Remi Arnaud (remi++at++remi.asd.sgi.com)
Thu, 26 Sep 1996 10:35:25 -0700


On Sep 26, 4:07am, Tomas Moller wrote:
> Subject: Can PFCULL_SORT be on for only part of the scene?
> Hi Performers!
>
> I have two objects which both are partially transparent and for the first one
I
> want the geomtries to be sorted (i.e PFCULL_SORT is on), but for the other
> object I do not want the sorting (i.e PFCULL_SORT is off).
> Can anyone tell me who I can do this? I tried setting the draw bins, but
> wihtout success.

 if the bin is not set for a particular pfGeode it will go into the OPAQUE_BIN
or to the TRANSP_BIN if it's transparent.

 One solution is to force the BIN of the object to be the OPAQUE_BIN using:

 n = pfGetNumGSets(node);
 for(i=0; i<n; i++)
 {
        pfGSetDrawBin (pfGetGSet(node, i), PFSORT_OPAQUE_BIN);
 }

 The object will be sorted by State within the OPAQUE_BIN.

 If it's still not what you want, you can also create your own bin.

 -- Remi

-- 

o o Remi ARNAUD - Silicon Graphics, Performer, Advanced Systems Dev o o o o Mail Stop 590 - 2011 N. Shoreline Boulevard, Mountain View, CA94043 o o o o Email: remi++at++asd.sgi.com - Tel: (415) 933 6208 - Fax: (415) 965 2658 o o

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


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:53:38 PDT

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