using XML to generate 3-d? Help is needed.

if anyone can help I will be very grateful.

Is it possible to use an xml document to build a graphic, however, I don't mean a graph.

for an example if I had an xml doc that specified x,y and z points for a number of (for arguments sake) spheres, I would like to be able to plot these co-ordinates when the xml is loaded.

I have looked into this a little with the xml object in macromedia flash but don't thing the plug-in can handle it. I am new to Java so please be gentle..

cheers

David

[538 byte] By [davidaanensen] at [2007-9-26 2:08:02]
# 1

It is possible to use an xml document to build a

graphic. The web3d.org is working on that project.

As VRML Viewer can view and edit vrml 3D file, a well-designed Java3Dviewer can visualize the scene defined in a XML file.

The plug-in allows programs to run inside web browser, if you design a Java program to view 3D data defined in a XML file, users can run this program in their desktop with Java plug-in.

So research Java3d API and do it.

regards,

Louis

LouisGL at 2007-6-29 8:56:05 > top of Java-index,Security,Cryptography...
# 2
HiIt's definitely doable. Your best bet would be to do some research on the JAXP (java api for xml processing). You would probably have to write loader and saver classes for going from raw xml to scenegraph and saving your scenegraph to an xml file.
mr_bob_666 at 2007-6-29 8:56:05 > top of Java-index,Security,Cryptography...
# 3

There are some good tutorials around the place on using XML with Java- you might want to look at the SAX api as well, I think it is a little more lightweight than JAXP, although I am no expert on the topic. The beauty of XML is that it is an abstract specification, so you can define it to do pretty much whatever you want. I think http://www.javaworld.com might have some tutorials.

Breakfast at 2007-6-29 8:56:05 > top of Java-index,Security,Cryptography...