In this tutorial you will learn how to create a shadow map on your sculpties that you can use to create high-quality textures for your sculpts.

Texturing with Shadow Maps

For some sculpties, slapping on a tileable texture from your inventory might work well enough.

Often, however, it looks better if you create a texture specifically for your sculptie. Sometimes this is even necessary to get the look that you want. The trouble is, how do you make a texture that fits your sculptie exactly?

I’ve often seen people use a colored and numbered grid to map out the general location of certain parts of a sculptie, then match it to the same grid in 2D format. While this method has its place, it can get pretty tedious.

There are features in Blender that will help us make textures for our sculpties relatively quickly. In this tutorial we’re going to focus on baking ambient shadows, which is probably the fastest and easiest to understand method available in Blender.

In this tutorial, I ask that you have your screen split in half and one half switched to the UV/Image Editor.

Ambient Occlusion

Before we begin, I want to change the draw type in the 3D View to Textured. Find the small menu to the right of the Mode menu (marked in red – click the image to enlarge) and switch the draw type to Textured. If your sculptie is currently assigned a UV texture (such as a sculpt map), you’ll see that texture placed onto your mesh in the 3D View.

If you’ve ever worked with other Blender sculptie templates, you may already know how to bake textures onto an image. However there are other types of images we can bake. The type we’re going to bake now is Ambient Occlusion – or global shadows.

First we want to assign our mesh to a new texture. If you have multires on your mesh, you need to switch to Level 1 or Apply Multires before you change textures. Then go into edit mode and select All, by tapping A until all the vertices are yellow and the faces pink. Then in the UV/Image Editor, go to the menu Image > New. Make a new image that’s 256 x 256 or 512 x 512. Hit OK. (If you switched to Multires level 1, you can now switch back to level 3.)

Now go to the Scene > Render Buttons (marked in green – click the image to enlarge) and then find the Bake tab (blue) and change the bake type to “Ambient Occlusion” (yellow) and hit Bake. Wait a few moments for Blender to bake shadows onto your image. Save the image as something meaningful.

Usually this shadow map gives you enough ‘landmarks’ on the texture to be able to paint a texture that exactly fits your sculptie. Just use your favorite image editing software.

If you get black lines running through your shadow map, like the image above, this is something that happens in Blender sometimes, especially if there are faces on your sculpt that are twisted. Either paint these out, or blur them, or find some other means to get rid of them in your image editing software.

Previewing Your Texture

Testing your texture before uploading is incredibly easy. Simply save your new texture right over the file you saved from Blender. Then in Blender, reload the texture file by selecting Image > Reload in the UV/Image Editor.

Your new texture will now be wrapped around your mesh.  If something’s wrong, but you’re not sure where it is on the image, you can select the faces on your mesh and it will highlight them in the UV/Image Editor.

Another Texture

Maybe you’d rather keep the original shadow map or maybe you have multiple texture that you want to preview, like if you’re doing multiple recolors.  You save these textures separately and then open them in Blender to preview on your mesh.  Go to Image > Open. Find the texture you want and hit “Open Image.”

Then in Edit Mode swith to Multires level 1, select all your vertices, and find the drop-down menu next to the UVs Menu (marked in yellow). Click the small button with the arrows and select your new image. From this menu, you can also switch back to your old image, or to any image currently opened in Blender.

Multi-Sculpt Bake

If you have more than one sculpt mesh in a single .blend file (see how here) then each mesh may effect the shadow baking of the others.

If you look at the image to the left (click to enlarge) you can see how the smaller mesh has created a dark shadow on the larger one.

Sometimes this is desirable, such as when you want a drop-shadow look on your group of sculpts, but if you’d rather they affect each other less or not at all, move the meshes away from each other before baking.

Note that this behavior can be useful if you need additional landmarks on your shadow map. For instance, if you want to place a logo or other decoration at a specific location on the mesh, you can add a new object to your file and place it at the desired location so ambient occlusion will bake a shadow on that spot.

Related posts:

  1. Add Alpha Protection to Sculpt Maps
  2. Resolution Tricks
  3. Multi-Sculptie Builds
  4. Starter 4: Get Familiar With Multires and LOD
  5. Starter 3: Create Your First Sculpted Prim

9 Responses to “Creating and Using Shadow Maps”

  1. lollito says:

    Good! but i have a question : how do i calculate my texture (i.e the leather of my hat) and the Ambient occlusion image baked into one image?
    I have the leather in one hand, the AO one the other, but is ther a way to make it one in blender?
    Thanks a lot for your answer)

    • Murgy says:

      Uhh. I’m sure there’s a way to do that with Blender’s textures and materials, but I’ve never really done it, as I prefer to do my texture work in Photoshop.

      So I’d have to look up information on it before I’d be able to tell you anything.

  2. Rowan says:

    Hm, I can’t get this to quite work.. even with a sphere the difference in the light/dark grey colours is very slight and also it looks sort of grainy/speckled.
    I’m guessing it has something to do with my global light settings or something..any ideas?

    • Murgy says:

      Sorry I didn’t reply sooner. I somehow missed your comment. The ambient light of an object isn’t determined by any light source, but rather by the mesh casting shadows on itself. So if you have a mesh with a lot of hills and valleys (or wrinkles and creases) then the valleys will be darker because of the hills block the ambient light.

      For something like a perfect sphere, no part of the mesh is blocking ambient light, so you won’t get any shadows. If you wanted a shadow on the sphere then you would need to create another object and place it close to the sphere in order to block the ambient light.

  3. Paradoxical says:

    I am having the same issue as Rowan. I attempted several different sculpts, following your directions as closely as I could interpret, but when I try to bake an ambient occlusion map, my texture comes out grainy, without any notice of visual landmarking that I can tell. Just speckled grey and white. I plan to take these maps into Photoshop when I’m able to texture them accurately if it makes any difference in finding a resolution.
    Any ideas as how to fix this?

    • Murgy says:

      Hey, I just replied to Rowan so maybe that will answer your questions. Just know that ambient light has to be blocked by faces of a mesh in order to create shadows. A mesh with deeper or sharper wrinkles and creases will have darker, more defined ambient shadows.

      Meshes that are very smooth may not have any ambient shadows at all. In order to get shadows on smooth meshes, you need to use other objects to force the shadows on.

  4. Michael says:

    I did not understand this. the part of making a New. Texture i get a black screen and when i do the Bake thing nothing changes. Maybe i’m doing something wrong but i wont get the shadows to be put on a texture which i can them export to my pc and edit in photoshop.

    • Murgy says:

      It sounds like your new image isn’t getting assigned to the mesh properly. Make sure when you assign to the new image that you A) are in edit mode with all vertices selected and B) switch to multires level 1.

  5. SelisBaily says:

    How do i add texture to a sculpty? specifically fashion sculpties such as collars, bottom of pants, sleeves, etc. What do I do with the shadow maps? Please if you can explain to me. I am using gimp for my designs. I have to add these sculpties to my stuff to make it look better. I am at a roadblock right now. I have purchased some full perm sculpties from xstreetsl.

Leave a Reply

(required)

(required)

© 2010 Sculpt Blender Suffusion WordPress theme by Sayontan Sinha