Re: pfLoad of DWB

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (allan++at++southpark.engr.sgi.com)
Mon, 8 Feb 1999 19:15:57 -0800 (PST)


On Feb 4, 10:18am, Tanaka, Ken wrote:
> I'm loading in a DWB 3.1.3 (an old version) file with Performer 2.2 and
> doing a recursive pfPrint of the resulting geometry. I've noticed the text
> string paths of the named nodes don't appear at all like the hierachy in the
> Designer's Workbench tool. Is this to be expected, or is this a bug of
> version incompatibility (between DWB 3.1.3 and Performer 2.2 DWB loader)?
>
> I'm concerned because I'm finding nodes by name and inserting pfDCS nodes to
> animate instrument needles. I am having some problems locating all of the
> nodes with this approach--some names don't seem to the in the pfPrint
> output, although they are present in the DWB file.

Having glanced through the DWB loader code, there are a few things
which stand out: it does a pfFlatten(), and there is also some code
which is described as follows:

  /*
   * Now if this is not a linked file then remove any redundant
   * groups this changes the structure from a one to one mapping
   * with the dwb hierarchy but should result in a more optimal
   * scene if clip regions exist within the model then they may
   * be on nodes with no geometry
   */

Also make sure you're not allowing any other builder optimizations to
take place after the file is loaded. perfly will sometimes do this.

As far as tinkering with it to see if this code is causing your
problem, you're in luck, we ship the DWB loader source code on the
Performer 2.2 cd, in performer_dev.src.loader (not installed by
default). Look under /usr/share/Performer/src/lib/libpfdb/libpfdwb/pfdwb.c

Allan

-- 
Allan Schaffer                                                allan++at++sgi.com
Silicon Graphics                               http://reality.sgi.com/allan

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Feb 08 1999 - 19:16:01 PST

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