Electric Turnip
  • Blog
  • Stories
    • Story 000
    • Story 001
    • Story 002
    • Story 004
    • Story 007 - Unfinished
    • Story 008
    • Story 010 - BattleWagon
    • Story 012
  • Images
    • Adventure Caddie concept gallery
    • Page Design Gallery
    • Older Work
  • 5FEAT Video
  • Videos
  • Game Experiments
    • Climb
    • Super Shapetoy
    • TurboGarbageTruck
    • 031 - Best Games - Enchanter
    • 033 - Shader Test
  • Contact

019

3/11/2013

0 Comments

 
This week I was cleaning up some models, making a couple new models, and doing a UV unwrap on this character. 
Picture
That weird looking pelt in the bottom right is the UV layout

There are about seven thousand tutorials on UV unwrapping available one google search away. I don’t think it would be worth your time if I did another one. If you ask me in person I will gladly walk you through the process in my own inimitable monotone fashion. You will probably fall asleep before we get to seam placement. So here is a quick, high level overview of UV coordinates and UV unwrapping. If you are at all familiar with 3D modelling and UV layout, this will be pretty boring for you. Feel free to leave now, and I’ll see you back here next week. Also you could just jump to the bottom where I explain why none of this will matter soon.

A 3D model is just a collection of points in space. For this character, a little over 1300 of them. They all have 3 coordinates that describe where they sit in space relative to some arbitrary zero point, or origin. You have x position (Horizontal), y position (Vertical), and z position (Depth). Some folks like to swap the y and the z, since z axis rising up perpendicular to the plane of the earth is how it’s usually done in aviation. Unless you’re some sort of heathen, x sits on the horizontal where it belongs. Whatever orientation you go with you put three numbers in the x, y, and z slots for each point. From any 3 points in space you can create a triangle. Making a 3D model is really just managing these triangles. Those 1300 form the corners of 2600 triangles. You move them around, add and subtract them, until it looks like whatever you are making. Sort of like Michelangelo freeing the angel from the rock, but in reverse. And with at least twice as much computer power.

So what is a UV then? Well after you line up all those triangles into something recognizable, you might want to paint it. Those points and triangles aren’t really anything. They are groups of numbers in a computer. Kinda tough to paint on math. But what you can do is take all those points and triangles, cut them apart and lay them out flat. You know when you get a paper model in a book or on a cereal box or something? You have to cut it out and then fold the paper so the edges come together to make some sort of three dimensional shape. Laying out UV coordinates is the opposite of that. You take this perfectly good model, mark the seams where you want it to come apart and then spread all the pieces out flat. You arrange the model pieces in a totally separate set of coordinates. The model sits in xyz space and this new flattened version of it sits in UVW space. UVW - xyz... yep, clever as it sounds.

Now that you have everything laid out flat, and organized you can create a texture, or image, that is also flat. The points on the UV coordinate system will match up with their corresponding points in xyz space. The texture will stick to the same places on the model as they do on the UV layout.

You might say, “hey wait, you said UVW. What’s the W for?”. Just like the xyz coordinates the UVW system also has a depth element to it. It lets you do fancy stuff, like fake reflections and procedural volume textures. Probably nothing you need to worry too much about.

UV unwrapping is one of those tedious, but vital steps in setting up a model. There are a lot of tools that can help you speed up the process, but you will have to do it, and it probably will suck at least a little. It’s all right though, we probably won’t be doing it for much longer.

There are a few new tools that will automatically generate UV coordinated and pack them in ways that are not very photoshop friendly. While you probably couldn’t make heads or tails of these image maps, they are really not meant to be viewed in 2D. They are for painting 3D models in 3D applications, for 3D applications. There are a few issues yet, when dealing with real time environments like game engines, but they are already very common tools at use in CGI production and animation studios. It’s really just a matter of time before the tools and the pipelines make their way into game development. When that happens, you probably won’t have to deal with UV maps again. I think I will be just fine with that.

0 Comments



Leave a Reply.

    Archives

    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    November 2012
    June 2012
    October 2011
    July 2011
    June 2011
    May 2011
    April 2011
    March 2011
    November 2010
    October 2010
    August 2010
    July 2010
    June 2010
    May 2010
    April 2010

    Categories

    All
    Adventure Caddie
    Best Games

    RSS Feed

Owen McManus
  • Blog
  • Stories
    • Story 000
    • Story 001
    • Story 002
    • Story 004
    • Story 007 - Unfinished
    • Story 008
    • Story 010 - BattleWagon
    • Story 012
  • Images
    • Adventure Caddie concept gallery
    • Page Design Gallery
    • Older Work
  • 5FEAT Video
  • Videos
  • Game Experiments
    • Climb
    • Super Shapetoy
    • TurboGarbageTruck
    • 031 - Best Games - Enchanter
    • 033 - Shader Test
  • Contact