Skip to content

About

Blender add-on and batch pipeline: rule-based creases and baked subdivision copies for Mecabricks imports - render-ready LEGO parts, original meshes untouched

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Renderbricker

Smooth, render-ready LEGO® parts from Mecabricks imports – without touch­ing the imported meshes.

Ren­der­bricker is a Blender add-on and a batch pipe­line for scenes built in Mecabricks by Nicolas 'Scrubs' Jarraud and imported with his Mecabricks Lite or Advanced add-on. Each part mesh is pro­cessed once: seams are welded in a tem­po­rary copy, edges get creases by a tested rule set, and the sub­di­vided result is baked into a copy that every link of that part uses. The orig­i­nal import stays unchanged, so the con­ver­sion can always be undone.

Ren­der­bricker is an inde­pen­dent add-on, not an offi­cial Mecabricks product, and has no importer of its own: Import from Mecabricks starts the Mecabricks add-on by Nicolas 'Scrubs' Jarraud, which must be installed.

Features

  • Rule-based creases – sharp where the real part is sharp, round where it is round; the rules are doc­u­mented with the part and finding they come from in docs/RULES.md.

  • One copy per part – thou­sands of links share one sub­di­vided mesh; view­port and render level can differ (the render level is switched in for F12 and back after­wards).

  • Cache File Next to the Scene – the copies can live in <scene>_rbcache.blend next to the scene, linked as library over­rides, so the scene file stays small; move or copy the cache with the scene, switch it off to take the copies back into the scene.

  • Several Blender Pro­cesses – Apply and the head­less con­ver­sion share the parts among several Blenders in the back­ground, the largest part first; how many depends on the pro­ces­sor and the free memory – a 16 GB com­puter runs several too. A part that does not fit into the memory is skipped and listed instead of stop­ping the con­ver­sion, and a large plate with many studs is con­verted stud cell by stud cell first.

  • Checks – the orig­i­nal is ver­i­fied untouched, folds and seam gaps are mea­sured after every conversion.

  • Render Camera – a camera, a phys­i­cal sky and render set­tings of their own, switched on and off without touch­ing yours: six views around the model, sun sliders, trans­par­ent back­ground, sample levels, all views in one go.

  • Cycles | EEVEE – either engine in the view­port and for ren­der­ing; EEVEE gets a sun lamp that follows the sky and comes close to Cycles.

  • Edges: Shader or Bevel – the sharp edges of the parts rounded by the importer's mate­rial, or with a real bevel in the smooth copies: a round outline, the same in Cycles and EEVEE, clean in close-ups; one radius for both.

  • Phys­i­cal­bricks Mate­ri­als – one button switches every Mecabricks mate­rial of the file to Phys­i­cal­bricks, phys­i­cally based LEGO mate­ri­als (ABS with sub­sur­face scat­ter­ing, glass with absorp­tion in the volume, rubber, pearl, metal, glitter, speckle, opal), and back to the orig­i­nal mate­ri­als exactly as imported; Cycles and EEVEE, Blender 5.0 or newer. With it: Parts Jitter, every part moved and turned a little.

    Materials: Mecabricks | Physicalbricks (1) with Dispersion (2), Glass: Volume | Surface (3), Glow in the dark (4), Yellowing (5), SSS Factor (6), SSS (mm) (7) and the distances of the material groups (8)

  • Real Dimen­sions – a switch under Import from Mecabricks, on by default: the Mecabricks models of a file get the size of the real LEGO parts (a 2 x 4 brick 32 mm long instead of 32 m). A model imported later is brought to the same size, so a file never holds two sizes; the render camera and the view follow.

  • Load bar for imports – while the Mecabricks add-on imports, a bar in place of Import from Mecabricks shows how far it is.

  • Clear Scene – in a new file, one button above Import from Mecabricks removes Blender's start cube, camera and light; it never touches a model or your own objects.

