I need to save my sceneGraph with all Transfornation and Rotaion in some file format so that from that file same state can be rendered.
ex: In my scene if I have many objects and they each are translated and rotated by User now how to store this state so that next time Scenegrpah in the same state can be displayed.
any suggestion are welcome as right now i have no clue about how to go about it.
Thanks in advance
You could possibly try the Xith3D XML serialization API: https://xith-tk.dev.java.net/servlets/ProjectDocumentList?folderID=628&expandFolder=628&folderID=627
Will.
Another possibility is to use the COLLADA exporter to save it out in COLLADA format and then use the COLLADA importer to bring it back in. I am currently upgrading the Xith COLLADA import/export to COLLADA 1.4:
http://cvs.sourceforge.net/viewcvs.py/whoola/core/src/com/whoola/core/media/xith/
http://www.collada.org/
thanks for the help…
in Xith3D XML serialization API makes refrences to some class and methods which are not part of current build…for ex
1) Class AlternateAppearance.java
2) methods View.setFrontClipPolicy()
i have commented the refrences to these classes and methods now its writing the scenegraph to Xml file but while reading i am getting exceptions like attempt to assign multiple parents .
Is thier any plan to make Xith3D XML api compatiable with current release or i have to do it own.
Thanks for the concept …i’ll try to dig it further
The XML loader probably should be moved into the TK project and brought up to date - sorry about that.
The COLLADA exporter may be a good bet, with the added advantage that it isn’t Xith3D specific. The format seems to be gaining a fair bit of momentum too from what I have been hearing.
Will.