How to model a new part
Closed
Scrubs started this discussion in General Discussion
Avatar of Scrubs
Administrator

You have probably noticed that the part library of mecabricks doesn't include all the bricks ever made by the LEGO company! So if you wish to help me complete this huge task, you are more than welcome. Here is a quick tutorial explaining roughly how to model the parts.

Software requirements:
I use Blender which is a free 3D software. However you can use any others as long as the parts can be exported somehow as js files compatible with three.js which is the 3D framework used by mecabricks. I know that by default, three.js provides addons to directly export from Blender, 3ds Max and Maya.

Tool requirements:
Dimensions are based as much as possible on real parts with a few approximations. So something to have handy is a calliper.
http://www.mecabricks.com/docs/parts/calliper.png

Rules:
Here are a few rules that you should try to follow as much as you can in order to get a good result.

Here is the example for the 1X1 plate:
http://www.mecabricks.com/docs/parts/1X1.png

3 plates correspond to the height of 1 brick:
http://www.mecabricks.com/docs/parts/plate_brick.png

For the round top studs, it is a good practice to use 16 vertices:
http://www.mecabricks.com/docs/parts/stud.png

For the bottom studs as well:
http://www.mecabricks.com/docs/parts/bottom_stud.png

Once the part is modelled, the next step is to alter the outside dimensions so that there will be a gap between the parts when they will be assembled:

-0.04 for vertical surfaces
-0.02 for horizontal surfaces

http://www.mecabricks.com/docs/parts/redim.png

To finish, apply a smooth shading and an edge split modifier:
http://www.mecabricks.com/docs/parts/shading.png

Because there is nothing better than examples, please download the blender files for the following part designs:

3003 | 3005 | 15573 |64644 | 2540 | 3024 | 3700 |6081 | 32523

For any questions related to part modelling, please use the Help and Tips forum.

0 replies · Page 1 of 1
Advertising
1 participant
Avatar of Scrubs

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.