Challenge — Creating Space Materials

Tutorial

·

Beginner

·

+10XP

·

30 mins

·

(139)

Unity Technologies

Challenge — Creating Space Materials

In this challenge, you will be making new Materials and applying them to each part of the provided space environment to give each object more defining characteristics.

Languages available:

1. Overview

In this challenge, you will make new Materials and apply them to each part of the provided space environment in order to give the objects more defining characteristics. By the end of this challenge, you will have the ability to create a Material in Unity; configure it by manipulating its shine, smoothness, and other parameters; and apply it to GameObjects to add color and texture to your Scene.

The Scene before adding custom Materials

The Scene before adding custom Materials

The scene after adding custom Materials

The scene after adding custom Materials

In this Scene, add three Materials with different properties including metal and rock. To do so, you will:

  1. Create, configure, and apply the Asteroid Material
  2. Create, configure, and apply the Missile Material
  3. Create, configure, and apply the Planet Material

2. Create, Configure, and Apply the Asteroid Material

Create an Asteroid_Mat Material for the Asteroid GameObjects and manipulate its Albedo Parameter.

Creating a new Material

Creating a new Material

  1. Navigate to Assets > Materials.
  2. Create an Asteroid_Mat Material by right-clicking Project Window > Create > Material.
  3. Select the Albedo Color to change the color of the Material.

Tip — Choosing Colors

If you have an exact color in mind and know its RGB values, you can simply type the values into each channel in the Color.

The Color picker tool

The Color picker tool

--------------------

Apply the Material to the Asteroid GameObjects.

Applying the Material to the asteroids

Applying the Material to the asteroids

  1. Select Asteroid_Mat in the Project window.
  2. Drag to Asteroid1, Asteroid2, and Asteroid3 GameObjects.

Tip — Apply Materials to Multiple Objects

To apply a Material to multiple GameObjects at the same time, select them in your Hierarchy and drag the Material into the Inspector under Add Component.

3. Create, Configure, and Apply the Missile Material

Create a Missile_Mat Material for the Space Missiles and manipulate the Albedo, Metallic, and Smoothness settings.

Creating the Missile Material

Creating the Missile Material

  1. Create Missile_Mat in the Project window.
  2. Change the Albedo Parameter to a dark grey color.
  3. Alter the Metallic and Smoothness sliders to simulate a more “metal” look and feel. The Metallic value should be around .75. The Smoothness value should be around .5.

--------------------

Apply the Material to the Missile GameObjects.

  1. Select Missile_Mat in the Project window.
  2. Drag to the Missile1 and Missile2 GameObjects.

4. Create, Configure, and Apply the Planet Material

Create a Planet_Mat Material for the Planet GameObject and change its Render Mode to transparent.

Creating the Planet Material

Creating the Planet Material

  1. Create Planet_Mat Material in the Project window.
  2. Change the Render Mode by changing the drop-down from Opaque to Transparent.

--------------------

Manipulate the Albedo (Including the Alpha Channel) so you can see through the planet.

Adjusting the Albedo

Adjusting the Albedo

  1. Click the Albedo Color to change the color of the Material.
  2. Change the Alpha Channel Value in the Albedo to make a more transparent Material. For our Planet, we chose around 120.

--------------------

Apply the Material to the Planet GameObject.

Applying the Material to the planet

Applying the Material to the planet

  1. Select Planet_Mat in the Project window.
  2. Drag to the Planet GameObject.

Explore — Planet tint

Manipulate the Albedo, Metallic, and Alpha Channels to change the tint on the planet.

5. Key Takeaways

Great job adding your first Materials to different GameObjects! You should now be familiar with how to create, configure, and apply Materials by on manipulating properties such as:

  1. Albedo
  2. Alpha Channel
  3. Metallic
  4. Smoothness
  5. Render Mode

Complete this tutorial