Making a Bumpmap

Hi, I was wondering how to render but make it a black and white image where white is the stuff up close, and the black stuff is the stuff far back.

create a texture, like clouds, and Map To Nor, not Col.

1 Like

What?? I meant make one, not use one. How do you make a black and white image showing the depth of the scene.

xxxxxxxxxxxxxxxxxxx

yes, you want a Z-depth map, like the one shown in the viewer node in http://mediawiki.blender.org/index.php/Manual/Compositing_Blur_the_Background#Blurring_the_Background_of_a_Scene

Hook up the output of the ColorRamp to a Composite Output node, and then render with Do Composite turned on. enjoy! To vary where the blackness/whiteness starts and ends, change the setting in the Map Value node. See the wiki on how to use that node.

I’ve tried doing that but it always comes out as a solid white color.

The way with the open exr images works great, the only problem is the huge file sizes, and I’m making an animation!!! (I think it’s about 100 frames)

ok, you have to pay attention to the scale factor. Read the section on “get out your calculators” to compute what that factor needs to be based on the depth of your scene. If your scene is 10 blender units deep, it needs to be .1, and your offset needs to be the depth of what you want starting off. Read the “Blur your background” wiki doc to see what I mean, and to see specific examples of what values to use where. The fact that you get a white image is a good start; all you have to do is tweak the Map Value node settings.

xxxxxxxxxxxxxxxxxxxxxx

Thanks! I think I’ll try RogerWickes method first.

I found an easier method if anybody cares. You render an image. Then you hold down the mouse button over the image to get the z value. I just think that’s an easier way to get your offset and size calculations. (for size, you still have to use the inverse of it, and the offset should be *-1)

If you don’t want to render, you can get ballpark mapping values in the 3d window by displaying the camera’s clipping range and adjusting the start/end parameters. It’s basically using the camera settings as a rough ruler.