Creating the Material
This doc goes into how to create a material in Blender for use with Palette Texturing...
Last updated
This doc goes into how to create a material in Blender for use with Palette Texturing...
Last updated
Open the Crate in Blender.
Select the Crate.
Go to the Material Properties panel at the bottom right.
Select and remove any materials you may have applied to the asset with the '-' button to the right of the materials panel.
Create a new Material slot with 'New' and double click to rename it something like 'Palette'.
Click on the yellow dot next to the 'Base Color' property and select 'Image Texture' under the 'Texture' category in the popup.
Select 'Open' and select your Diffuse texture.
This is a quick way to connect an image in a Material, but depending on how you created the other textures, you may need a little more control, and for that we need the Shading Layout.
Blender has a many default layouts that can be used for different things such as the Layout tab for modelling, UV Editing tab for Unwrapping UVs, and the Shading tab, for setting up Materials in detail, among various others.
The Shading Layout is mostly made up of the Shading Editor window which can be found on the bottom half of the viewport. To the left of that is the Image Editor. The standard 3D viewport is above that, with the File Browser to the left of that.
The previous texture will be removed from the material in order to display adding nodes in the Shader Editor.
With the asset still selected, go to the top tabs and select the 'Shading' tab.
You can add a texture as a node into the graph at the bottom of the viewport in a number of ways
Drag and drop the texture into the graph from your System Explorer or the 'File Browser' window at the top left. This will add the node and link the texture at the same time.
You can adjust the File Browser Display mode at the top of the window.
Right click in the graph and select 'Add > Texture > Image Texture'. Note that if any node is selected this will not appear.
In the Graph Menus go to 'Add > Image > Image Texture'.
If you added the node by itself, select 'Open' and select the 'Diffuse' texture you made previously.
Multi select nodes with [Shift] and delete Nodes with the [Delete] key.
Left click and drag from the yellow dot on the top right of the 'Image Texture' node and connect it to the target property (such as Base Color, Metallic, Roughness, or emissive) on the 'Principled BSDF' node.
Note that if you set a slider too high it may break the parameter (as in the Metallic example above), so be sure to set the max amount to 1.0 or less.
You can add more Image Texture nodes, or duplicate your original with [Shift + D], and import your other textures such as metallic/smoothness.
Your asset should change color if your viewport is using the Material Preview or Rendered Mode at the Top Right of the viewport.
If using a combined Metallic/Smoothness/Roughness image you will need to split it into its respective channels depending on how you created them. In this case we are using Metallic in the Red channel and Smoothness in the Alpha channel.
Drag the connector node and let go in the editor and search for the 'Separate Color' node, or Add a 'Separate Color' node with 'Add > Converter > Separate Color'.
Connect the Image Texture Yellow dot to the 'Separate Color' node (if adding the node manually).
Connect the 'Red' channel to the Metallic property on the 'Principled BSDF' node.
This would work without the Separate color as RGB is the same, but it is a useful approach to know in case you have other combined maps.
As Blender uses Roughness, rather than Smoothness, we will need to convert the Smoothness map so we can use the same texture in both Blender and Unity. For this we can use an 'Invert Color' node.
Drag the connector node and let go in the editor and search for the 'Invert Color' node, or Add an 'Invert Color' node with 'Add > Color > Invert Color'.
Connect the 'Alpha' from the original 'Image Texture' node to the 'Invert Color' node (if adding the node manually).
Connect the 'Invert Color' node to the 'Roughness' property on the 'Principled BSDF' node.
You may need to set a texture as a 'Non-Color' for it to work correctly in Blender. This is very important for Normal maps, which we will get into in later tutorials.
Select the Metallic/Roughness/Smoothness/Emissive texture node.
Switch the 'Color Space' property from 'sRGB' to 'Non-Color'.
Do this for all textures that are not the Diffuse texture.
With your material made, you will most likely see that the asset is a mess of color. We need to tell the polygons where to go on the texture and for that we need to Unwrap UVs.