Go to start of banner

# VRayBitmap

 Page Contents × /**/

This page provides information on the V-Ray Bitmap Texture, previously known as VRayHDRI.

## Overview

The VRayBitmap map can be used to load high dynamic range images (HDRI) and map them onto the environment. V-Ray supports most of the standard HDRI-environment mapping methods. Since V-Ray 2.0, this texture can also be used to load other file formats. In the example shown, the VRayBitmap has been applied to the diffuse channel of a V-Ray material.

Since V-Ray 5.0, Beta 1, VRayHDRI texture has been renamed to VRayBitmap texture.

UI Path: ||Material Editor window|| > Material/Map Browser...

||Material Editor window|| > Material/Map Browser > Maps > V-Ray > VRayBitmap

Tiled OpenEXR and TIFF Files

This texture can also be used to efficiently load tiled OpenEXR and tiled TIFF files (tiled TIFF files usually have a .tx or .tex extension). Tiled OpenEXR and TIFF files allow only portions of the textures to be loaded at various resolutions. This allows V-Ray to load only the parts of the textures that are needed for the rendering.

You can convert many common image file formats to tiled OpenEXR files using the img2tiledexr tool. You can also convert all files in a scene using the V-Ray Bitmap to VRayBitmap converter script. Conversion to tiled TIFF can be done using the maketx tool from the OpenImageIO library.

Tiled TIFF files have the advantage that they can store 8-bit color components, whereas OpenEXR stores at least 16 bits. This means that tiled 8-bit TIFF textures are smaller on the disk and take up less RAM while rendering.

## Tags and Environment Variables in Bitmap Names

VRayBitmap allows the use of named tags enclosed with the characters < and >, which are replaced at render time with other strings.

Note: Textures that have any of the render-time tags listed below, will not be resolved properly by the 3ds Max Asset Tracker (i.e. when creating .zip archives of the scene). However, they will work correctly with the V-Ray automatic transfer of assets for distributed rendering.

### Tags for Multi-Tiles

Some modeling applications allow you to specify a different bitmap file for different portions of a model based on the UV coordinates of that model. For example, one file may be used for UVs in the range [0,0] x (1,1), another file may be used for UVs in [1,0] x (2,1) and so on. There are several ways to specify the correct file for each tile, and in each case, a different format for the file name is used in the File node. This is done by using special tags in the file name, which are replaced at render time with a particular string based on the UVs of the current shading point.

In the following section, we assume that each UV tile has unique integer coordinates (u,v) based on the integer part of the UVs inside it. For example, the UV tile [0,0] x (1,1) has coordinates (0,0), the UV tile [1,0] x (2,1) has coordinates (1,0) and so on.

Upper-case tags usually assume the tile coordinates start from 1, whereas lower-case tags assume the tiles start from 0.

### Mari Tiles and the <UDIM> Tag

Mari forms the file name of textures using a four-digit number equal to 1000+(u+1+v*10). So the UV tile [0,0] x (1,1) is assigned the number 1001, UV tile [0,1] x (1,2) is assigned 1011 and so on. To specify a Mari-style tiled texture, use the <UDIM> tag in the file name, which is then replaced with the respective four digits, for example, my_texture_<UDIM>.exr becomes my_texture_1001.exr and so on during rendering.

### Mudbox Tiles and the <UVTILE> Tag

Mudbox can form the file name in many ways, but the default format is to use _uU_vV in the file name where U=u+1 and V=v+1 are the tile coordinates plus one. So the UV tile [0,0] x (1,1) is marked with _u1_v1, UV tile [0,1] x (1,2) is marked with _u1_v2 and so on. To specify this format, use the <UVTILE> tag in the file name. If you use lower case letters <uvtile> , then the tile coordinates will start from 0, instead of one, so tile [0,0] x (1,1) will be resolved to _u0_v0 and so on. For example, my_texture<UVTILE>.exr becomes my_texture_u1_v1.exr and so on during rendering.

### The $U and$V Tags

