Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page provides information about the Displacement in V-Ray for Rhino.

 

Overview

...

Displacement mapping is a technique for adding detail to your scene geometry without having to model it first. The concept is very similar to bump mapping. However, bump mapping is a shading effect that only changes the appearance of a surface, while displacement mapping actually modifies the surface.

...

 

...

 

UI

...

Paths

...

Section
Column
width5%


45%
Column
width
25%

||V-Ray Asset Editor||

Geometries 

> Geometry (right-click)

 >

 > Displacement

||V-Ray Asset Editor||

 > Create Asset > Geometries >

Create Asset (left-click) > Geometries Displacement

Image Modified

Column
width5%

 

45%
Column
width
30%

||V-

Ray Objects Toolbar

Ray Objects Toolbar||

 > Displacement (left-click) > Add Displacement properties to the selection

 (left-click)

||V-

Ray Objects Toolbar

Ray Objects Toolbar||

> Displacement (right-click) > Remove the Displacement properties

form

from the selection

 (right-click)

Image Added


Image Removed

 

 

||

V-Ray

>

|| > V-Ray Objects

>

 Add Displacement to Selection

Image Removed

Image Added

Column
width5%

 

 

 

Workflow

...

Section
Column
width60%

Create and apply Displacement to the selection . You can use any of the ways shown in the UI path section.

Here Displacement is created from the Asset Editor and applied to the selection.

Then, select the Bitmap as a Map and load a proper file (e.g., .exr). Make sure to select the proper Mode for the loaded map.

The result is seen upon rendering.

Column
width5%
 
Column
width35%
HTML
 <iframe width="560" height="315" src="https://www.youtube.com/embed/-DBjjv6wlfo" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

 

 

Parameters

...

Section
Column
width60%

Enabled – Turns on/off displacement.

Mode/Map – Specifies the mode in which the displacement is rendered:

Normal Displacement – Takes the original surface geometry and subdivides its triangles into smaller sub-triangles which are then displaced.
2D Displacement – Bases the displacement on a texture map that is known in advance. The displaced surface is rendered as a warped height-field based on that texture map. The actual raytracing of the displaced surface is done in texture space, and the result is mapped back into 3D space. The advantage of this method is that it preserves all the details in the displacement map. However, it requires that the object has valid UV coordinates. You cannot use this method for 3D procedural textures or other textures that use object or world coordinates.

Amount – Specifies the amount of displacement. A value of 0.0 means the object appears unchanged. Higher values produce a greater displacement effect. This value can also be negative, in which case the displacement pushes geometry inside the object.

Shift – Specifies a constant which will be added to the displacement map values, effectively shifting the displaced surface up and down along the normals. This value can be either positive or negative. See the Shift example below.

Keep Continuity – When enabled, V-Ray tries to produce a connected surface. Use it when you get splits (usually around sharp edges) in the displaced geometry. See the Keep Continuity example below.

View Dependent – When enabled, the Edge Length parameter determines the maximum length of a sub-triangle edge, in pixels. A value of 1.0, for example, means that the longest edge of the resulting mesh will be about 1 pixel long (when projected on the screen). When disabled, the Edge Length value is the maximum sub-triangle edge length in world units.

Edge Length – Determines the quality of the displacement. The behavior of this parameter depends on the View Dependent parameter above. Note that each triangle of the original mesh is divided into sub-triangles. More sub-triangles mean more detail in the displacement, slower rendering times and more RAM usage. Less sub-triangles mean less detail, faster rendering and less RAM. See the Edge Length example below.

Max Subdivs – Controls the maximum number of sub-triangles generated for every triangle of the original mesh. The maximum number of sub-triangles can be calculated by squaring this value. For example, a value of 256 means that at most 256 x 256 = 65536 sub-triangles will be generated for any given original triangle. It is not a good idea to increase this value much higher than 256. If that's required, it will be better to tessellate the original mesh.

Resolution – Determines the resolution of the displacement texture used by V-Ray. If the texture map is a bitmap, it would be best to match this resolution to the size of the bitmap. For procedural 2d maps, the resolution is determined by the desired quality and detail in the displacement. Note that V-Ray will also automatically generate a normal map based on the displacement map, to compensate for details not captured by the actual displaced surface.

Water Level – Turns on/off water level.

Level Height – Specifies a value below which the geometry will be clipped. See the Height Level example below.

Column
width5%

 

Column
width35%

...

 

 

Displacement in Rhino Properties Panel

...

Section
Column
width60%45%

The button creates new Displacement.

The button opens the Geometries panel of the selected Displacement asset in the V-Ray Asset Editor.

Make Unique – Makes the selected instance of a Displacement unique. It creates a new Displacement item in the Asset Editor that is linked only to the selected object.

Select Instances – Selects all objects that have an instance of the same Displacement in the viewport.

Column
width5%

Column
width35%50%

 

 

 

Anchor
shift
shift

...

Example: Shift

...

Section
Column
width25%

 

Column
width50%
Image slider
startIndex1
Panel
borderStylenone

No displacement

Panel
borderStylenone

Keep Continuity = disabled

Panel
borderStylenone

Keep Continuity = enabled

Column
width25%

 

 

 

Notes

...

Fancy Bullets
typecircle
  • The 2D mapping (landscape)  method only supports one UV mapping channel.
  • Starting with V-Ray 5.20.01, V-Ray special objects (Fur/Clipper/Displacement/Mesh Light/Scatter) are not deleted from the Asset Editor, when the last item with the corresponding special object assigned to it, is deleted from the viewport.

...