From: MLM Veraart (veraart++at++fel.tno.nl)
Date: 08/01/2003 08:48:02
Rebecca Lim wrote:
>
> Hi,
>
> Does anybody knows how can I save a scene after I add
> some nodes to it?
Use pfdStorefile(node,"persistent.pfb");
> or how can I attach a node
> permanently to a scene so that when I navigate in the
> scene, the new node moves accordingly as well?
Attach the node to a pfSCS that contains the translation of the object in 'eye-space' (how much in front of the viewer)
Attach the pfSCS to a pfDCS to the scene. On the pfDCS set an APP-traversal-callback. In the callback query the
xyz-hpr of the channel and fill them in the pfDCS. This way the object stays in front of the viewer.
You can flatten the pfSCS if needed.
Mario
>
> Thanks!
>
> Rebecca
-- ------------------------------------------------------------------------------ The disclaimer that applies to e-mail from TNO Physics and Electronics Laboratory can be found on: http://www.tno.nl/instit/fel/disclaimer.html ------------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Fri Aug 01 2003 - 08:51:14 PDT