The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by alexbaines]

I am writing a simple 3d program which will read in a source file, allow the
user to manipulate the world it describes, and then save it. How can I create
a data structure for this information that may be used to view it and
manipulate it in java 3d, so that I may then save the information out later.
Sorry if this is a basic question, I am very new to this field and can't find
a simple way of saving the information represented in the 3d world.
Alex
import-bot (20211) [Avatar] Offline
#2
Re: Data Structure for Saving / Importing
[Originally posted by author]

Presently, java 3d does not support serialization of the scene graph, so you
have to save and load the state yourself. For ideas and further insight to
this problem you might want to checkout the j3d.org FAQ, the java 3d mail list
archives, and if you still can't find what you need, try posting this question
to the java 3d mail list.

good luck,
--jon

> I am writing a simple 3d program which will read in a source file, allow the
> user to manipulate the world it describes, and then save it. How can I create
> a data structure for this information that may be used to view it and
> manipulate it in java 3d, so that I may then save the information out later.
> Sorry if this is a basic question, I am very new to this field and can't find
> a simple way of saving the information represented in the 3d world.
> Alex
import-bot (20211) [Avatar] Offline
#3
Re: Data Structure for Saving / Importing
[Originally posted by alexbaines]

Thankyou for the guidance I'll see what i can find
Alex
import-bot (20211) [Avatar] Offline
#4
Re: Data Structure for Saving / Importing
[Originally posted by paulcohen]

> I am writing a simple 3d program which will read in a source file, allow the
> user to manipulate the world it describes, and then save it. How can I create
> a data structure for this information that may be used to view it and
> manipulate it in java 3d, so that I may then save the information out later.
> Sorry if this is a basic question, I am very new to this field and can't find
> a simple way of saving the information represented in the 3d world.
> Alex

Alex, check out some of the JAva3D apps here
http://www.hta-bi.bfh.ch/~swc/DemoJ3D/
Martin Baker also has a quite useful site at http://www.martinb.com/index.html

paul