You can also specify the u and v coordinates of the tiles separately by using the $U and$V tags. Each of them is expanded to the respective 1-based coordinate of the tile. For example, if the file name is specified as my_texture_$U_$V.exr, this becomes my_texture_1_1.exr and so on. You can use lower-case tags to make the tile coordinates start from zero, instead of 1, for example my_texture_$u_$v.exr becomes my_texture_0_0.exr and so on.

### User-Defined Properties

You can specify node user properties between the < and > brackets. At render time, V-Ray takes the tag name and looks it up in the node's User Defined properties for the shaded object to determine the value of the tag. This allows a single VRayBitmap texture to use different files on different scene nodes. For example, you could specify the file name in VRayBitmap as c:\path\to\texture\<objtag>_diffuse.png and then for the objects that use the material, in their Object Properties dialogue, add a User-Defined property string with values like objtag=head or objtag=body, etc. Then during rendering, V-Ray will attempt to load and use the texture file c:\path\to\texture\head_diffuse.png for the first object and c:\path\to\texture\body_diffuse.png on the second.

## Parameters

Bitmap  – Specifies the file name from which the bitmap is loaded. Currently supported formats are HDR, EXR, PNG, BMP, TGA, SGI, JPG, PIC, TIF, PSD, VRIMG. Image file lists in the form of IFL files are also supported.

Browse – Click this button to browse for an image file.

Reload – Forces V-Ray to reload the texture from the hard drive.

Locate – Opens the folder in which the texture file is located in a new Windows Explorer window.

### Mapping

These parameters determine how the VRayBitmap texture is mapped.

Mapping type – The following mapping types are supported:

Angular – Environment mapping in angular mode;
Cubic – Environment mapping in cubic mode;
Spherical – Environment mapping in spherical mode;
Mirrored ball – Environment mapping in mirror ball mode;
3ds Max standard – The mapping type is determined by the Coordinates section.

Horiz. rotation – Allows left and right rotation of the environment map. Ignored when the Mapping type is 3ds Max standard.

Flip horizontally – Flips the environment horizontally. Ignored when the Mapping type is 3ds Max standard.

Vert. rotation – Allows up and down rotation of the environment map. Ignored when the Mapping type is 3ds Max standard.

Flip vertically – Flips the environment vertically. Ignored when the Mapping type is 3ds Max standard.

Mapping source – Provides control over the UV mapping of the VRayBitmap texture from another map. Use either another VRayBitmap map (see the Coordinates example) or any texture with Coordinates rollout (e.g. Checker) to feed all its Coordinates parameters values. Use VRayTriplanarTex and VRayUVWRandomizer maps to benefit from their enhanced mapping options.

Multiple VRayBitmap maps can use the same map as Mapping Source and this way simultaneously control their tiling, offset, rotation and other mapping features.

See the example here

Axial Rotation is accessible only through MaxScript from the command .axialRotation : angle.

### Ground Projection

These controls allow you to "flatten" the bottom part of an environment map onto a virtual plane. This is useful for rendering CG objects when you only have an environment map.

Note: The ground projection only works for environment maps; it doesn't work if the texture is assigned to a dome light.

On – Enables or disables the ground projection.

Position – The X, Y and Z coordinates of a point in 3D space where the center of the environment map is projected.

Radius – Specifies a projection radius. Can be used to control the "scale" of the projection.

### Example: Ground Projection

When Ground projection is disabled, though it almost looks like the teapot is sitting on the planks the perspective doesn't match. When Ground projection is enabled, the illusion that the teapot is sitting on the planks is more convincing as the perspective matches.

Disabled
Enabled

### Processing

Overall multiplier – A control for the overall brightness of the image. This multiplier affects both rendering and the material editor.

Render multiplier – Controls the brightness of the loaded image only when rendering; it has no effect on the display of the image in the material editor.

Interpolation – Determines how the image is interpolated from the pixel values. See the Examples for a demonstration of this effect. Possible values are:

