Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: changed the examples with newer

...

This example shows the difference between bump mapping and displacement mapping. Notice the round outline of the sphere and its shadow in the case of bump mapping, and the deformed outline produced by the displacement:

 

 

Section
Column
width10%
 
width40%columnwidth40%
Column
Before after
afterLabel
Image Removed Bump mapping
Displacement
 
beforeLabel
Bump
Panel

Image Added

Image Removed Displacement mapping
Panel
 

Image Added

 
Column
width10%

 

 

...

 

Inputs

...

The VRayDisplacement node has two inputs:

...

Anchor
edgeLength
edgeLength

...

 

Example: Edge Length 

 

This example shows the effects of increasing the Edge length parameter. In this example View-dependent is enabled, so Edge length is expressed in pixels. In the examples, the closeup view is a blow-up rather than a zoomed view. This means that Edge length in the closeup view refers to pixels in the original image, not the blow-up rendering. Click the images for a larger view.

The image below was rendered

...

with a VRayEdgesTex map in the Diffuse slot of the material to show the original triangles of the mesh.

...

Additionally, we turned on the Faceted option in the VRayMtl. V-Ray

...

not only

...

smooths the surface normals, but

...

also automatically

...

applies a normals map that represents the normal of the perfect displaced surface, which

...

makes the surface look a lot more detailed than it actually is.

...

View-dependent is turned on, and it refers to pixels in the original image, not the zoomed-in image you get with a blow-up rendering. This is why we were able to do a blow-up rendering to see the individual subtriangles better. Click the images for a larger view:

...

section
Section
Column
width50%10%

Image Removed Edge Length 0.5

 
width50%
Column
Image slider
minLabel
Image Removed
Edge Length
0.5
Close up view
 
startIndex
column
2
Column
width50%
maxLabel10
Image Removed
Edge Length 1
.0
 
Panel
borderStyle
width50%

Image Removed
Edge Length 1.0 Close up view

 

Section
Column
width50%

Image Removed
Edge Length 2.0

 

Column
width50%

Image Removed
Edge Length 2.0 Close up view

 

Section
Column
width50%

Image Removed
Edge Length 5.0

 

Column
width50%

Image Removed
Edge Length 5.0 Close up view

 

Section
Column
width50%

Image Removed Edge Length 10.0

 

Column
width50%

Image Removed Edge Length 10.0 Close up view

 

 

 

 

 

none

Image Added Image Added

Edge length = 0.5

Panel
borderStylenone

Image Added Image Added

Edge length = 1.0

Panel
borderStylenone

Image Added Image Added

Edge length = 2.0

Panel
borderStylenone

Image Added Image Added

Edge length = 5.0

Panel
borderStylenone

Image Added Image Added

Edge length  = 10.0

Column
width10%

 



...

 

Displacement Control rollout

...

Note that the Displacement Shift parameter is an absolute value in world units. If you change the Displacement Amount, you will probably need to adjust the Displacement Shift too.

...

Section
Column
width5%25%

 

columnwidth30%columnwidth30%
Column
width30%50%
Image Removed Displacement
Image slider
minLabel-10.0
startIndex2
maxLabel10.0
Panel
borderStylenone

Image Added

Shift = -10.0

Panel
borderStylenone

Image Added

Shift = -5.0

 
Panel
borderStyle
none

Image Added

Image Removed Displacement

Shift = 0.0

 
Panel
borderStyle
none

Image Added

Image Removed Displacement

Shift =

 5

5.0

 

Panel
borderStylenone

Image Added

Shift = 10.0

Column
width5%25%

 

 

Anchor
keepContinuityOPtion
keepContinuityOPtion

...

Example: Keep Continuity

 

The Keep Continuitycontinuity option is useful for objects with disjoint normals on neighboring triangles, usually because of different smoothing groups. In the middle image below you can see the edge splits produced by disjoint normals. Using the Keep Continuity option continuity option avoids this problem. This option will also help to produce a smoother result across material ID boundaries for objects that have been assigned Multi-Sub-Object materials

 

Section
Column
width5%25%

 

columnwidth30%
Column
width30%50%
Image Removed
Image slider
startIndex1
Panel
borderStylenone

Image Added

No displacement

 
Panel
borderStyle
none

Image Added

Image Removed Keep Continuity is off

 

Keep continuity = disabled

Panel
borderStylenone

Image Added

Keep continuity = enabled

Column
width30%

Image Removed Keep Continuity is on

 

Column
width5%25%

 

 

Anchor
enableWaterLevel
enableWaterLevel

...

Example: Water Level

 

The Water Level parameter level parameter is absolute in world units. If you change the Displacement Amount and/or Displacement Shift values, you will probably need to adjust the Water Level to get the same effect. For this example, the Displacement  Amount parameter is  is set to 5.0 and the Displacement Shift parameter to 5.0 and Shift is set to 0.0.

...

Note that when Water level reaches Amount + Shift, all geometry is clipped.

section
Section
Column
width25%

 

columnwidth50%
Column
width50%
Image slider
minLabel0.0
startIndex2
maxLabel5.0
Panel
borderStylenone

Image Added
Water level
  0.0 

Image Removed
Water Level = 0.0

(no clipping)

 
Panel
borderStyle
none

Image Added

Image Removed

Water

Level 

level =

 1

 1.25

 

columnwidth50%columnwidth50%
Panel
borderStyle
none

Image Added

Image Removed

Water

Level

level =

 2

 2.5

 

Panel
borderStyle
none
Image Removed

Image Added
Water

Level

level = 3.75 

Panel
borderStylenone

Image Added

Water level = 5.0 (all geometry is clipped)
Column
width25%

 

 

 

Anchor
textureBoundaries
textureBoundaries

...

This example shows a plane mapped with a displacement map that has negative values. With the default boundaries for the displacement , (from 0 to 1) we are unable to see the geometry displaced in the negative direction. However, once we set the custom boundaries to -1 and 1 we we set Min and Max values to -1 and 1 respectively, we can see the displaced geometry in both the positive and negative direction.

 

Section
Column
width50%25%

Image Removed
Min value = 0; Max value = 1

 

Column
width50%
Before after
afterLabel-1/1
beforeLabel0/1
Panel
borderStylenone

Image Added

Panel
borderStylenone

Image Added

Image Removed
Min value = -1; Max value = 1
Column
width25%

 

 

 

...