mental_ray_renderer - superclass: RendererClass; super-superclass:MAXWrapper - 170:2 - classID: #(1492548972, 1338981315)
Topic Navigation | |
---|---|
Renderer Tab |
Global Illumination Tab |
Rendering Algorithms Rollout | |
Shadows & Displacement Rollout | Processing Tab |
Diagnostics Rollout | |
String Options Rollout |
|
Not in the UI |
|
This class represents the mental ray renderer.
It lets you construct an instance of the mental_ray_renderer class to be assigned to the Current, Production and Material Editor renderers using the renderers structure.
Get/set the Soft Shadows Precision multiplier value.
Note that the value is exposed to the User Interface as a drop-down list, but the MAXScript exposure allows arbitrary floating point values to be used. If the value assigned via MAXScript does not match any of the items on the drop-down list, the list will display its first entry (0.125), but the internal value will be used instead. For example, 1.0 will set the list to the entry 1, but 1.1 will set the list to 0.125, while the multiplier will be internally 1.1.
Available in 3ds Max 2010 and higher.
Get/set the Glossy Reflection Precision multiplier value.
Available in 3ds Max 2010 and higher.
<mental_ray_renderer>.UnifiedEnable BooleanClass default: true -- boolean
Get/set partially the selection of the Sampling Mode drop-down list.
When set to True, the drop-down list will show "Unified / Raytraced (Recommended)".
When set to False, the drop-down list will show either "Classic / Raytraced" or "Rasterizer / Scanline" depending on the value of .ScanlineEnable property.
Available in 3ds Max 2014 and higher.
<mental_ray_renderer>.UnifiedQuality Float default: 0.25 -- float
Get/set the value of the Quality spinner available when the .UnifiedEnable property is set to True.
Available in 3ds Max 2014 and higher.
<mental_ray_renderer>.UnifiedMinSamples Float default: 1.0 -- integer
Get/set the value of the Minimum spinner available when the .UnifiedEnable property is set to True.
Available in 3ds Max 2014 and higher.
<mental_ray_renderer>.UnifiedMaxSamples Integer default: 128 -- integer
Get/set the value of the Maximum spinner available when the .UnifiedEnable property is set to True.
Available in 3ds Max 2014 and higher.
Get/set the value of the Minimum spinner available when the .UnifiedEnable property is set to False.
The exposed value corresponds to the power of two value used to calculate the number of horizontal / vertical samples.
For example, when the value is 2, 2.0 to the power of 2 is 4, which means that mental ray will fire 4x4 rays to sample a single pixel. Thus, the User Interface displays 16 as the sample value which represents the minimum total number of rays to be fired.
Thus, the possible values are:
Get/set the Maximum samples value. The exposed value corresponds to the power of two value used to calculate the number of horizontal / vertical samples. See above for details.
Get/set the Box filter width. Possible values are between 0.0 and 8.0, default is 1.0.
Get/set the Box filter height. Possible values are between 0.0 and 8.0, default is 1.0.
Get/set the Gauss filter width. Possible values are between 0.0 and 8.0, default is 2.0.
Get/set the Gauss filter height. Possible values are between 0.0 and 8.0, default is 2.0.
Get/set the Triangle filter width. Possible values are between 0.0 and 8.0, default is 2.0.
Get/set the Triangle filter height. Possible values are between 0.0 and 8.0, default is 2.0.
Get/set the Mitchell filter width. Possible values are between 0.0 and 8.0, default is 4.0.
Get/set the Mitchell filter height. Possible values are between 0.0 and 8.0, default is 4.0.
Get/set the Lanczos filter width. Possible values are between 0.0 and 8.0, default is 4.0.
Get/set the Lanczos filter height. Possible values are between 0.0 and 8.0, default is 4.0.
Get/set the Red Spatial Contrast value.
Get/set the Green Spatial Contrast value.
Get/set the Lock Samples checkbox state.
Get/set the Jitter checkbox state.
Get/set the Bucket Width value.
Any values above 5 will be clamped to 0 - Hilbert (best)
Controls the Frame Buffer Type.
0 - Integer (16 bits per channel)
<mental_ray_renderer>.EnableLIS BooleanClass default: true -- boolean
NEW in 3ds Max 2016: Get/set the state of the "Light Importance Sampling" > "Enable" checkbox.
<mental_ray_renderer>.LISQuality Float default: 1.0 -- float
NEW in 3ds Max 2016: Get/set the value of the "Light Importance Sampling" > "Quality" spinner.
Get/set the Enable Scanline checkbox.
Enable/disable the Fast Rasterizer method.
1 - Use Fast Rasterizer (Rapid Motion Blur)
0 and any integer other than 1 - Disable Fast Rasterize.
Get/set the selection of the Samples per Pixel drop-down list.
Available in 3ds Max 7 and higher.
Get/set the Shades per Pixel value.
Get/set the Raytrace Method drop-down list.
4 - BSP2 (available in 3ds Max 2009 and higher)
Available in 3ds Max 7 and higher.
Get/set the BSP Size valueavailable when RaytraceMethodis set to BSP
Get/set the BSP Depth valueavailable when RaytraceMethod is set to BSP.
Get/set the Max.TraceDepth value.
Get/set the Max.Reflections value.
Available in 3ds Max 2009 and higher.
Get/set the Max.Refractions value.
Get/set the state of the Enable Reflections checkbox.
Get/set the state of the Enable Motion Blur checkbox.
Available in 3ds Max 7 and higher.
Get/set the Shutter Duration (frames) value.Lowest value is 0.0, default is 0.5, practically unlimited.
Get/Set the Shutter Offset (frames) value.
Available in 3ds Max 8 and higher.
Get/Set the Motion Segments value. Possible values are between 1 (default) and 15. Values outside this range will be clamped to the range.
Get/set the Time Samples value. Possible values are between 0 and 100. Lower or higher values will be clamped automatically to this range.
Get/set the Time Samples (Fast Rasterizer) valueavailable when Fast Rasterizer is enabled.
Possible values are between 1 and 128. Lower or higher values will be clamped automatically to this range.
Get/set the state of the Enable contours checkbox.
<mental_ray_renderer>.Contour_Contrast_Shader Contour_Contrast_Function_Levels__contour default: DefaultContourContrastShader:Contour Contrast Function Levels (contour) -- SubAnim
mental_ray_renderer.Contour_Contrast_Shader - superclass: textureMap; super-superclass:material - 10:0 - classID: #(2004031007, -2112913332)
<mental_ray_renderer>.Contour_Output_Shader Contour_Composite__contour default:DefaultContourOutputShader:Contour Composite (contour) -- SubAnim
mental_ray_renderer.Contour_Output_Shader - superclass: textureMap; super-superclass:material - 4:0 - classID: #(2004031007, 1963608696)
Get/set the state of the Lens checkbox enabling the Lens Camera shader.
Get/set the Lens Camera shader.
Get/set the state of the Output checkbox enabling the Output Camera shader.
<mental_ray_renderer>.Camera_Output_Shader GlaretextureMap default: DefaultOutputShader:Glare -- SubAnim
Get/set the Output Camera shader.
Get/set the state of theVolume checkbox enabling the Volume Camera shader.
Get/set the state of the Enable depth of field checkbox.
Get/set the selection in the depth of field mode drop-down list.
Get/set the Focus Plane value available when the Focus mode is set to f-Stop.
Get/set the f-Stop value available when the Focus mode is set to f-Stop.
Get/set the Near focus value available when the Focus mode is set to In Focus Limits.
Get/set the Far focus value available when the Focus mode is set to In Focus Limits.
Get/set the state of the Enable Shadow Maps checkbox.
Get/set the state of the Motion Blur checkbox.
Get/set the state of the Rebuild (Do Not Re-Use Cache) checkbox.
Available in 3ds Max 7 and higher.
Get/set the state of the Use File checkbox.
Available in 3ds Max 7 and higher.
Get/set the state ofthe Smoothing checkbox.
Available in 3ds Max 8 and higher.
Get/set the Edge Length value in pixels.
Get/set the Max.Displace value.
Get/Set the Max.Subdiv. value.
<mental_ray_renderer>.Displace_Method Integer default: 0 -- integer
NEW in 3ds Max 2016: Get/set the state of the "Displacement (Global Settings)" > "Method" radio buttons.
<mental_ray_renderer>.IBLEnable BooleanClass default: true -- boolean
Get/set the state of the Skylight Mode radio buttons.
False - Skylight Illumination from Final Gather (FG)
True - Skylight Illumination from IBL
Available in 3ds Max 2014 and higher.
<mental_ray_renderer>.IBLQuality Float default: 0.5 -- float
Get/set the value of the Shadow Quality spinner.
Available in 3ds Max 2014 and higher.
<mental_ray_renderer>.IBLShadows Integer default: 0 -- integer
Get/set the selection of the Shadow Mode drop-down list.
0 - Transparent (More Accurate)
Get the number of Final Gather Presets. Exposed by the mental_ray_renderer_functions Interface.
Available in 3ds Max 2009 and higher.
Get/set the state of the Final Gather Enable checkbox.
Available in 3ds Max 7 and higher.
Get/set the Final Gather Multiplier value.
Get/set the Final Gather Multiplier color.
Get/set the selection index of the Final Gather Projection Mode drop-down list.
0 - Project FG Points From Camera Position (Best For Stills)
1 - Project Points From Positions Along Camera Path
A value of 0 disables FG Shooters. A value of 1 enables FG Shooters. Any values outside of 0 and 1 will be assumed as 0.
Available in 3ds Max 2010 and higher.
Get/set the number of segments to divide thecamera path into when .FGProjectionMode is set to 1.
Possible values are: 1,4,9,16,25,36,49,64,81,100 (or N^2 where N is between 0 and 10).
Note that the UI exposes this property as a drop-down list, but the MAXScript value does NOT control the index of the drop-down list's selection but the actual value to be used. Only values that are on the list can be effectively specified though - any values not on the list will be clamped down to the nearest value. For example, assigning the value of 8 will set the property to 4, assigning 10 will set it to 9 and so on.
The higher this number is set to, the higher the initial Final Gather Point density should be.
Available in 3ds Max 2010 and higher.
Get/set the Initial FG Point Density value.
Get/set the Rays per FG Point value.
Get/set the Interpolate Over Num. FG Points value.
Get/set the Diffuse Bounces value.
Get/set the selection of the Noise Filtering (Speckle Reduction) drop-down list. Possible values are:
Get/set the Final Gather Max.Depth value.
Get/set the Final Gather Max.Reflections value.
Get/set the Final Gather Max.Refractions value.
Get/set the state of the Use Falloff (Limits Ray Distance) checkbox.
Get/set the state of the Caustics Enable checkbox.
Get/set the Caustics Multiplier value.
Get/set the Caustics Multiplier color.
Get/set the Maximum Num. Photons Per Sample value.
Get/set whether to use the Maximum Sampling Radius.
Get/set the Maximum Sampling Radius value.
Get/set the Caustics Filter Type drop-down list selection.
Get/set the Filter Size value.
Get/set the state of the Opaque Shadows when Caustics are Enabled checkbox.
Get/set the state of the Global Illumination Enable checkbox.
Get/set theGlobal Illumination Multiplier value.
Get/set the Global Illumination Multiplier coloe.
Get/set the Maximum Num. Photons Per Sample value.
Get/set whether to use the Maximum Sampling Radius value.
Get/set the Maximum Num. Photons per Sample value.
Get/set the value of the Max.Depth spinner.
Get/set the Average Caustic Photons per Light value.
Get/set the selection of the Mode drop-down list.
0 - Single File Only (Best for Walkthrough and Stills)
1 - One File Per Frame (Best for Animated Objects)
Available in 3ds Max 2010 and higher.
Get/set the state of the Calculate FG/GI and Skip Final Rendering checkbox.
When checked, the Final Gather or Global Illumination calculations will be peformed to create the respective maps on disk, but the final image will not be rendered.
When set to true, the Final Gather Map drop-down list will be set to Incrementally Add FG Points To Map Files or Read FG Points Only from Existing Map Files mode depending on whether .FinalGatherFreeze is set to false or true.
When set to false, the Final Gather Map drop-down list will be set to Off (Do not Cache Map to Disk) mode.
Used only when .UseFinalGatherFile is set to true.
If set to false, the Final Gather Map drop-down list will be set to Incrementally Add FG Points To Map Files causing Final Gather to update the files on disk.
If set to true, the Final Gather Map drop-down list will be set to Read FG Points Only from Existing Map Files causing the Final Gather to freeze the existing files and reuse them without modifying them.
Get/set the value of the Interpolate Over N Frames spinner.
Available in 3ds Max 2010 and higher.
Get/set the Final Gather Map filename.
<mental_ray_renderer>.FinalGatherTempFilename String default: "C:\Program Files\Autodesk\3ds Max 2010\sceneassets\renderassets\temp.fgm" -- string
Get/set the Final Gather Map Temp. filename.
Available in 3ds Max 2009 and higher.
See Also the mental_ray_renderer_functions Interface for methods related to managing the Final Gather maps and Final Gather Presets.
When set to false, no photon maps will be cached on disk and the drop-down list will be set to Off (Do not Cache Map on Disk).
When set to true, photon maps will be used and the drop-down list will be set depending onwhetherthe state of the .PhotonFreeze value is false or true - either to Read/Write Photons to Map Files or to Read Photons Only from Existing Map Files.
Available in 3ds Max 7 and higher.
Get/set whether to update the existing Photon Map files on disk or to reuse them without updating. Only used when .PhotonMapUseFile is set to true.
When set to false, the list will show Read/Write Photons to Map Files and the files will be updated.
When set to true, the list will show Read Photons Only from Existing Map Files and the existing files will be used without updating.
Available in 3ds Max 2010 and higher.
Get/set the photon map file name.
Get/set thestate of the Use Placeholder Objects checkbox.
Get/set the state of the Conserve Memory checkbox.
Get/set the state of the Use mental ray Map Manager checkbox.
Available in 3ds Max 7 and higher.
Get/set the manual Memory Limit value.
Since 3ds Max 2010, it is not exposed to the UI anymore and is not used by default - see below:
Get/set the state of the internal Automatic Memory Limit switch.
It is on by default, causing an automatic calculation of the memory limit based on the installed and available memory.
When set to false, the .Memory_Limit value will be used instead.
See Interface: IBitmapPager for details.
Get/set the state of theGeometryCache Enable checkbox.
Available in 3ds Max 2009 and higher.
Get whether theGeometryCache is empty (true) or full (false). To clear theGeometryCache, use the .ClearGeometryCache() method exposed by the mental_ray_renderer_functions interface.
Available in 3ds Max 2009 and higher.
Get/set the state of theGeometryCache Lock checkbutton. When set to true, the cache will not be updated even if scene objects have changed.
Controls the state of the Enable checkbox in the Material Override group of controls in the Translator Options rollout of the Processing tab. When set to true, the material assigned to the .Override_Material property will be used to override all scene materials.
Available in 3ds Max 8 and higher.
Get/Set the Override Material assigned through the Material Override group of controls in the Translator Options rollout of the Processing tab. When the .Enable_Material_Override property is set to true, this material will be used to override all scene materials.
Get/set the state of the Export on Render checkbox.If true, an .mi file will be generated when the renderer is called.
Get/set the state of the Un-compressed checkbox.If true, the content of the .mi file will be pure ASCII without compression.
Get/set the state of the Incremental (Single File) checkbox.
Available in 3ds Max 7 and higher.
Get/set the state of the Diagnostics Enable checkbox.
Get/set the Diagnostics Mode radio buttonstate.
Get/set the selection of the BSP Mode drop-down list.
Get/set the selection of the BSP Mode drop-down list.
Get/set the state of the Distributed Render checkbox.
The time, in milliseconds, spent by the translator outside of rendering. The accounts for everything the translator does outside of the command that starts the mental ray render. If placeholders are being used, then geometry translation time will not be included in thisvalue; only placeholder setup time will be accounted for.
Available in 3ds Max 9 and higher.
The time, in milliseconds, spent translating geometry. If placeholders are OFF, this is a subset of LastTotalNonRenderTime_ms; if placeholders are ON, this time accounts for both placeholder setup (mostly bounding boxes calculations) and placeholder geometry translation.
Available in 3ds Max 9 and higher.
The translator outputs the statistics as information messages in the mental ray message window.
Enable/disable the automatic bucket size adjustment when rendering very low resolution images.
When set to true (default), mental ray will adjust the bucket size automatically to use all cores optimally (for example when updating Material Editor samples).
When set to false, the specified bucket size will be used, potentially causing a single core to work on a Material Editor sample.
The setting is saved with the scene, but is not exposed to the UI.
No Properties, Methods or Actions exposed.
Get the number of Final Gather Presets.
Available in 3ds Max 2009 and higher.
Clears theGeometryCache. Equivalent to pressing the ClearGeometryCache button in the UI. If the noPrompt : optional keyword argument is supplied as true, the Cache will be cleared without prompting the user.
Available in 3ds Max 2009 and higher.
Deletes the Final Gather map file. Equivalent to pressing the [X] button in the UI. If the noPrompt : optional keyword argument is supplied as true, the Final Gather map file will be cleared without prompting the user.
Available in 3ds Max 2009 and higher.
Returns the name of the indexed Final Gather Preset.
Available in 3ds Max 2009 and higher.
Captures the current settings into the current Final Gather Preset.
Available in 3ds Max 2009 and higher.
Restores the indexed Final Gather Preset.
Available in 3ds Max 2009 and higher.
Returns the index of thecurrentFinal Gather Preset.
Available in 3ds Max 2009 and higher.
Reloads the mental ray UI from internal parameters, similar to renderSceneDialog.Update() .
This method is much faster and produce fewer display artifacts then the equivalent renderSceneDialog method. However it updates only mental ray parameters, thus having no effect on the Common tab of the Render Dialog.
Available in 3ds Max 2009 and higher.
Sets mental ray internal parameters based on the UI, similar to renderSceneDialog.Commit()