LDraw.org Discussion Forums

Full Version: Mesh from Lego games
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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)
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.
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
Ah - a classical one. You must export to stl ascii format. stl2dat import of stl binary format is buggy, that's what you experiment
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
I founs solution, i sacle up original mesh 50 times, than convert, and get great looking result
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.
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.
Looks like the arms are movable.
And your part is mirrored left/right.
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.
Pages: 1 2