VRayScene

This page provides information on the VRayScene node.

This feature is still undergoing development.

Overview

VRayScene allows for assets to be shared between all platforms that run V-Ray. It loads a previously saved .vrscene file into V-Ray for 3ds Max and supports rendering geometry and materials. In addition, it allows you to load scene overrides from a .vrscene file.

VRayScene can also be used to load a USD file. For more information on USD in V-Ray, see the USD page.

To learn how to export a .vrscene file, refer to the V-Ray Scene Exporter page.

UI Path: ||Command panel|| > Create tab > Geometry > VRay category > VRayScene

images/download/attachments/60099046/Max2020_VRay5_VRayScene_UIpath_CreatePanel.png

A V-Ray Scene can also be loaded by dragging and dropping a .vrscene file directly in your viewport.

Parameters

Enabled – Enables or disables loading of the .vrscene.

File (*.vrscene) – Allows you to browse for and specify the .vrscene file. Please note that you can also load a V-Ray Scene by dragging and dropping a .vrscene file directly in your viewport.

Load mode – Specifies how to load the .vrscene file.

All – Loads the .vrscene file with all its geometry, lights, shading, volumes, etc.
Geometry – Loads the .vrscene file with geometry and shading only.

Geometry Load Mode has several advantages:

  • the instanced scene uses much less memory;

  • much faster render times;

  • makes possible of billions of instances of a geometry.

Flip Axis – Controls which axis is used as a vertical - the Y or Z axes for the loaded vrscene. You can choose between:

NoneNo changes in the axes are applied.
Auto – It aligns the vertical axis of the vrscene with the vertical axis in the scene in cases where the vrscene was not exported from 3ds Max. Use the Auto mode when loading a USD file.
Flip – Switches the Y and Z axes.

Scale – Allows the vrscene or USD to be quickly scaled up or down.

Add Lights – When enabled, uses any lights in the .vrscene file.

Animation

Use Anim. Overrides – Enables Animation overrides.

Playback – Specifies how to read the animation in the .vrscene.

Loop Plays the entire animation, then restarts on the initial frame.
Play once Plays the animation once, then displays the last frame of the animation for all further frames.
Ping-pong When the end of the animation is reached, the animation is reversed.
Still – Displays only one frame.

Start Sets the frame for the first frame of the animation.

Length Sets the length of the animation. If this value is less than the total number of frames, the animation is clipped. If it is greater than the number of frames, the Type option determines how the extra frames are interpreted.

Offset Shifts the start frame.

Speed – Speed multiplier for the animation. A value of 1 plays the animation at normal speed.

Scene Overrides

Use Scene Override – Enables the scene override.

From File (*.vrscene) – Allows you to specify a .vrscene that will be used for the scene override.

Edit Override Snippet – Launches an editor window that allows code snippets for editing the scene override settings. Note: A material from 3ds Max's Material Editor can be selected by name from this window and used as an override material if desired. This material must have been directly assigned to the VRayScene node, or assigned to the VRayScene node with a Multi/Sub-Object material.

Snippet Examples:

Example: Material Override
//Material Override Example
 
//Override object's assigned material
Node <Sphere001*>{
material=Asphalt;
Example: Disable Light
//Light Override Example
 
//Disable a light
LightRectangle <VRayLight001*>{
enabled=0;
Example: Object Visibility
//Object Visibility Example
 
//Make an object invisible
Node <Teapot001*>{
visible=0;

images/download/attachments/60099046/Max2022_52000_VRayScene.png

Viewport Parameters

Draw Lights – Enables the lights to be drawn in the viewport.

Draw Hair – Enables hair to be drawn in the viewport.

images/download/attachments/60099046/Max2020_VRay5_VRayScene_ViewportPreview_rollout.png