Bilinear – Image values are interpolated from four pixels in the bitmap. This is the fastest interpolation method, but the result is not continuous (non-smooth) and may produce artifacts when the map is used for displacement or bump mapping.
Bicubic – Image values are interpolated from sixteen pixels in the bitmap. This is the slowest method, but the results are smooth without too much blur.
Biquadratic – Image values are interpolated from nine pixels in the bitmap. This method is faster than the Bicubic interpolation, but may smooth the image too much.
Default  – Interpolation type is chosen automatically depending on the bitmap format to match the behavior of the standard 3ds Max Bitmap texture. For HDR and EXR images, the interpolation is Bilinear, and for all other formats - Bicubic.

Filter mult. – Additional multiplier which controls filter blurring, especially useful with the mapping source feature. The higher the value, the more blurred the texture renders and the less render time it takes, and vice versa. A value of 0.01 means no filtering, but leads to increased render times. If a Bitmap is connected to the VRayBitmap as a mapping source, the Filter multiplier option serves as a multiplier for the Blur parameter of the Bitmap. For example, if the Bitmap Blur parameter is set to 10, and the VRayBitmap Filter multiplier is set to 0.1, the texture blur amount is effectively, 1.

Filtering – Specifies the V-Ray internal texture filtering method. See the Filtering examples below. Possible values are:

Isotropic – Pyramidal MIP map filtering is used to compute the texture color. Can be blurry for textures seen at grazing angles.
Elliptical – High quality anisotropic MIP map texture filtering that reduces blurring and aliasing artifacts. Can be slower compared to the Isotropic filtering.
Sharp Isotropic – Sharper and more accurate version of the isotropic filtering. Produces results that are closer to the results with disabled filtering but with less AA samples required.

### Example: The Interpolation Parameter

This example shows the effect of the different interpolation methods. The images below show a teapot displaced with this texture:

Displacement texture

Zoomed displacement texture with pixel boundaries shown

Notice how the different interpolation methods produce slightly different results with different smoothness.

Interpolation is Bilinear

Interpolation is Bicubic

### Example: Filtering

This example compares the three types of Filtering with switched off Filtering (Filter Multiplier set to 0,01). The Filter mult. parameter is set to 1 (the default value) for the three Filtering options.

No Filtering

Isotropic Filtering

Elliptical Filtering

Sharp Isotropic Filtering

### Crop/Place

The controls in this group let you crop the texture or reduce its size for custom placement. Cropping a texture means reducing it to a smaller rectangular area than it originally had. Cropping doesn't change the scale of the texture.

Placing a texture lets you scale the map and place it anywhere within its tile. Placing can change the texture's scale, but shows the entire texture. The four values that specify the placement and size of the cropping or placement region are all animatable. Cropping and placement settings affect the texture only as it's used for this map and any instances of the map. They have no effect on the texture file itself.

On – Turn on to use the cropping or placement settings.

Crop – Enables cropping.

Place – Enables placing.

Preview – Opens a preview window with a red rectangle for the crop/placement.

U/V – Adjusts the texture location - specifies the location of the top left corner of the image.

Width/Height – Adjusts the width and height of the texture or crop area.

### RGB and Alpha Source

These controls allow the user to specify how the color and alpha of the resulting texture are derived.

RGB output – Specifies the source for the color of the texture:

RGB color – The normal texture color;
Alpha as gray – The color of the texture is the alpha channel converted to a grayscale color;
Intensity as gray – The texture converted to grayscale colors based on the intensity of the colors (red+green+blue)/3

Alpha source – Determines how the texture alpha is computed:

Image alpha – From the alpha channel of the bitmap image, if present (and 1.0 if the image has no alpha channel);
Intensity – The alpha is taken from the intensity of the bitmap image colors (red+green+blue)/3;
None (opaque) – The alpha channel of the bitmap image is ignored and the VRayBitmap texture always returns 1.0 for alpha.

Mono output – Determines the value of the texture when used as a floating-point texture (e.g. for glossiness values in materials, amount values, opacity values etc.):

RGB intensity – The mono output is taken from the bitmap color intensity (red+green+blue)/3;
Alpha – The mono output is taken from the bitmap alpha.

### Color Space

