Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Importing and assigning objects and maps in Unity

From: Game Prop Creation in Maya

Video: Importing and assigning objects and maps in Unity

In this video I'll take the pieces I have exported from Mudbox and bring them into Unity and see how this looks. I have exported my Normals back out, and I have also exported my colors, and I have applied them to my low poly object. When it came in it wanted to put the alpha channel from that TIFF into the transparency, so I have broken the connection. I have added in my normal maps, making sure they're set to Tangent Space Normals here in the Bump 2d node. I'm viewing it in the high-quality display, and it looks pretty good.

Importing and assigning objects and maps in Unity

In this video I'll take the pieces I have exported from Mudbox and bring them into Unity and see how this looks. I have exported my Normals back out, and I have also exported my colors, and I have applied them to my low poly object. When it came in it wanted to put the alpha channel from that TIFF into the transparency, so I have broken the connection. I have added in my normal maps, making sure they're set to Tangent Space Normals here in the Bump 2d node. I'm viewing it in the high-quality display, and it looks pretty good.

I can see some places where I might want to smooth out the Mudbox model right here on the corner, but it's a neat test. The paint is on, and I'm ready to get the glossiness into the alpha channel in Photoshop so it comes across to Unity correctly. For a low poly object, this is looking pretty nice. As always the normal map is not changing the silhouette, but it's also adding some characters to this barrier. I'll open up Photoshop and pull those maps in. Here in Photoshop I'll open up those two images pressing Ctrl+O and browsing over to my source images folder. Here's 07_08_Color_start and 07_08_Gloss_start.

I'll pull them open. What I have got here is transparent around the gloss. I may want to hit this with an additional piece of color or just leave it alone as there's nothing going on in that space right now. What I'll do is press Ctrl+A to Select All, Ctrl+C to Copy, and go over to the color image. Again, there's no backing color on it. So if I'm going to have any reduction in size or enlargement I may want to put a backing color behind this. For safety what I usually do is pick one of the colors in here, eyedroppering let's say the dirt, and filling in using the paint bucket on a new layer.

This way if there is any gap, it doesn't get a default white fill, but instead goes in the same grade that my dirt is. Now I'll go into the Channels. I'll make a new channel and paste in that specular into the alpha. I'll press Ctrl+D to deselect, and now I'm ready to save this out. I'll go back up to the RGBs and click on RGB. Then I'll go in Layers and make sure my top layer is active and choose File > Save As. I'm going to save this out without layers as a copy with an alpha channel calling it 07_08_Color_end.

I'm going to put this in my Unity folder in the assets in the textures folder I have created. Here is my Game Props unity project, and in there are assets. In the Textures is where I'll put that image and click Save. This way Unity will import it automatically. I'm going to make sure when I save this that I check Compression as None as I'd like to let Unity handle all the compression on this. I'll click OK, and now I'm going to go back to Maya and export out the FBX of that barrier. Here in Maya I'll select my barrier and choose File > Export Selection.

I have put a material on here called barrier so when Unity brings it in I can recognize it and put those maps in. I'll export out this selection. I'm going to put this in my Assets folder in my Unity project as well. I'll browse over to the Game Props Unity and into Assets. I'm going to name this 07_08_end. I'm making sure that I'm taking across my smoothing groups or hard and soft edges, and as usual with Unity converting my units to meters. I'll click Export Selection, and I'll open up Unity and bring this in.

Here in Unity I'm in my Game Props Unity project, and there is my file. As soon as I opened or refreshed Unity it came across nicely. I'm going to set the Scale at 1, and in this one I'm going to put a box collider on, so I won't check Generate Colliders. I'll scroll down and click Apply. This shape is nearly a box, and we don't really need to be able to ride up it unless we're dealing in a driving game. It's okay to use a box collider in minimize resources.

I'll pull this into the scene, dragging it into the hierarchy, and pressing F to focus on it. Here is that Box Collider. I'll choose Component > Physics > Box Collider. This is a little more economical in resources than using the mesh as a collider. In general we can't get too much closer, and we can't really tell the difference in 6 inches of movement here. Now I'll get the Materials on. In my materials it's brought in a material called Barrier. I need to bring in my textures which are already in the Textures folder.

