Versions Compared

Key

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

This tutorial covers how to create rock objects with VRayTriplanarTex texture.

 

Overview


Section
Column
width50%

This tutorial covers the standard setup for using the VRayTriplanarTex texture node to create rocks. Here, we use stone-shaped geometries with a VRayMtl assigned to them. With the help of the VRayTriplanarTex node we will map all our VRayBitmap textures seamlessly. For more information on the node itself, see the VRayTriplanarTex page.

Column
width5%

 

Column
width45%

Step 1


Section
Column
width50%

Let’s create a VRayMtl and assign it to the stone geometries. Name it Rock for ease of use.

Then, create a VRayBitmap map and load a stone texture. Link the VRayBitmap to the Diffuse map slot of the VRayMtl.

Plug in additional necessary textures (Normal Map and Reflection Glossiness Map).

Set Reflection Color to gray. Darker shades of gray make the rock look less reflective, while brighter shades of gray achieve a shinier/wet rock.

Column
width5%

 

Column
width45%

 


 

Section
Column
width50%

Here's the result. We can further adjust the texture with the help of a VRayTriplanarTex.

Column
width5%

 

Column
width45%

Step 2


Section
Column
width50%

Now, create a VRayTriplanarTex texture and link it to the Mapping Source slot of the textures. The VRayTriplanarTex eliminates the need to fix the UV mapping of the stone geometry and the misalignments at the UV map’s edges, caused by lack of or bad unwrapping.

Make sure the Texture mode of the VRayTriplanarTex is set to Same texture on all axes. Texture mode set to Different texture on each axis can be used in other cases, where different textures are projected along each axis.

 

Column
width5%

 

Column
width45%

 


 

Section
Column
width50%

Adjust the Size of VRayTriplanarTex. Here we use different values.

In our case, we can leave the Blend amount at its default value. Changing it could give better results in other cases (e.g. when using more than one texture), making the transition between the used textures smoother.

 

Column
width5%

 

Column
width45%
Image slider
Panel
borderStylenone

Size = 2

Panel
borderStylenone

Size = 4

Panel
borderStylenone

Size = 7

Align
aligncenter

Move the slider to see the example renders.

 


Final Image

 

Here's the final image with the Size parameter set to 4:

 

Section
Column
width15%

 

Column
width70%

Column
width15%