Type – Specifies the color space for the loaded image file.

None – No correction is applied;
Inverse gamma  – The color space is controlled through the Inverse Gamma parameter.
sRGB  – The loaded image is considered in sRGB color space;
From 3ds Max – The gamma is controlled from 3ds Max gamma settings (Customize -> Preferences -> Gamma and LUT).
Auto – Automatically determines the color transfer function. If a bitmap file name contains the string "_srgb" the transfer function is sRGB. If a bitmap file name contains the strings "_lin_srgb" or "raw", no correction is applied. For bitmap files with 8 bits per color component and 3 or 4 color components (like png, jpg and other), the transfer function is sRGB. In all other cases, no correction is applied.

Inverse gamma – A gamma–correction value for the image. For example, if the bitmap was saved to disk with a 2.2 gamma correction, you need to enter 0.4545 to remove that correction for the rendering.

### Viewport

Use full resolution for viewport – When enabled, ignores the requested viewport resolution and uses the bitmap resolution instead. This allows high-quality previews for specific maps regardless of the Max viewport settings.

### UDIM/UVTILE preview in material editor

These options allow you to specify which UV tile will be used to texture the material in the material preview when either UDIM or UVTILE texturing is used.

## Time

These options allow you to control animated textures. Currently it works only with IFL sequences.

Start Frame – Specifies the beginning of the texture animation. The frame number specified here will be played at the first frame of the scene animation.

Playback Rate – Controls the animation speed of the texture as fraction of the actual animation speed. A value of 1 means that the texture animation will run at regular speed. A value of 2 means that the texture animation will run twice as fast as the scene animation.

End Condition – Allows you to control what happens when the last frame of the animated texture is reached. The available options are:

Loop – The animation will start again from the frame specified in the Start Frame option;
Ping-pong – The animation will be played backwards until it reaches the frame specified in the Start Frame option and then play forward again;
Hold – The animation will stop at the last frame and it will be displayed until the end of the scene animation.

## RGB color space

RGB primaries – Allows you to manually override the RGB primaries of the VRayBitmap.

Default When Auto RGB primaries for VRayBitmap textures option in Render Setup > Color Management tab is enabled, the color space is deduced by the file's name. When it is disabled, no transformation is applied to R|G|B colors;
sRGB primaries – The loaded image is considered in sRGB color space;
ACEScg primaries The loaded image is considered in ACEScg color space;
Raw No transformation is applied to R|G|B colors. This option is suitable for normal maps.

## Coordinates

The Coordinates parameters are used when the Mapping type is set to  3ds Max standard. They are the regular 3ds Max mapping parameters as found in the standard 3ds Max Bitmap texture.

The Coordinates rollout parameters of the VRayBitmap can be overridden by another map if it is connected as a Mapping source.

In this example, VRayBitmap #8 overrides the Coordinates rollout parameters of the other two VRayBitmap maps as it serves them as a Mapping source.

In Map #6 the Tiling is set to 5.5 and in Map #7 the Tiling is set to 2.2. VRayBitmap Map #8 overrides the Coordinates parameters of both VRayBitmap maps. It sets their Tiling to 3.3 and W rotation to 45 degrees as in its Coordinates rollout.

## Bitmap to VRayBitmap converter

V-Ray includes a MaxScript tool for converting standard 3ds Max Bitmap textures to VRayBitmap textures, with the option to automatically convert the texture files to tiled OpenEXR files. The tool can be invoked by right-clicking in any viewport and selecting V-Ray Bitmap to VRayBitmap converter. For more details, please see the V-Ray Bitmap to VRayBitmap Converter Tool page.

## Notes

• Since V-Ray version 2, VRayBitmap will load the texture the first time it is needed during the actual rendering, rather than at the start of a frame. Textures that are not needed (for example, because their materials are not needed for the particular camera angle) will not be loaded at all.

• When using tiled OpenEXR or TIFF textures, it is recommended to turn on the Filter maps for GI option in the Global Switches section; otherwise V-Ray will be forced to almost always load the most detailed version of the texture.