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
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
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.