LDD2LDraw or lxf2ldr - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw File Processing and Conversion (https://forums.ldraw.org/forum-22.html) +--- Thread: LDD2LDraw or lxf2ldr (/thread-17762.html) |
LDD2LDraw or lxf2ldr - Rolf Osterthun - 2015-10-20 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 Re: LDD2LDraw or lxf2ldr - Finimig - 2015-11-30 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 Re: LDD2LDraw or lxf2ldr - Rolf Osterthun - 2015-12-01 Hey Finimig, Jakub once described the process. It looks like it is working (in his WebGL viewer). You can find his description here. Rolf RE: LDD2LDraw or lxf2ldr - lokipol - 2020-02-14 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. RE: LDD2LDraw or lxf2ldr - Philippe Hurbain - 2020-02-14 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 RE: LDD2LDraw or lxf2ldr - lokipol - 2020-02-16 (2020-02-14, 14:15)Philippe Hurbain Wrote: You could also use Sylvain's converter available here: https://gitlab.com/sylvainls/lxf2ldr.htmlThank you, Philippe! Sylvain's converter works well. |