Importing semitransparent materials from C4D into Unity 3D

Here is a simple C4D file of 3 semitransparent cubes;
473120–16635–$MaterialTest_00.zip (51.8 KB)
and its image in C4D;


Here is the how the cubes appears in Unity;

As shown on above images, semitransparent materials in C4D are not semitransparent in Unity 3D.

  • How to import semitransparent materials from C4D into Unity 3D?

-Adamo

You need to make the material or texture in Unity use the Alpha, and apply a Shader than renders transparency (are in the drop down menu).

callahan.44, thank you for your reply.

  • Does it means that there is no automatic way of importing materials from C4D to Unity3D?

The material on the 3rd cube (farthermost one) in C4D on my previous post has a tiled pattern as show below;

  • Do we supposed to create this pattern in shader code in Unity?

-Adamo

Adamo, yes, in most cases you have to construct shaders in Unity.

Unity imports only the name, main texture and main color for material (when I say main, I mean it picks ambient/diffuse depending on which one is present). The rest has to be set-up in Unity.

It is implemented this way because materials in modelling tools work in a very different way than materials in runtime, so there is not one-to-one mapping.

Paulius, thank you for your reply.

  • What woul be a good starting point to learn about shader programming in Unity?

-Adamo

Built-inShader Guide

Shader Lab Reference

ShaderLab Fixed Function shaders

Vertex and Fragment Programs

Hey Adamo,

Baking textures is what you would want to use to get the checkerboard texture, or any other non-standard material, to be easily usable in Unity.

Good luck,

Sam

Sammer, thank you for the tip. I will try baking the textures in C4D before attempting to export them to Unity.