smallarrows.GIF

156 syllabus      site index      3D artists      past student work        DMA

Unity Lighting, Texture, Glass, Reflection Probe

unity_textures

Add some primitives
In Unity:
Add GameObject->3D Object->Cube etc.



Add some materials
Select Assets->Create->Material.
Double click the material in Assets below.
Drag and drop a material onto a primitive



Albedo Color Maps
Make some 256x256 pixel tiff files in Photoshop and save the files into your Assets folder.
Select Material you would like to map.
Drag the map from Assets onto the Albedo square in the Inspector.



Transparency Maps

In Photoshop
Make a 256x256 map with an Alpha channel.
     Select the Channels window in Photoshop
     Select New Channel from the drop down menu on the right...
          Select the Alpha1 channel
          Paint the transparent sections black, opaque white.

Save the file into your Unity Assets
folder as a tiff.

In Unity
Select Material you would like to map in Assets.
Drag the transparency map from Assets onto the Albedo square in the Inspector.
Change Rendering Mode to Cutout
Change Tiling to a higher number for repeated texture.
Notice your object is single sided, you will need to model the inside and outside in Maya.
unity_trans_map



How to create a Normal Map (bump)
In Photoshop
Open an image file.
Select Filter->3D->Generate Normal Map...
Save the file as a new name into your Unity Assets folder.

In Unity
Select Material you would like to map in Assets.

Drag your normal map from you Assets onto the Normal Map in the Inspector
Click the Fix Now button
Adjust the bumpiness of the map to the right.
unity_normal_map



Convert a Maya shader imported into Unity
Maya Color Maps and Transparency maps import into Unity.
Click the arrow in the Assets window to see all the Maya components  unity_asset_arrow
Select the shader, Select Extract from Prefab with the right mouse, wait
Select the shader
Drag your normal map from you assets on to the Normal Map in the Inspector
Click the Fix Now button
Adjust the height of the map to the right.



Import a new Skybox
Choose the
Asset Store tab next to the Scene window

     Type skybox in the search bar, Select Free Assets
     select
Download and Import

Put the main view window back to Scene

Choose Window->Rendering->Lighting Settings
Click the unity_dot to c
hange the Skybox Material to the skybox you imported.
You can also make your own.




Glass and Reflection with Post Processing
unity_glass

Glass Material
Select Assets->Create->Material.
Double click the material in Assets below.

Change Shader to Standard (Specular setup)  in the Inspector
Change Rendering Mode to Transparent

Change the Albedo color to V 7 and Alpha to 15  transparent

Increase Smoothness

Drag a normal map from your Assets
onto the Normal Map in the Inspector
Click the Fix Now button
Adjust the bumpiness of the map to the right, keep low

Drag and drop the material onto the model.



Reflection Probe
Select Assets->Light->Reflection Probe
Change the Position to 0,0,0 in the Inspector
Make sure your objects are within the cube area. Use this editor to adjust. unity_reflection_probe

Keep the Type
to Baked     (default Baked)
Change Time Slicing to No Time Slicing     (default All faces at once)
Select
Box Projection
Change the Clear Flags and Background color to match your camera

Increase Smoothness
on Materials


smallarrows.GIF