---
title: "Displacement in Blender"
canonical: "https://rmanwiki-25.pixar.com/space/RFB25/21561920/Displacement%20in%20Blender"
format: markdown
---
To render displacement on your geometry in RenderMan for Blender, use the [PxrDisplace](https://renderman.atlassian.net/wiki/spaces/REN20/pages/21561423) node.

## Adding PxrDisplace


The main parameters you will probably be working with are:

- **Gain**: <span style="color: #000000">Gain for the displacement. If it is zero, there will be no displacement. </span>
- **Scalar Displacement**: <span style="color: #000000">Scalar displacement input. This is a float displacement.</span>
- **Vector Displacement**: <span style="color: #000000">Vector displacement input. Vector displacement data is a three channel data file,  XYZ.</span>

There are also some utility patterns for displacement:

- For transform related functions use the [PxrDispTransform](https://renderman.atlassian.net/wiki/spaces/REN20/pages/21561663) pattern.
- For displacement layering, use either [PxrDispScalarLayer](https://renderman.atlassian.net/wiki/spaces/REN20/pages/21561712) and [PxrDispVectorLayer](https://renderman.atlassian.net/wiki/spaces/REN20/pages/21561702) pattern.

## Avoiding cracks on polygonal meshes


Here's a before and after with displacement attached to a cube mesh.

> ⚠️ "Prevent polygon cracking" should only be enabled when necessary as it uses a bit more memory. The amount used is proportional to the number of vertices in the mesh.