Using Multiple Materials in Blender and Exporting to COLLADA

(c) copyright Zehne Ziba Co., Ltd. For more information, please refer to copyright notice.

In this tutorial we’ll show you how to assign multiple materials to one object in Blender and export them into Collada format for use in Vanda Engine. Using multiple materials often makes sense in Blender’s workflow, and it’s convenient to be able to export them as is. This can also be used to make different parts of an object have different levels of specularity. Sometimes you may want to select different parts of a single object based on their assigned material, which you can do by disabling Geometry Based Selection in Vanda Engine.

 

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image1Blender default startup file

Select the cube and press Tab to enter edit mode.

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image2Edit mode

Press Shift-A, select Cube, and use the Translate Manipulator to drag the newly created cube off of the first one.

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image3Adding a cube

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image4Moving the cube using the translate manipulator

In the properties window select the material tab. Click the Diffuse color box and set the color to a red.

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image5Setting the material’s diffuse color to red

Click the plus next to the material list, click new, select only the second cube, and click assign. The second cube should now be a gray. Click the Diffuse color box again and set the color to a blue.

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image6Creating a new material

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image7Assigning the new material to the second cube

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image8Setting the second material’s diffuse color to blue

Press tab to exit edit mode. You should now have a red and a blue cube. They are both one object, if you drag or rotate them they will rotate together.

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image9One object with two materials

Export the model. Be sure to select Use Material Textures. See Tutorial 1 for more information.

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image10Exporting with Use Material Textures selected

Add “_LOD1” post-fix to your dae file, run Vanda Engine, make sure that you are in Prefab mode (Mode | Prefab) and import the model into Vanda Engine.

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image11Our model with two materials in Vanda Engine

When you select the model it will highlight both cubes as one object. Uncheck Modify -> Geometry -> Geometry Based Selection (All Instances).

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image12With Geometry Based Selection on, both cubes are highlighted as one object

Now each object will be selected based on material.

Blender-Tutorial3-Export-Multiple-Materials-COLLADA-Image13One part of the mesh highlighted based on its material

arrow-leftPrevious Tutorial

Next Tutorialarrow-right

Let’s stay in touch!

Never miss a single tutorial, sign up for our monthly newsletter. You can unsubscribe at any time if you wish to stop receiving email newsletters from vandaengine.org

[alert color=”white”]

The Author

Patrick-Manhatton-Icon-BiographyPatrick Manhatton (macklehatton@gmail.com)

Patrick is an independent game designer interested in absolutely every aspect of making games. He does a little of everything involved in game development and a lot of conceptual design and 3d modelling. He is currently studying computer science and psychology and hopes work in research using games.

 

[/alert]

adminUsing Multiple Materials in Blender and Exporting to COLLADA