Anyone able to write 3D XML importer?
-
You can find everything about 3D XML on
http://www.3ds.com/products-solutions/3d-for-all/[Maggy]
-
Maybe . But I won't register just for getting the specs. Would be a problem posting an example xml file?
azuby
-
Maggy please,
I visited the linked site and for about 10 minutes could not figure out what the whole thing is about.
Could you just give us an assumption (for some reason I like this word if you don't mind...)
-
In short: 3DXML is an open source file format closely related to XML, so closely related that you can even drop a 3D object into a Word document and the recipient can zoom, pan, rotate.
Dassault calls it 3D for all. They give away a free viewer (works great) and a free 3D printscreen program that captures 3D objects, geometry and texture from almost any opengl or directx program.That's exactly how far Dassaults efforts have gone so far in realising the ideal of "3d for all". Most of their software is not only expensive, it's even hard to find out how expensive. No trial versions, no price list, no online ordering. They reply to English questions in the English webform on their English website... in French.
So that 3d for all can only come true if most popular 3d software would get an importer/exporter/converter for 3dxml. If this file format is as good as Dassault believes (and they build a.o. airplanes) it could mean a great step forward.
[Maggy]
-
If you have an example xml file, we can analyze the xml structure for giving more information whether the geometrical models behind are good to transform. Than it also would be good to register to get the whole xml specification of that file format.
azuby
-
I tried 2 ways to upoad a publicly downloadable 3DXML, but for some reason I'm neither capable to upload it to my blog nor to my homepage. Any other suggestions?
You could also download 3dprintscreenhttp://www.3ds.com/products-solutions/3d-for-all/3d-xml/1/
, capture any model from sketchup, google earth 3d buildings or whatever. You can view the model in the viewer that can be downloaded from the same page.The result of the 3d printscreen is an ordinary zip file, when you unzip it, it contains one file called manifest.xml and one file with the same name as the printscreen (so don't try to unzip to the same folder).
Here is a small sample of the unzipped 3dxml:
</Instance3D>
<ReferenceRep xsi:type="ReferenceRepType" id="4" name="RefRep_4" format="TESSELLATED" associatedFile="urn:3DXML:Representation:loc:6"/>
<InstanceRep xsi:type="InstanceRepType" id="5" name="InstRep_5">
<IsAggregatedBy>2</IsAggregatedBy>
<IsInstanceOf>urn:3DXML:Reference:loc:4</IsInstanceOf>
</InstanceRep><Reference3D xsi:type="Reference3DType" id="7" name="Ref3D_7" />
<Instance3D xsi:type="Instance3DType" id="8" name="Inst3D_8">
<IsAggregatedBy>1</IsAggregatedBy>
<IsInstanceOf>urn:3DXML:Reference:loc:7</IsInstanceOf>
<RelativeMatrix>1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 </RelativeMatrix>
</Instance3D>
<ReferenceRep xsi:type="ReferenceRepType" id="9" name="RefRep_9" format="TESSELLATED" associatedFile="urn:3DXML:Representation:loc:11"/>
<InstanceRep xsi:type="InstanceRepType" id="10" name="InstRep_10">
<IsAggregatedBy>7</IsAggregatedBy>
<IsInstanceOf>urn:3DXML:Reference:loc:9</IsInstanceOf>
</InstanceRep>[Maggy]
-
Hi,
Maybe I'll give this one a try, if it is of some interest. I have developed several exporters so far, one of them for a private company which wanted to handle 3D laser scanner, bluetooth devices and XML files (soory for rusty english ).
I have used REXML to achieve this and must say that it was quite easy. So if 3DXML is a sort of XML clone, maybe it could be done.
I'll check Dassault's site and make my mind (I'll have some easyness to understand the docs if they're in french .
Wait and see. -
Maybe I sound dumb but after all the Kerky exporter creates xml files as well - cannot it be "similar" to the one(s) above?
-
Gaieus,
Kerkythea loads XML files format (among others) but has its own set of objects and parameters. SU2KT reads all the SU model geometry and settings (sun,cameras...) and roughly converts them to what is most a sort of "Kerky's XML". So this will not be similar with "3D for all" XML, IMHO. Will look further into it.
Cheers, -
First of all, one piece of good news is that I found out that not Dassault, but actually Lattice developed 3DXML, an extention of their own Lattice XML. On websites about Lattice XML I also find the extension XVL bud have not yet found out what that is.
One site that looked interesting to me at first sight is http://www.sns.gov/APGroup/appProg/xal/xalDoc/gov/sns/xal/model/xml/LatticeXmlTest.html but perhaps it has nothing to do with this subject. After all it won't do us much good that there are zillions of sites about ordinary XML either.
And the best news so far is that I received a quick and dirty triangle only to .obj converter in Python script. So if any of you can read Python (my fav. scripting language, use it a lot in Paintshop) and change it into ruby, that would probably be all we need.
-Jim Foltz created an .obj importer for SU, is on scriptspot
-I guess most geometry that we would ever like to capture will probably be triangulated
-I believe all textures in 3DXML are stored either in their native format or as BMP. Finding binary blocks of data, copying, saving should be easy with any hex editor.[Maggy]
Advertisement