LDD2LDraw or lxf2ldr


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
« Next Oldest | Next Newest »



Messages In This Thread
LDD2LDraw or lxf2ldr - by Rolf Osterthun - 2015-10-20, 19:18
Re: LDD2LDraw or lxf2ldr - by Finimig - 2015-11-30, 23:47
Re: LDD2LDraw or lxf2ldr - by Rolf Osterthun - 2015-12-01, 20:10
RE: LDD2LDraw or lxf2ldr - by lokipol - 2020-02-14, 13:23
RE: LDD2LDraw or lxf2ldr - by lokipol - 2020-02-16, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)