LDraw.org Discussion Forums
Mesh from Lego games - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: Models and Parts (https://forums.ldraw.org/forum-18.html)
+--- Forum: Parts Authoring (https://forums.ldraw.org/forum-19.html)
+--- Thread: Mesh from Lego games (/thread-18345.html)



Mesh from Lego games - Stan Isachenko - 2015-12-23

Hi all. I found way how to extract mesh from Lego Star Wars. I have this *.obj file, but i have questions. Is there any way to convert it to dat format, and find right scale. If we find solution, we can extract a lot of meshes( mostly minifigs and creatures) and convert them to ldraw( than clean up ,add conditional lines and edges)


Re: Mesh from Lego games - Philippe Hurbain - 2015-12-23

You have to convert the .obj to .stl (eg. using Meshlab http://meshlab.sourceforge.net/) then convert .stl to .dat with stl2dat (http://sourceforge.net/projects/stl2dat/ or included to LETGUI http://ldraw.heidemann.org/index.php?page=letgui). As for scaling... depends on units in source file, so I can't say for sure. The antistud base of Jabba is 80 x 100 ldu.


Re: Mesh from Lego games - Stan Isachenko - 2015-12-25

probably i am doing something wrong, but when i convert from stl to dat, i get few trialngles and thats all.
I convert *.obj to *.stl
I use stl to dat tool.
But dat appears to be almost empty


Re: Mesh from Lego games - Philippe Hurbain - 2015-12-25

Ah - a classical one. You must export to stl ascii format. stl2dat import of stl binary format is buggy, that's what you experiment


Re: Mesh from Lego games - Stan Isachenko - 2015-12-25

Oh, thats help, but still, mesh i got grom it very veird, it looks not nice, can you please advice me, what paremeters should i check


Re: Mesh from Lego games - Stan Isachenko - 2015-12-25

I founs solution, i sacle up original mesh 50 times, than convert, and get great looking result


Re: Mesh from Lego games - Philippe Hurbain - 2015-12-25

Yes, stl2dat condlines generation is not very good on tiny polygons, so it gets better when scaled up first. Otherwise, you may also use "raw" mode that only extract triangles without any further processing, then generate condlines/edge lines with Edger2.


Re: Mesh from Lego games - Stan Isachenko - 2015-12-25

Still need few advices:

1. I want to make bottom part using primitives, but i don't know what i have to use for rounded corners, and rounded side, can someone help me.
2. I dont know, if his arm and hand are movable, or they jast static.


Re: Mesh from Lego games - Magnus Forsberg - 2015-12-25

Looks like the arms are movable.
And your part is mirrored left/right.


Re: Mesh from Lego games - Philippe Hurbain - 2015-12-26

I confirm that the arms are moveable. The rounded corners should be made from a BFC invertnext 1-4cylo radius 6, a 1-4cylo radius 10, a 1-4ring3 radius 2 and a 1-4ring4 radius 2. The sharp corners are done with two box2-7 (one invertnext) and a bunch of quads.


Re: Mesh from Lego games - Stan Isachenko - 2015-12-26

Thank you a lot. Almost done. Left 2 things.
1. I dont know what ID i have to give to arm, but if it movable it has to be separate part.
2. Edges and condlines( it is my curse, i always have problem with them in camplicated meshes)


Re: Mesh from Lego games - Stan Isachenko - 2015-12-26

ups, o forgot to add tail connector


Re: Mesh from Lego games - Michael Horvath - 2015-12-29

I would be interested in how to extract minifig bones and walking/running/other animations into Blender.


Re: Mesh from Lego games - Stan Isachenko - 2015-12-29

http://www.rockraidersunited[dot]com/forum/
try to look here


Re: Mesh from Lego games - Stan Isachenko - 2016-01-04

I played around with few other parts, and fiigured out that they differs a lot from original. So it is sensless to convert them(


Re: Mesh from Lego games - Philippe Hurbain - 2016-01-05

Already Jabba's was wrong (traight instead of curved), fortunately the head was OK.


Re: Mesh from Lego games - Mark Kennedy - 2016-01-12

The program that I used for converting .OBJ to .DAT was one called 3Dto3D that was command line driven. Though to run it in windows 7 or later may require using an emulator like DosBox.


RE: Mesh from Lego games - Michael Horvath - 2016-09-26

(2015-12-23, 20:48)Stan Isachenko Wrote: Hi all. I found way how to extract mesh from Lego Star Wars. I have this *.obj file, but i have questions. Is there any way to convert it to dat format, and find right scale. If we find solution, we can extract a lot of meshes( mostly minifigs and creatures) and convert them to ldraw( than clean up ,add conditional lines and edges)

It would be interesting if you could extract the bones and animations too.