Re: .flt files loader

New Message Reply Date view Thread view Subject view Author view

Marcus (Marcus++at++multigenuunet.UU.NET)
Wed, 8 Feb 1995 11:54:48 PST


        Reply to: RE>.flt files loader
>Date: Wed, 8 Feb 95 09:40:17 +0100
>From: Riccardo Camiciottoli <camiciot++at++aguirre.ing.unifi.it>
>Message-Id: <9502080840.AA10135++at++aguirre.ing.unifi.it>
>To: info-performer++at++sgi.com
>Subject: .flt files loader
>
>Hi,
>
>I'm using the .flt file loader provided with Performer.
>It seems to work very fine, but it's impossible to put the loaded shape
>in a different place from the origin. I tryed to do this attaching
>the pfNode* coming from the loader to a pfDCS and then translating it
>with a pfDCSTrans, but the result is the same: the shape is very hardly
>anchored to the origin.
>Does anyone have a hint?

What exactly do you mean by "attach"? If you're trying to insert a
pfDCS between the pfNode* supplied by registerNode(), the loader
callback, then you can only do this in the case of CB_OBJECT and
CB_LOD, since they are the only nodes that have parents at the time
of the callback. For these two cases you could do something like:

  pfAddChild( your pfDCS, returned pfNode )
  for each parent of returned pfNode
    pfReplaceChild( which parent, returned pfNode, your pfDCS)

to insert you DCS into the scene graph so that it'll be part
of Performer's traversals and not an orphan.

>Thank's in advance.
>
>Ciao
>
>Riccardo
>
>-----------------------------------------------------------------
>| Riccardo Camiciottoli | Via Santa Marta, 3
>| Universita' di Firenze | 50139 Firenze
>| Facolta' di Ingegneria | Italia
>| Dipartimento di Sistemi e Informatica |
>| | Phones: +39 55 4796365 (voice)
>| email: camiciot++at++aguirre.ing.unifi.it | +39 55 4796425 (voice)
>| | +39 55 4796363 (fax)
>| www: http://aguirre.ing.unifi.it |
>-----------------------------------------------------------------

Ciao bella,
Marcus Barnes, Member Technical Staff
MultiGen Inc., 1884 The Alameda, San Jose CA, 95126
PH: (408) 261 4118 FX: (408) 247 4329
EMAIL: multigen!marcus++at++uunet.UU.NET


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:50:57 PDT

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