Requirements

  • Blender 4.5 LTS or newer (devel­oped with 5.2 LTS and 5.3)
  • Windows, Linux or macOS
  • Scenes from www.mecabricks.com, imported with the Mecabricks add-on – Lite (free) or Advanced (paid), from the Mecabricks shop; Ren­der­bricker has no importer of its own

Installation

  1. Down­load renderbricker-<version>.zip from the latest release.
  2. Blender: Edit → Pref­er­ences → Add-ons → Install from Disk → choose the zip, enable "Ren­der­bricker"
  3. Panel: 3D View­port → Sidebar (N) → Ren­der­bricker

To build the package from the source instead: python scripts/core/build_addon.py → addon/dist/renderbricker-<version>.zip

Documentation

Usage

  • Apply con­verts the parts in the col­lec­tions of the list (or the selec­tion): select a part of the model and press + to list its col­lec­tion – an imported model is listed already, which­ever way it was imported. Choose view­port and render level first; with "Cache File Next to the Scene" the scene is saved auto­mat­i­cally once the cache is written.
  • Sub­di­vi­sion: ON / OFF switches every link between the sub­di­vided copy and the original.
  • F12 / Ctrl+F12 render with the render level.
  • Convert Head­less does the same as Apply, but outside Blender in a console window – for large scenes. It writes a new scene file with the con­verted parts; the open scene stays as it is. It does not render. Close Blender now and open the result when it is done is ticked in its ques­tion: Blender closes, and the result opens by itself.
  • Save Render Scene writes <scene>_render.blend for com­put­ers without Ren­der­bricker (render farms): all parts at the render level, parts and mate­ri­als inside the file. A scene with a cache file needs the add-on to show its mate­ri­als and to render the render level – the render scene does not.

Batch con­ver­sion of many models (system Python):

python scripts/core/convert_models.py [--models NAME ...] [--stale] [--force] [--jobs N]

It expects 01_Sources/<model>.zmbx beside the code, writes 02_Imports/ and 03_Results/<model>_subdiv_A_mecabricks_<version>.blend and checks every result. Blender is taken from RENDERBRICKER_BLENDER, a path in _CLAUDE_/blender_path.txt or blender on the PATH; --blender PATH over­rides all.

Feedback

Repository layout

addon/renderbricker/       Blender add-on: registration and UI modules
addon/renderbricker/rbcore/  the core: crease rules, conversion, copies, cache, workers, render camera
scripts/core/              batch conversion, import, verification
docs/RULES.md              the rule set with the origin of every rule

Model files, results and the devel­op­ment journal are kept locally beside the code and are not part of the repository.

Author

© 2026 Ren­der­bricks® – Prof. Michael Klein.

Trans­parency note on the use of AI: the author is not a pro­gram­mer but has worked in CGI since 1987. The add-on was devel­oped entirely through vibe coding with Anthropic Claude (Claude Code): Claude wrote the code, the tests and this doc­u­men­ta­tion from his descriptions. The concept, the design deci­sions, the rules checked against the real LEGO parts, the tests in Blender and the accep­tance of every version are the author's; he is respon­si­ble for the content.

vr.renderbricks.com · Face­book · Insta­gram · YouTube

Ren­der­bricks® is a reg­is­tered word mark in Germany.

Credits

Ren­der­bricker is built on Mecabricks and its Blender add-ons Mecabricks Lite and Mecabricks Advanced – their devel­oper and creator is Nicolas 'Scrubs' Jarraud.

The example scene of the Tuto­rial is the Italian Riviera by Nicolas 'Scrubs' Jarraud, used with his kind per­mis­sion – thank you for the model.

License

GPL-3.0-or-later, see LICENSE.

LEGO® is a trade­mark of the LEGO Group; all other names and marks men­tioned here belong to their owners, none of whom spon­sors, autho­rizes or endorses this project.

About

Blender add-on and batch pipeline: rule-based creases and baked subdivision copies for Mecabricks imports - render-ready LEGO parts, original meshes untouched

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages