LDD2LDraw or lxf2ldr


LDD2LDraw or lxf2ldr
#1
Hey,

the tool for the conversion of LDD files to LDraw files is now available in a new version and ready for testing. It should be able to read .lxf and .lxfml files; both in LXFML version 4 and 5.
Currently it is only possible to generate .ldr files. The documentation and the update of the webpage is pending, I am sorry.

   

You will need a valid ldraw.xml. I hope it works.

Rolf
Reply
Re: LDD2LDraw or lxf2ldr
#2
Rolf,

thanks for this great tool, works like a charm!

I'm trying to perform LXFML to LDR conversion myself and I'm struggling with the translation and rotation values from the ldraw.xml file. I could not figure out which vector to apply the rotation (rotation axis and angle) to. Also I might not have applied axis mappings correctly between the LDD and the LDraw coordinate system.

Here is an example which gives me headaches:

Design ID: 2401 (Corner Plate 10x10)
LXFML: transformation="1,0,0,0,1,0,0,0,1,2,0,-2.7999999523162842"
LDraw.xml: tx="3.6" ty="-.32" tz="-3.6" ax="0" ay="1" az="0" angle="4.712389"
Resulting LDR (from your tool): 140 -8 -20 0 0 -1 0 1 0 1 0 0

Maybe you could point me in the right direction how to calculate the LDR values? Or maybe you could share the relevant pieces of code from your tool (if you don't see any copyright issues). Any help would be greatly appreciated!


Finimig
Reply
Re: LDD2LDraw or lxf2ldr
#3
Hey Finimig,

Jakub once described the process. It looks like it is working (in his WebGL viewer). You can find his description here.

Rolf
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)
Forum Jump:


Users browsing this thread: 1 Guest(s)