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
RE: LDD2LDraw or lxf2ldr
#4
Hello, Rolf!

I've encountered with some problem during LDD file converting. Could you, please, help me?

My OS: Windows 10 x64.
LXF-file is successfully converted to LXFML-file, but LDR and MPD files are empty.

Seems, like LDD2LDrawAddOn couldn't find location of LDraw parts (they have been already installed in "c:\Users\Public\Documents\LDraw\").

Where I have to specify location of LDraw parts? Or may be a problem in another place?

Please, help me.


Log of converting simple LXF file (my extremely simple LXF-file):
Open D:\Program Files (x86)\LDraw\LDD2LDrawAddOn\ldraw.xml.
Read mappings...
Close D:\Program Files (x86)\LDraw\LDD2LDrawAddOn\ldraw.xml.
Open D:\Program Files (x86)\LDraw\LDD2LDrawAddOn\l2l.xml.
Read mappings...
Close D:\Program Files (x86)\LDraw\LDD2LDrawAddOn\l2l.xml.
Open D:\Program Files (x86)\LDraw\LDD2LDrawAddOn\Untitled1.lxf.
Extract IMAGE100.LXFML.
Open d:\program files (x86)\ldraw\ldd2ldrawaddon\untitled1.lxfml.
Open D:\Program Files (x86)\LDraw\LDD2LDrawAddOn\Untitled1.ldr for writing.
Mapping parts...
The input file is in version: 5.0
Close D:\Program Files (x86)\LDraw\LDD2LDrawAddOn\Untitled1.ldr.
Close d:\program files (x86)\ldraw\ldd2ldrawaddon\untitled1.lxfml.

0 parts mapped.
0 parts had an unknown Material; Used Main Color 16 instead.
0 parts unknown.
0 parts defect (cann't be read correctly).
0 parts are not created for LDraw yet.
0 parts are waiting on the Parts Tracker.

Generated files:
LXFML-file
LDR-file
MPD-file

Best regards,
Dmitry.


Attached Files
.lxf   Untitled1.lxf (Size: 4.05 KB / Downloads: 3)
Reply
RE: LDD2LDraw or lxf2ldr
#5
You could also use Sylvain's converter available here: https://gitlab.com/sylvainls/lxf2ldr.html
...and since Sylvain is the guy who maintains the LDraw/LDD mapping file, you get the most up-to-date one Wink
Reply
RE: LDD2LDraw or lxf2ldr
#6
(2020-02-14, 14:15)Philippe Hurbain Wrote: You could also use Sylvain's converter available here: https://gitlab.com/sylvainls/lxf2ldr.html
...and since Sylvain is the guy who maintains the LDraw/LDD mapping file, you get the most up-to-date one Wink
Thank you, Philippe!
Sylvain's converter works well.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 2 Guest(s)