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)

Pages: 1 2


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.