Join Deke McClelland for an in-depth discussion in this video Identifying and painting details in 3D, part of Photoshop CS5 Extended One-on-One: 3D Objects.
In this exercise we're going to go ahead and manually scale the diffuse texture so it no longer repeats inside of the animal, and that'll give us the opportunity to paint the horns and only the horns. I've saved my progress as Paint-splattered bull.psd. It's found inside the 09_3D_models folder. And the first thing I am going to do is go over here to Diffuse Texture inside of the Layers panel and double-click on it in order to bring out that diffuse texture inside of an independent window. Now I want to get rid of those white paint strokes that are repeating over the course of the animal. So I am going to press Ctrl+A or Command+A on a Mac in order to select the contents of this paint layer, and then I am going to press the Backspace key or the Delete key on a Mac.
And you might wonder well, why didn't I just delete the entire layer, and if that's what I want to do? Well, I don't want to delete that layer because I still need to be able to paint on it. All right, now press Ctrl+D, Command+D on a Mac in order to deselect the image. And then I'll go up to the Image menu, choose the Image Size command or press Ctrl+Alt+I, Command+Option+I on a Mac and then make sure that both Constrain Proportions and Resample Image are turned on; those two are very important. And then change either the Width or Height value up here at the top of the dialog box from pixels to percent, and then dial in a value of 500%.
And that'll change both the Width and Height values in kind, click OK, and then you're going to have to wait a moment because what Photoshop needs to do is recalculate each and every one of those three smart filters, and that does take a little bit of time. Once it's done you'll end up with this effect here; go ahead and close the Diffuse Texture and then click the Yes button here on a PC or the Save button on a Mac in order to update that texture inside of the larger 3D composition. If you take a close look here you'll see that the texture looks pretty darn noisy and that's because it's still repeating five times over the course of the animal, so it's getting tightly compressed.
We don't want that anymore because we just expanded the size by 500%, so it's going to cover up the entire animal quite nicely. So let's go ahead and double-click on the 3D thumbnail here inside the Layers panel to bring up the 3D panel. Click on defaultMat which is the material of course, and then I want you to the little Page icon to the right of the word Diffuse, choose Edit Properties, and let's change both the U Scale and the V Scale values back to 1, and then click OK in order to apply that modification. All right, now we have one and only one diffuse texture that's wrapped around the entire creature.
I am going to hide the 3D panel for a moment. Now before we start to painting the horns I want you have a sense that you can only paint the stuff that's facing you when you're looking at a 3D object. And you can figure out where those paintable areas are by going up to the 3D menu and choosing Select Paintable Areas. And that'll go ahead and select those regions inside the image window. So that's an option. I don't really like this option because I don't find it to be the least bit helpful. But then you can sit there and paint inside the selection if you want to; it's not really necessary because it's just identifying the areas that you can paint in, in the first place.
All right, so I'll press Ctrl+D, Command+D on the Mac in order to deselect that image. Another way to get a sense of what's going on and I am just mentioning this stuff by a way of FYI, so you know, and then I'll show you a better way to work. I am going to bring up that 3D panel once again. I am going to click on Scene in order to make it active up there at the top of the panel. And I am going to change the Render Settings from Custom or whatever it says there to Paint Mask. And then if you choose that option this is just an on-the-fly render setting that you can apply in Photoshop. It's not actually doing anything to the image in other words.
Anywhere that you see white that's a paintable area, where you see red is not paintable, and where you see blue, these tiny regions of blue here, are areas where you're tapering away from being able to paint and not being able to paint. So it's another way to look at things. Again, how useful is that I don't know. I am going to switch my Render Settings back to Default here. And the better way to work, in my opinion, and this is going to seem just totally wacky, but here's what I am going to have you do. Go ahead and hide that 3D panel once again. Let's change the foreground color to let's say red, and I am doing that by dialing in a Hue value of 0 degrees and Saturation and Brightness values of a 100% each here inside the Color panel.
Red is now my foreground color. I am going to press Alt+Backspace or Option+Delete to fill everything that's paintable with red. In a few moments later you will see the bull covered in red. So every paintable surface at this specific camera angle is now filled with a red color. And that's going to help me a lot in the next step when I am trying to identify what's horns and what's not horns where this creature is concerned. Now I am going to go ahead and grab my Paintbrush once again which you can get by pressing B key. And I am going to change my Hue value to a kind of bone white, even though I know we're working with horns and not really bones, but still.
I'll change a Hue value to 50 degrees, the Saturation to 15%, and I'll take the Brightness value down to 90%, and then I am going to go paint inside the horn. Now you he have to be careful you can't just loop around inside the horn like this and expect it to just paint on the tip of the horn, for example. You can end up painting on any visible surface. So where there is no horn anymore you can end up painting on the head, and we don't want that because that's just going to confuse us later. Or is it, actually you know what? We'll leave that in place and we'll come back to it. And now I'll go ahead and paint over this portion of the horn as well.
I don't have to worry about being sloppy here because there is no exposed portion of the bull in the background. All right, now let's get a sense of what we've done here. I am going to go double-click on Diffuse leather again here inside the Layers panel in order to open it up in an independent image window. I am going to go ahead and zoom on in, and you can see that we've got these huge areas of red, and then we've got some areas of red that are covered up by white. Well, what I am going to tell you and this is based on spending a fair amount of time inside of this file, is that these regions right around here are part of the horns and the other areas that I slopped white on to, including this area over here on the left that I am kind of circling, and then these little goobers down here in the lower right region; those are not part of the horns.
But of course, you would have to play around in order to figure that out. Here's what we're going to do. Go ahead and grab the Rectangular Marquee tool and then drag around this area so we're just marqueeing this region in order to select it, and then Shift+Marquee this region to select it as well. And that's it; I am going to go ahead and zoom on in so we can see this up close and personal here. I want you to select these two regions if you're working along with me, and then press Shift+Alt+Backspace here on a PC or Shift+Option+Delete on a Mac. Now, why that keyboard shortcut? Because we're filling with the foreground color; that's the Alt or Option part of the shortcut, the Shift part ensures that we're just filling the opaque regions of this layer and we're not affecting the unpainted portions of the layer.
All right, now I want you to go up to the Select menu, choose the Inverse command or press Ctrl+Shift+I, Command+Shift+I on a Mac. And now let's just get rid of all that other garbage by pressing the Backspace key or the Delete key on a Mac to send it away. All right, now press Ctrl+D, Command+D on a Mac in order to deselect the image. Let's go ahead and close out by clicking on the Close button, clicking on Yes here on the PC or the Save button on a Mac in order to see what we've managed to accomplish. And you can see now I am not painting into the head and I am just painting the horns, but I am only painting the visible portion of the horns.
So there are still those areas in back of what I am looking at, the back portion of the horns that I haven't reached so far. Now, you might ask how do we reach those details? Well, I am going to show you in the very next exercise.
- Spinning a 2D layer in 3D space
- Using basic 3D shapes
- Importing a 3D model as an OBJ file
- Exporting a 3D model to the DAE format
- Painting directly on a 3D layer
- Working with UV overlays
- Making a bump map
- Working with 3D depth maps
- The medical applications of Photoshop 3D
- Creating 3D motion effects
- Revolving objects in 3D space
- Adjusting the depth of field