I'll look down in my project, and because I deposited in there, Unity imports them in automatically. I'll pick the color and make sure it came in okay. It is a texture, and there is the size, 1024. That will work, although I may end up wanting to compress. I'll pick my material and change the Shader, dropping down under Diffuse, and making it a Bumped Specular. Now I can put in my color and its alpha as well as the normal map. I'll drag that color map in and put it on there, and there it is on the barrier, but it looks like I forgot to bring in my normal map.

I'll go copy that into the directory, and it should show up the next time I enter Unity. I have browsed into my sourceimages folder, and there is that normal map I forgot to bring over. I'll select it and press Ctrl+C. Remember, anything in the Unity project gets imported. So you may have directories outside of that where you keep working files or raw versions. I'll go back to my Unity project and into the Assets folder into the Textures folder, and I'll right-click and paste that in.

Now when I go back to Unity, it'll refresh and pull in that map form me. There it is, and I'll pick it and make sure under Texture Type it's tagged as a normal map. I'll uncheck Create from Grayscale, and I'm ready to use it. I'll click Apply, and now I'll bring it into that material, clicking on Barrier and then dragging it across. I have brought it in, and there is that object with its normal. I'll pull this down a little bit and get a controller in to see what this looks like. It looks pretty good as I spin around, although there aren't any lights in the scene yet.

To test, here's what I'll do. I'll choose GameObject > Create Other > Plane. I'll make a plane, hold V to snap, snap on the plane, register on a vertex, and snap down to the bottom of my barrier. I think just so I can see this really working, I'll duplicate it by pressing Ctrl+D and sliding it over. The duplicate gets a box collider as well, and I'll make one more of them putting it over here and rotating it around. We'll see if these colliders work if I can get around those.

I'll roll up my textures and go into the Standard Assets folder. I'm going to pick a first-person controller and drop it into my scene. I'll pull back and see where it landed. It's way off there in the distance. I think what I'll do is I'll delete that and instead of dropping it into the hierarchy, I'll zoom in and drop it right into my scene so it starts out in the right place. Here's the test to see if I did this in the right size as my barrier at 32 inches high is just under half the height of that controller.

So I know I'm in good shape size-wise. I'm going to put a light in, and then I'll play it and test it. I'll choose GameObject > Create Other, and I'm going to use a Directional Light like the sun. There is my light. I'll press W to move pull it up out of the way and rotate it over. I'll spin it and back off this intensity a little bit, and I'm going to turn on some Soft Shadows. I'll make them longer, and it looks pretty good. I'll test this out by pressing Play.

The first-person controller is automatically marked as the view to go to. Here I'm in the view, and there is my barriers. I can jump and see the top. I'm pressing the spacebar to do this and using W-A-S-D to navigate around. It looks like the box colliders worked, and I can pass between them. I haven't adjusted the shadow resolution which is why we're seeing some jaggedness down there, but as a quick test to the material it's working nicely. What we look for in our workflow is that things are fast and not only is it fast, but we can get some iterations going quickly. And what I'm doing here, aside from bringing it into Unity and playing around the barriers, is showing that there's many different ways to do this, and Mudbox is a terrific addition to your pipeline because we can view it and paint on it and sculpt it in Mudbox in 3D.

Show transcript

This video is part of

Image for Game Prop Creation in Maya
Game Prop Creation in Maya

90 video lessons · 6160 viewers

