Performer+OpenInventor

New Message Reply Date view Thread view Subject view Author view

Jordi Regincos (Jordi.Regincos++at++irisa.fr)
Tue, 28 Sep 1999 10:49:25 +0100


Hi, I am new at this and so, I am sorry if I say a lot of messy things:

what I need to do:

I have an scene modelled in a language X (it doesn't matter it, but I
can not change this choice) and I have a translator from X to Open
Inventor (it builds an Open Inventor graph data structute in memory
which I can save or use directly) and I must visualize it using
Performer (a choice that I can not change neither). The scene can change
and the translator updates the Open Inventor data structure in order to
reflect these changes (it does not rewrite the graph; only local changes
are done).

I can not use pfdLoadFile() because I think it has no sense to write a
new file each time a small update is done in the scene. I think I should
use

        pfNode * pfdConvertFrom(*SoSeparator,"iv")

the first time in order to have the hole scene imported in the Performer
graph, but my doubts arise when I have to update the graph. One simple
way to achieve that (I think) is once the translator has update the
Inventor tree, to build a new performer tree with pfdConvertFrom and
then use the method

        pfGroup::replaceChild(pfNode *old, pfNode *new)

to update the performer data structure... I've tried it and it works,
but the problem is that for a small change the entire translation should
be done and I suppose it will be time consuming.

So, I'll appreciate very much any hint about how can I manage to make
"incremental" updates to the Performer graph according to the updates
done in the Inventor graph (I have the sources of the translator from X
to Open Inventor and I can modify them as much as I need)

thanks

        Jordi

-- 
Jordi Regincos Isern (projet SIAMES) 
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 74 83 / 25 18, Fax: +33 (0) 2 99 84 25 27

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Sep 28 1999 - 02:49:44 PDT

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