This page provides information on Triplanar Texture Mapping.
The VRayTriplanarTex texture allows quick assignment of bitmap and other 2D textures on objects that don't have suitable UV coordinates. The texture works by projecting one or more textures along the object-space axes depending on the surface normals of the shaded object. In the example shown here a metal texture was used in the diffuse channel on all 3 axis.
The texture works both for colors and bump maps.
UI Path: ||Material Editor window|| > Material/Map Browser > Maps > V-Ray > VRayTriplanarTex
texture mode – Specifies whether to use one or three textures for the different projection axes.
Same texture on all axes – Projects the same texture along each local axis.
Different texture on each axis – Uses a different texture along each axis.
texture – Specifies the texture to project. When the texture mode is Different texture on each axis, this is the texture for the X axis.
texture y – Specifies the texture to project along the Y axis when the texture mode is Different texture on each axis.
texture z – Specifies the texture to project along the Z axis when the texture mode is Different texture on each axis.
scale – Adjusts the scale of the texture.
blend – Controls the blend between the different projections. Lower values produce sharper transitions between projections.
frame offset – Moves the point relative to which the textures are projected. The 3D space for this offset depends on the space parameter.
texture rotation – Specifies rotation (in degrees) for the projected textures around the respective projection axis. If random texture rotation is enabled, non-zero components of this parameter specify increments for the rotation.
space – Specifies the projection space:
Local object – The projection is done in local object space. When the object is moved/rotated/scaled, the texture moves with it.
Reference to another node – The projection is done in the local space of another node in the scene. If no node is specified, world space is used. This mode is useful when several objects need to be mapped with the same triplanar texture and to show consistent mapping.
reference node – If space is set to Reference to another node, this specifies the node from the scene. If no node is specified, world space is used.
random texture offset – Randomizes the texture offset based on the random mode.
random texture rotation – Randomizes the texture rotation based on the random mode. The rotation can be locked to specific increments (i.e. 45 degrees only, or 90 degrees only) by setting the texture rotation components to the desired increments for the different axes.
random frame rotation – Randomly rotates the entire projection space based on the random mode.
random axis – Randomly permutes the projection axes based on the random mode.
random mode –Specifies how to generate the random seed needed for the various randomizations:
By face ID – Computes the seed based on the face material ID of the mesh;
By render ID – Computes the seed based on the render ID of the objects.
Example: Texture mode
texture mode is same texture on all axes
texture mode is different texture on each axis
and different textures were specified for the X, Y, Z axes
scale is 0.01
scale is 0.005
scale is 0.02
blend is 0.1
blend is 0.0
blend is 0.3
Example: Texture rotation
texture rotation is 0, 0, 0
texture rotation is 30, 0, 0
texture rotation is 0, 30, 0
texture rotation is 0, 0, 30
This example shows the effect of the space parameter; the texture used for the projection is a radial gradient map.
space is Local object; the gradient is mapped separately on each sphere
space is Reference to another node; the node is a Dummy helper placed in the middle of the spheres.
space is Reference to another node; the Dummy helper is moved to the leftmost column of spheres.
This example shows the effect of the different randomization options; the random mode is set to By render ID and the space is Reference to another node.
random texture offset is enabled
random texture rotation is enabled
random frame rotation is enabled
random axis is enabled
- When using V-Ray RT CUDA, the VRayTriplanarTex works fine for bump with bitmaps only. If other maps are incorporated in it, then you will have to add a VRayColor2Bump map directly in the bump slot of the material (and pass the VRayTriplanarTex through it) to make it work properly.
- If you wish to use a VRayNormalMap with VRayTriplanarTex in a material, assign the VRayNormalMap to the VRayTriplanarTex texture node and then use the VRayTriplanarTex in your material. Linking in the other direction is not recommended.