![renderman tutorial normal maps hypershade renderman tutorial normal maps hypershade](https://renderman.pixar.com/resources/RenderMan_20/images/risExamples/lmLayerNetwork.png)
Polygons like to come apart when displaced, so convert to a Subdivision Surface. This is also a good choice when using displacement. This reduces possible tearing and improves the look of characters and organic objects seen up close. RenderMan is designed to render subdivision surfaces when possible for animated characters and hero objects. Props - These are often kept as simple as possible, you'd be amazed at how good texturing can take a low-detail asset and make it look quite nice!.Set assets - These may have varying levels of detail based on where they are in a scene.Hero assets - Things like main characters and the focus of a shot or story.When creating assets, it's important to understand which objects fall into certain categories and model their detail accordingly: We'll dissect each object and its shading first. The scene recreates studio lighting as well as organic objects and adds depth of field for better realism. Note that too large of a displacement bound can cause an object to consume more memory than needed, so the tightest displacement bound possible is recommended.įor more information on displacements see: Bump and Displacement Shaders.This tutorial expands on the instructions set forth in Harsh Agrawal's Community Site version and focuses on look development and lighting. Generally, a good value to start with is the farthest distance an object may be displaced, as measured in default Maya units, and adjust from there. The correct setting will vary depending on the size of your object in world space. Open this tab and adjust the Displacement Bounds attribute. Now that you've added displacement attributes they will appear at the bottom of the shader under the Extra RenderMan Attributes tab. Open the displacement shader in the Attribute Editor.Īttributes-> RenderMan-> Add Displacement Attrs
![renderman tutorial normal maps hypershade renderman tutorial normal maps hypershade](https://renderman.pixar.com/resources/RenderMan_20/images/2016-5prefs.jpg)
You can do this by following these steps: If you need to adjust displacement bounds, simply add the RenderMan displacement attributes to the shader. The solution in this case is to increase the bounding box. If a displacement shader pushes an object outside of its bounding box, you will see that part of the displacement is being clipped, like in this image: The bounding box determines when the object is loaded by RenderMan. Displacement bounds set up a bounding box around the object, for use when the object is rendered. The most important concept is displacement bounds. While RenderMan displacements are both detailed and fast, there are a couple of issues that you should be familiar with. For instance, in the image below an otherwise flat plane has been made more interesting by adding an animated wave displacement (and ray traced refractions): By pushing fine details into a displacement shader (using either procedural functions or texture maps), 3D objects can be modeled with less detail, which can be a big benefit when working with large datasets and complicated geometry. First, select the geometry, then, in the Attribute Editor, go to the Attributes menu and select RenderMan > Manage Attributes, select Trace Displacements from the left-hand column of the Add/Remove Attributes window, and click on the Add button.ĭisplacements can be used to create detail efficiently in a scene without adding modeling detail. In order for your displacements to be visible in reflections and/or refractions, you will need to add the Trace Displacements attributes to your shape. Now we've got a lot of displacement, as we see in the image below.
![renderman tutorial normal maps hypershade renderman tutorial normal maps hypershade](https://static.wixstatic.com/media/a27d24_813c1d18b19d47afb575152c3aaef1c4~mv2_d_3360_2100_s_2.png)
When you've attached the displacement shader, render the scene again:
![renderman tutorial normal maps hypershade renderman tutorial normal maps hypershade](https://i.ytimg.com/vi/FjzWDpvYnXg/maxresdefault.jpg)
Next attach the Maya Material, funky_displacement, to the ground. Notice the amount of detail that the displacement shader can quickly create on very basic geometry - even the shadow is displaced. Now you should get an image with some nice displacement, like this: Once you've attached the displacement shader, render the scene again: This Material network has already been constructed for you and can be found in the Maya HyperShade. Next attach the Maya Material, funky_displacement, to the teapot. You should get an image like the one below: Render the Maya scene, displacements.ma, with RenderMan: To get started, let's open the Maya scene, displacements.ma.