Guide to Making a Beautiful Game: Adding Emissions to Objects
Hello all!
Today, I will be going over how to add Emissions to Objects! I would never guessed how easy this was!
Creating an Emission Map
Like the last article, I will be using the objects texture maps. This time though, we must find certain parts in the map to setup the emissions.
Easy way:
- Find the texture map you want to add an emission map to.
- Open the image in your image editing software.
- Drag the image onto a new layer.
- Now, if you can see where the texture map would be on your object, select that part of the image.
- Add a new blank layer and bring it to the top.
- In the new layer, use the paint bucket to fill your selection with white. You can use any color, but it’s easier to use white and change the color in Unity.
- After that, use the fill option again to fill the empty space with black. You will no longer be able to see the original image and that is normal.
- Now export that image as a .PNG file back to the original file destination.
Hard way:
If the image is too complex, we will need help from a 3D software. Since I have experience modeling in Blender, we will be using that.
Here, we will be using the UV Map of our object to find parts we need.
- UV Mapping is basically taking a 3D object and flattening it out, separating all the faces, then placing all the faces on the texture map. When the faces are placed on parts of the image, the face will have that part stamped on it!
- Find the texture map and 3D object file you want to add an emission map to.
- Open Blender. A quick tip: at the top of the screen, there are Layout presets. Select the UV Mapping tab. It will make life easier.
- Import the 3D file and texture map. When you do, it will look like the image above.
- Press tab to enter Edit Mode.
- Select the faces you wish to add to the emission map.
- On the UV Mapping screen, you will see those faces added to the image.
- At the top, click the UV menu.
- Go down to the bottom and click “Export UV Layout”
- Export the .PNG file to the texture map file destination.
- Now follow the easy way above but now you will have a guide if you add the exported UV layout as a layer above the map. Just fill in the black shapes with white, then black everywhere else.
Add the Emission Map to your Object
Now that we finished that task, your emission maps should be where your texture maps are.
- Select the object you want to add the map to.
- In the Inspector tab, scroll down to where it has the “Object’s_Name (Material)” section.
- Click the arrow at the bottom left.
- Scroll down a little more to where it says Emission, then check the box.
- The object should turn white, that is normal.
- Now find and drag in the Emission Map to the box under Emission.
- If you made the Map white, you can now use the white box beside Emission Map to change the lights color. If not and you want to change the color, just fill the new color white.
That was how to add Emissions to your objects! I think I am done changing objects for now, but these small changes have already made this look awesome!
Next, I will be getting into Post Processing!
Thank you for your time!