UVW Mapping with Real World Scale

UVW mapping a 3d model can be either very easy or very difficult, depending on the complexity of the 3d model and the final purpose of the computer generated image. If you have basic knowledge of texturing you know that if you have a “box like” model you apply a uvw map modifier with a box gizmo, for a bowling ball a spherical gizmo and so on…
But what happens if a client sends you a sample of a wood texture and ask you to apply that on a furniture element? One way to do it is to use tilling, but in order to do it correctly (keep the real dimensions) you need to do quite a few calculations to see how many times that texture should be tiled horizontally and vertically.

Fortunately there is another way to do it by using “real world scale” and that is the process I will try to explain in the following tutorial.

Download the 3d model

Download the wood textures that you will apply on the model

Before you begin, make sure that you have set your units to centimeters (or the units that you usually work with, except “generic units”) As you will see, for this type of approach to uvw mapping, the units are very important.

The model that we will be working with, will be mapped with 2 different materials, so the first step is to select the polygons that will have one of the textures assigned to it and set an id like in the pictures bellow.

With the selection still active, click on “edit”, “select invert” and you will end up with the other polygons selected; under “set material id”, type “2” in order to assign a new id to the second material.

At this moment you have the material ids set, so whenever you need to select the polygons that correspond to a specific material just click on “select id” and type the number that corresponds to the desired material.

http://www.cgdigest.com/material-settings/uvwmap/uvw.rar

Open the material editor, and assign a material for each of the polygon selection sets of your model.
Select the material slot of the first material that you want to work with and apply a checker map in the diffuse slot.
Under “coordinates” rollout make sure you check “Use Real World Scale” and type in the desired dimensions of your texture (in this case 5cm x 5cm).

Now apply a uvw map modifier to the object, select “box” and check “real world map size”. As you can see, every square of the pattern has 2.5 x 2.5 centimeters (the checker map is 2×2 squares with 5x5cm dimensions)

At this point, you can replace the checker map (that was just a placeholder to understand better how real world scale uvw works) with a desired wood texture, in this case a red oak. The important thing is to know exactly the size of the photo sample. This one is 35×52 cm, so you just need to type this dimensions in under the “size” parameter of the texture.

Click the image to view a higher resolution picture


Since we have completed uvw mapping the first material on our model, we can start working on the other one. In the diffuse channel select the desired texture, check “use real world scale” and type the dimensions like you did for the previous one.

As you can see from the photo above, the grain of the texture of the second material is vertical and you probably want it to be horizontal. The first thing that may cross your mind would probably be to change the axis of the uvw gizmo from “z” to “x”. This is only partially correct because even if it places the new texture correctly, it messes up the old one.

What you need to do is to collapse the uvw mapping modifier, select the polygons that correspond to the material you need to tweak and with the selection active, add a new uvw mapping modifier. By keeping the selection active, the new uvw mapping material will affect only the selected polygons.
Click again on real world map size and change the axis from “z” to “x”.

Click the image to view a higher res rendering

That’s about it; if you need to add more materials, just repeat the last steps; collapse the stack, selected again the polygons that you want to correspond to a new material, and add a uvw mapping modifier with the new selection set active.

If you have any questions feel free to ask.

Tagged , , , ,
9 Comments
  1. George says:

    HI, great help. my floor space is 800cm long by 380cm wide and I am struggling to great a wood texture (polished wood) that looks to scale) your help/advice will be much appreciated)

    Regards

  2. Hi George,

    Floor textures are quite easy to do in photoshop. Just draw the pattern that you need and fill it with parts of regular wood textures. For more realism, you can add variation to it by slightly adjusting the brightness for some of the tiles.
    I hope it helps; if you have any questions, don’t hesitate to ask.

    Best regards,
    Alex

  3. jackieteh says:

    may i know what is the generic units mean?

  4. angel says:

    how can i use real world map scale for floor tiles to make it look sclae in my 3d rendering? my tiles is 500mm by 500mm?

  5. angel says:

    how can i also use real world map scale if may texture material is in timber flooring with dimension of 430mm x 350mm? i try to use real world map scale but it doesnt look scale when i render it in 3d max.

  6. @ jackie – “generic units” are the default units from max
    @angel – make the size of the uvw gizmo 500×500. Don’t forget to set the units to mm.

  7. mreza says:

    great . thanks about this wonderful tut.
    nice work of mapping material for real world map

  8. alicekoh says:

    HI, I often face the same problem when assign material. example, I am trying to create an ancient vase. When I assign material using UVW mapping, cylinder,the vase looks beautiful until it reach the joint. One look you can tell the material looks fake at the joint. Please advise how can I make sure that the jointing edge looks smooth. Appreciate your help

Trackbacks / Pings
Leave a Reply




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>