Sign in to follow this  
Renderbricks

LDD LDraw export issues

Recommended Posts

Can someone explain me why I get different and wrong results? Thanks a lot!

- I used the latest LDD and load the .lxf +++ result in picture 1

- I export to .ldr and load into LEOCad +++ result in picture 2: parts are missing, wrong placed and rotated

- I export to .ldr with the latest beta ldraw.xml and load into LEOCad +++ different result in picture 3 but looks more correct

- I set the custom parts library to the original LDRAW to get my modified studs with LEGO +++ result in picture 4: parts of the car wings and the rear mirrors will be replaced by small cubes

- I load the .ldr with LDRView or MLCad +++ result in picture 5: car wings parts complete but rear mirrors missing

LDRAW_Issues.jpg

Edited by virtualrepublic

Share this post


Link to post
Share on other sites

I just use a few unofficial parts for other models but I did not replace any official ones with them.

Edited by virtualrepublic

Share this post


Link to post
Share on other sites

It might be a problem with the latest LDD release (ldraw.xml)? Here's another export of an AT-AT. The Technic parts at the legs are wrong placed and rotated.

LDRAW_Issues_AT-AT.jpg

Edited by virtualrepublic

Share this post


Link to post
Share on other sites

I isolated the wrong parts and edited the ldraw.xml file. I need to find the right values.

+++ UPDATE +++

I can't work out the correct values. Here's the original data:

<!-- Technic Liftarm 1 x 3 with Rotation Socket 44224 21 -->

<Transformation ldraw="44224.dat" tx="0" ty="0" tz="0" ax="1" ay="0" az="0" angle="4.712389"/>

<!-- Technic Beam 3 with Rotation Pin 44225 21 -->

<Transformation ldraw="44225.dat" tx="0" ty="0" tz="0" ax="0" ay="0" az="1" angle="3.141593"/>

I tried to find a description what those angle values mean but failed. Moving the piece around is not a problem but rotating gives me a headache.

Edited by virtualrepublic

Share this post


Link to post
Share on other sites

I isolated the wrong parts and edited the ldraw.xml file. I need to find the right values.

+++ UPDATE +++

I can't work out the correct values. Here's the original data:

<!-- Technic Liftarm 1 x 3 with Rotation Socket 44224 21 -->

<Transformation ldraw="44224.dat" tx="0" ty="0" tz="0" ax="1" ay="0" az="0" angle="4.712389"/>

<!-- Technic Beam 3 with Rotation Pin 44225 21 -->

<Transformation ldraw="44225.dat" tx="0" ty="0" tz="0" ax="0" ay="0" az="1" angle="3.141593"/>

I tried to find a description what those angle values mean but failed. Moving the piece around is not a problem but rotating gives me a headache.

I can't remember between tx or ax which is the translation and which is the normal for the rotation, but I can figure it out with a bit of experimentation. Angle appears to be in radians. I see you, Pi!

tx and the like are the translation directions, ax is the axis of rotation direction which doesn't have be a normal even though the .xml lists it as such.

Anyways I hacked out the rotation of both bricks thanks to my brilliant education in linear algebra and the internet. Ima go sleep. You can figure out the translations.

<!-- Technic Liftarm 1 x 3 with Rotation Socket 44224 21 -->

<Transformation ldraw="44224.dat" tx="0" ty="0" tz="0" ax="1" ay="-1" az="1" angle="2.094395"/>

<!-- Technic Beam 3 with Rotation Pin 44225 21 -->

<Transformation ldraw="44225.dat" tx="0" ty="0" tz="0" ax="-1" ay="-1" az="-1" angle="2.094395"/>

Edited by Alcom1

Share this post


Link to post
Share on other sites

ax, ay, az...those should be angles on x, y and z axis, like if "ax=0 ay=-1 az=0.5 angle=2.500" it may simply mean that it rotates only on y axis CCW by whole value of "angle" (in radians as someone else before me correctly said) and 1/2 of that value on z axis in CW ;) +tx, ty, tz are translation (location) values as you may know...

That is my opinion, it is very easy to try change those values an see what it does in MLCAD/LeoCAD etc. ;) BTW I also corrected some bricks wrongly rotated by LDD export in ldraw.xml, absolutely no problem whatsoever

Edited by bublible

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.