Re: [info-performer] pfFindNode

Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 09/02/2003 11:46:54


Hi Anthony,

The behavior of pfFindNode was changed slightly in pf3.0.1, since it was
found to be inconstistent, and different from the man page description.
This change may be causing your code to break.

Try setting the following environment variable:

  _PF_NODE_FIND_REQUIRES_EXACT_TYPE

  This environment variable can be used to revert the behavior of
  pfNode::find (also called from within pfNodeLookup) to what it
  was before being fixed for pf3.0.1. The old behavior would
  carry out an exact type comparison (pfIsExactType) instead of
  using pfIsOfType as suggested by the manpages.

As regarding pfPrint, try setting verbosity to PFPRINT_VB_DEBUG.
This generates the most output, and should include your node names
down to the leaf level.

Hope this helps,
Regards,
Paolo

Anthony Clare wrote:

>
> Hi,
>
> I have previously used Performer calls through Vega on IRIX to
> manipulate the scene graph. I'm trying to do the same now with
> Performer on Linux. The call to pfFindNode is used to find individual
> nodes whose information was stored as the file was loaded. The nodes
> are usually pfGroup/pfGeode. I have not had any problems previously
> but now the nodes are not found. I can only find leaf nodes using
> pfFindNode or pfLookupNode. If I pfPrint the scene graph the node
> names are not printed down to the leaf node level. Can I find leaf
> nodes using pfFindNode or any other method?
>
> Thanks.
>
> _________________________________________________
>
> Anthony Clare
> Department of Automatic Control and Systems Engineering
> The University of Sheffield
> www.shef.ac.uk/acse/
> a.j.clare++at++sheffield.ac.uk
> _________________________________________________

-- 
Paolo Farinelli                                           paolo++at++sgi.com
Member of Technical Staff, OpenGL Performer              1-650-933-1808
Silicon Graphics        1600 Amphitheatre Pkwy, Mountain View, CA 94043


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Sep 02 2003 - 11:47:20 PDT