Transparent parts with decoration
Scrubs started this discussion in Model Export and Render
Avatar of Scrubs
Administrator

The Blender template I created does not handle transparent parts with decoration. Even if they are not that common, it is good to know how to set up the materials manually for them.

  1. Alter the decoration file in an image editor. Only keep solid areas.
    http://www.mecabricks.com/docs/forum/tr_texture.png

  2. Replace the material of the part by the following:
    http://www.mecabricks.com/docs/forum/tr_node.jpg

Add a Transparent custom shader and set:

  • Color hex value as per the value found in the colours.py script
  • Scale value to match the Solid shader

Add a Mix Shader node

  • Link the transparent shader to the first Shader input and the solid shader to the second Shader input.
  • Link Alpha output of Image Texture to the Fac input
2 replies · Page 1 of 1

I was wondering why the visor of the helmet in my last render was opaque, but after reading this tutorial, I guess I know why.

Before :
https://farm2.staticflickr.com/1595/25206038166_aa55922f9d_c.jpg

And here's the "fixed" helmet :
http://i84.servimg.com/u/f84/11/38/62/55/flynn10.jpg

😄

Avatar of Scrubs
Administrator

Yep, I saw that on the image you posted on flickr. I wasn't too sure if it was on purpose or not 😛

Advertising
2 participants
Avatar of Scrubs
Avatar of Leewan

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.