smallarrows.GIF

156 syllabus      site index      3D artists      past student work        DMA

Unity Lighting, Texture, Glass, Reflection Probe

unity_textures

Maya Texture Setup for Unity
Follow these steps if your Maya Texture files are not located in your Unity Assets folder.

1) Quit Maya

2) Put copies of all your texture maps in the Unity Assets folder where your Maya file is located. Texture files and Maya file should all be at the same folder level.

3) Temporarily rename the folder where the textures came from so Maya does not look there.

4) Open the Maya file that is in the Assets folder. Maya will find the textures if they are in the same folder as the scene file.

5) In Maya Hypershade hypershade, select Edit->Delete Unused Nodes

6) Change any  Arnold Shaders or StandardSurface shaders  to Lambert, you can do this in the Maya Hypershade or the Maya Attribute Editor, or make new Lambert shaders. Phong and Blinn work, but Unity will ignore the specular attributes.  Maya color, incandescence, transparency and bump textures can be opened in Unity.

7) Save Maya file in your Unity Assets folder, or if you made a Materials folder save it there with all your texture maps.

8) Start Unity, the textures, color, incandecence, transparency and bump will be linked to the Maya materials and visible in Unity.

9) Change the name of the folder you temporarily renamed.



In Unity
Add some primitives

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 32x32 pixel dot map with an Alpha channel in Photoshop.

Use the Elliptical Marquee tool to select a circle     PS_elliptical_marquee
Use Select->Save Selection...  The defaults are good
    
Select the Window->Channels window
          Select the Alpha1 channel
          Paint the transparent sections black, opaque white, and translucent gray.

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



In Unity
Select a 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.
Extrude is great for this.
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




Import a new Skybox
Choose the
Asset Store tab next to the Scene window  (or Window Asset Store)
     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 change the Skybox Material to the skybox you imported.
     You can also make your own.



AllSkyFree Skybox BUG
Work around for AllSkyFree skybox BUG, webGL will not publish
These will not publish because of a script error

Select the AllSkyFree folder from the Project tab
     Select the arrowunity_down_arrow_hierarchy next to AllSkyFree
          Delete AllSkyFree_Menu.cs from the Assets window




Glass and Reflection with Post Processing
unity_glass


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 Value 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 for shiny glass and chrome
Select GameObject->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

Change the Type
to Realtime     (default Baked)
Change the
Clear Flags and Background color to match your camera

Increase Smoothness
on Materials to change the reflectivity


smallarrows.GIF

© 1988-2021 Jennifer Steinkamp