Re: Culling

New Message Reply Date view Thread view Subject view Author view

Gordon Tomlinson (gordon++at++paradigmsim.com)
Mon, 29 Nov 1999 13:07:14 -0600


Hi Dimi

This is quite simple you need to place a Trav call back func
on ALL the nodes you want to be NOT culled

This will have to be add to all the parents of the nodes and
there parents back up to the Root node.

pfNodeTravFuncs( node, PFTRAV_CULL, PreCullCb, NULL );

int
PreCullCb(pfTraverser *trav, void *data) {

      pfCullResult( PFIS_MAYBE | PFIS_TRUE | PFIS_ALL_IN );

 return PFTRAV_CONT;
 }

Gordon

> Hi
> How do I prevent a pfGeode Node with many Geosets from beeing culled.
> This is needed because I update the geometry of the Geosets at run time
> and
> I guess that it would be quite expensive to compute the the Bounding
> Sphere
> needed for culling every frame.
> With culling enabled for that node, my geometry gets sometimes culled
> even
> though it is in the Viewing Frustum, because the Bounding Sphere is not
> right.
>
> Thanks in advance
> Dimi
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 

Regards

Gordon.

Gordon Tomlinson | Multigen - Paradigm Inc Vega Software Engineer | Suite 400, 14900 Landmark Blvd Email: gordon++at++paradigmsim.com | Dallas, Texas 75240, USA Tel: 972 960 2301 | Fax: 972 960 2303 ______________________________________________________________

'Smoke me a kipper skipper, I'll be back for breakfast' ______________________________________________________________

NOTE: All opinions here within this email are solely mine and DO NOT reflect those of MultiGen Paradigm or any other employee.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Nov 29 1999 - 11:04:39 PST

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