The toString method for VRML97 nodes has some of this in places. If you
do want to report out what you read in the VrmlLoader you need to set the
LOAD_CONVERTER flag to prevent parts of the vrml graph from optimized
away, which may be impractical for end use applications but useful
for content creation tools.
Regards,
______________________________________
Rick Goldberg - Member Technical Staff
Sun Microsystems
Graphics Products - Computer Systems
901 San Antonio Road, MS UMPK27-302
Palo Alto, CA 94043-4900
650 786-0108 Direct
650 856-2114 Fax
[EMAIL PROTECTED]
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Date: Fri, 17 Dec 1999 09:58:27 -0600
> From: giles <[EMAIL PROTECTED]>
> Subject: Re: [JAVA3D] is it possible to save a scenegraph ?
> To: [EMAIL PROTECTED]
>
> I'll chime in with a quick answer, Rick might have a better one.
>
> Two issues:
>
> The VRML scenegraph information is garbage collected if its not
> needed(basically if a node is DEFed its saved). So you would need to turn
> off that behavior.. . I think this can be done by making the SceneGraph a
> global variable(there's a post in the archive about this... I can find it
> if ya need it)
>
> The second piece would be to look at writeX3D(BaseNode.writeX3D). Ya could
> probably write a similiar writeVRML97.
>
>
> What you are describing has been a back-burnered plan of mine for awhile.
> It would be nice to have a program that folks could build off of to change
> VRML files. I don't have the time currently to hack this together but I
> can probably answer questions to help. And if ya complete it I'd encourage
> ya to return it to the Open Source base that Sun has provided.
>
> -Alan
>
> On Friday, December 17, 1999 8:02 AM, Patrick GIORDANO
> [SMTP:[EMAIL PROTECTED]] wrote:
> > I would like to load a vrml file with the vrml class loader, add or
> removes nodes and save the final scenegraph.
> > How can i save the scenegraph ? Does a scenegraph saver exist ?
> >
> > Thanks
> >
> > Patrick Giordano
> >
> >
> ===========================================================================
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff JAVA3D-INTEREST". For general help, send email
> to
> > [EMAIL PROTECTED] and include in the body of the message "help".
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".