jamesster

New official tools + parts released via Unity

Recommended Posts

Posted (edited)

That's really helpful for the older 'custom' parts that I am updating to include collision data. Next parts update will be pretty big!

Edited by Stephan

Share this post


Link to post
Share on other sites

Is it possible to script a bulk conversion into LDraw format?  It wouldn't bother me if it took a long time to clean up and move to "official" - At least folks who are familiar with the "unofficial" parts could begin to use them!

As mentioned in another thread, I'm in the process of writing an article about the Most Common DUPLO Parts, and many of the parts are missing pictures.  I also plan to add the most common DUPLO parts to my LEGO Brick Labels collection (for only the most discerning toddlers, of course...)

---tom

Share this post


Link to post
Share on other sites
On 1/15/2021 at 3:36 PM, henrysunset said:

Is it possible to script a bulk conversion into LDraw format?  It wouldn't bother me if it took a long time to clean up and move to "official" - At least folks who are familiar with the "unofficial" parts could begin to use them!

As mentioned in another thread, I'm in the process of writing an article about the Most Common DUPLO Parts, and many of the parts are missing pictures.  I also plan to add the most common DUPLO parts to my LEGO Brick Labels collection (for only the most discerning toddlers, of course...)

---tom

I do think it’s possible but definitely hard. One of the challenges is the fbx format for which afaik only a c++ sdk exists. So you are bound to writing c++. Or you can use blender scripting as an alternative, which then means everyone who wants to use the script has to get blender. 
 

The lego fbx files seem to be a ‘best of both worlds’ between LDD and LDraw format logically. For example studs and bottom tubes are based on reusable standard files and are also put in dedicated sub-geometry groups for quite a lot of parts, albeit not all and also not for Duplo parts as far as I have seen. 
 

I think the guy who wrote the blender Ldraw importer would be the person who most likely has the best skill set and knowledge to do a task like this. 
 

Starting from 0 i assume it might just be quicker to do a manual conversion. With LDD and manual process in my workflow it only takes a couple of minutes per part manually. 
 

My workflow as follows:

  • import fbx part in Blender
  • Correct scaling (from 0.01 to 1)
  • export to obj
  • import into parts designer 
  • Add basic master data (part number, name, group (system, technic), subgroup (i.e hats, animal parts, ...), bounding, ...)
  • Export to LDD 
  • correct collision and connection data based on parts pack data in xml file

i'm using blender to import and export the fbx files, because parts designer has once in while problems in reading sub-geometries of certain fbx files. This is because there exist different versions of the fbx file format and I assume the middleware used in parts designer only supports certain versions and feature sets of fbx.

Edited by M2m

Share this post


Link to post
Share on other sites
12 hours ago, M2m said:

My workflow as follows...

Thanks for explaining!  I can totally respect that it doesn't sound like a particularly easy process to automate, and it will take some time to migrate 1000 parts!
Out of curiosity, how long does that process take? I would expect that it's at least 15 minutes per part (average), and that probably doesn't include the process of moving parts through the review process.

---tom

P.S. Is there a human-readable summary of the process to create new parts in LDraw?  If not, It's the kind of nerdy article I'd love to tackle at Brick Architect if someone wants to help me do it!

Share this post


Link to post
Share on other sites

I’d say for a part which is not an assembly the process is rather quick: about 5 - 10min max. That’s in case the respective metadata (connections, collisions, ...) come with the part in the unity pack (which is the case in about 90%). In that case the quality review (do connections work correctly) is also quick. Shouldn’t me more then a minute. 
 

For the case where meta data is missing or it’s an assembly then the process to get a working LDD part can easily become 1-2h or more. 
 

For Ldraw parts creation I have absolutely no experience :pir-cry_sad:  

Edit (a quick and dirty video of the process):

 

Edited by M2m

Share this post


Link to post
Share on other sites
On 1/16/2021 at 8:00 PM, M2m said:

I’d say for a part which is not an assembly the process is rather quick: about 5 - 10min max. That’s in case the respective metadata (connections, collisions, ...) come with the part in the unity pack (which is the case in about 90%). In that case the quality review (do connections work correctly) is also quick. Shouldn’t me more then a minute. 
 

For the case where meta data is missing or it’s an assembly then the process to get a working LDD part can easily become 1-2h or more. 
 

For Ldraw parts creation I have absolutely no experience :pir-cry_sad:  

Edit (a quick and dirty video of the process):

 

 

That was interesting to see, thanks for sharing!  I don't know for sure, but I suspect the process is similar for LDraw.

Share this post


Link to post
Share on other sites
25 minutes ago, henrysunset said:

 

That was interesting to see, thanks for sharing!  I don't know for sure, but I suspect the process is similar for LDraw.

I guess so. But I don't have any experience with LDraw Parts creation. I guess LDraw.org Discussion Forums - Part Requests is a good place to ask around.

As written, the Unity pack is great because not only does it come with the 3D Geometry of the parts but also with connection info (which is 99% similar to how LDD handles connections).

Share this post


Link to post
Share on other sites

So I just started playing with this Microgame and so far seems like a pretty neat tool. After going through all the tutorials and playing with it for a while, I still have some questions though. Is there any way to make hinges or any other kinds of substructures, like turning wheels on a vehicle or moving arms on a character? I can't seem to be able to make a brick/model the child/parent of another.

Also, is there any way to apply gravity on anything other than projectiles and minifigs?

I also have the problem that when I import the mods, they import with a bunch of errors, making a lot of the scripts not work, including the brick building mode (the snapping together of the bricks). It seems like it is unable to locate the original files for the prefabs, even though I imported everything afaik. Anyone know what I did wrong?

Any advice would be appreciated.

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

  • Recently Browsing   0 members

    No registered users viewing this page.