Adam Crespi
Author

 
Expand all | Collapse all
  1. 7m 22s
    1. Welcome
      43s
    2. Using the exercise files
      1m 35s
    3. What you should know before watching this course
      23s
    4. Setting up the workflow
      4m 41s
  2. 46m 16s
    1. Overview of modeling a large prop and planning for modular textures and models
      6m 53s
    2. Blocking out the overall form
      6m 14s
    3. Adding curved panels
      3m 26s
    4. Rounding the corners
      6m 46s
    5. Unwrapping the face frame
      6m 39s
    6. Unwrapping the sides
      5m 8s
    7. Moving and sewing UVs
      5m 23s
    8. Laying out the UV coordinates
      5m 47s
  3. 1h 50m
    1. Overview of the texturing process and PSD networks
      4m 43s
    2. Creating a bump map for the sides
      10m 55s
    3. Adding details to the bump map
      8m 6s
    4. Drawing the bump map for the front
      7m 51s
    5. Adding details to the panels
      7m 45s
    6. Painting the diffuse texture and planning the layers
      3m 35s
    7. Painting the base coat and the logo
      5m 24s
    8. Adding labels and other markings
      10m 45s
    9. Adding soft rust
      8m 32s
    10. Adding rust bubbles
      8m 58s
    11. Setting up a library of gas pump textures
      6m 40s
    12. Painting dirt and rust variations
      5m 23s
    13. Weathering away the paint
      5m 1s
    14. Converting bump maps to normal maps
      5m 36s
    15. Testing the maps
      11m 8s
  4. 1h 28m
    1. Overview of modeling small props
      1m 59s
    2. Modeling a sledgehammer
      6m 11s
    3. Modeling a pry bar
      6m 26s
    4. Adding detail and hardening edges
      5m 28s
    5. Unwrapping as part of building a texture sheet for small tools
      8m 27s
    6. Modeling a metal ladder
      8m 51s
    7. Unwrapping and cloning
      8m 46s
    8. Placing the clean texture
      8m 39s
    9. Laying out a texture sheet for multiple tools
      8m 37s
    10. Painting rusty steel
      7m 46s
    11. Adding dirt and wear
      5m 42s
    12. Planning for optimal texture usage
      7m 37s
    13. Painting dirt and age variations
      3m 42s
  5. 1h 45m
    1. Modeling furniture using simple parts and reusable textures
      2m 53s
    2. Planning and analyzing the modeling of a chair
      4m 56s
    3. Blocking out the basic form
      8m 24s
    4. Adding detail and softening edges
      6m 42s
    5. Refining the silhouette
      12m 9s
    6. Blocking out the form of a round chair
      7m 39s
    7. Adding detail and softening the edges of a round chair
      5m 20s
    8. Unwrapping as part of building a texture sheet for furniture
      14m 36s
    9. Planning the modeling of a table
      3m 14s
    10. Blocking out the basic table form
      4m 41s
    11. Adding legs to the table
      7m 6s
    12. Breaking up the model for texturing
      7m 55s
    13. Laying out the wood texture
      9m 29s
    14. Reusing parts to make a round table
      10m 12s
  6. 39m 23s
    1. Understanding the importance of painting textures from scratch
      2m 9s
    2. Creating the initial grain lines
      4m 43s
    3. Adding value variation across the grain
      2m 22s
    4. Warping the grain
      2m 50s
    5. Adding knots
      4m 27s
    6. Colorizing the grain and planning for stains
      6m 53s
    7. Cutting out boards for a UV layout
      5m 26s
    8. Adding patina and wear to a final texture
      10m 33s
  7. 1h 2m
    1. Understanding the importance of a low poly count
      4m 46s
    2. Overview of normal maps
      9m 26s
    3. Overview of the high-poly projection pipeline
      3m 10s
    4. Planning the UV space for projection
      5m 29s
    5. Working with hard edges and subdividing
      7m 22s
    6. Adding details by beveling and extruding
      6m 50s
    7. Fixing geometry
      7m 39s
    8. Using the Sculpt Geometry tool and soft selection to add dents
      9m 32s
    9. Baking the high-poly model onto the low-poly model to produce a normal map
      8m 21s
  8. 51m 4s
    1. Overview of Mudbox
      4m 26s
    2. Preparing for a smooth export to Mudbox
      7m 43s
    3. Importing from Mudbox: Choosing the right resolution
      5m 9s
    4. Using the sculpt tools
      8m 30s
    5. Painting
      8m 58s
    6. Exporting paint layers from Mudbox
      1m 35s
    7. Extracting and exporting a normal map from Mudbox
      6m 2s
    8. Importing and assigning objects and maps in Unity
      8m 41s
  9. 41m 4s
    1. Overview of ambient occlusion and specularity
      5m 55s
    2. Setting up ambient occlusion as a texture
      7m 3s
    3. Using ambient occlusion as a foundation for dirt
      6m 44s
    4. Using ambient occlusion as a foundation for rust
      10m 5s
    5. Painting a specular map
      6m 48s
    6. Streamlining the import process: Placing maps in the right channels
      4m 29s
  10. 21m 46s
    1. Overview of importing into Unity
      3m 15s
    2. Preparing and exporting props to Unity
      7m 54s
    3. Cloning props in Unity with different looks
      5m 21s
    4. Adding lights to test smoothing and textures
      5m 16s
  11. 22s
    1. Next steps
      22s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Game Prop Creation in Maya.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.