|Reuse + Store rollup|
The Reuse + Store rollup has 2 main usages:
For V-Ray the rollup also allows to write to a RenderElement directly, see the different descriptions for V-Ray and
mental ray below.
In general RichDirt supports saving values to an image (false color, red is used for AO, green is used for IO).
These saved images can be later read from disc, instead of having to regenerate the effects by shooting rays.
This can add a huge speedup to rendering
How to get the image saved ?
mental ray is a little tricky, a ´shader´ can not directly write to a 3ds Max Render Element. Starting with version 1.10 RichDirt checks if a ´named framebuffer´ called ´richdirt´ exists. Only use this path if you are technically very advanced. You will need a plugin to create so called ´geometry shaders ´ which in turn can be used to add a shader that then creates a named framebuffer. Autodesk did ship a plugin called mrGeomShaderObject.dlo with the maxsdk, for example in 2011 this was (C:\Program Files (x86)\Autodesk\Autodesk 3ds Max 2011 SDK\maxsdk\plugin\mrGeomShaderObject.dlo) this plugin allows to add a geometry shader to a 3dsmax scene. mental images (now NVidia) sponsored the website http://www.writingshaders.com/framebuffers.html for an example of a geometry shader that creates framebuffer. You would need a ´named´ framebuffer (not an ´indexed´ framebuffer). In case this is to tricky for you today - the easier way for mental ray users is to directly write the result to the main image (beauty image). Without any changes the main image would contain shadows, lights etc, which one doesn´t want here. Use the ´mental ray´ material, and paste an -instance- of the RichDirt texture into its ´surface´ slot.
|Save falsecolor image via mental ray material|
This bypasses any shading like shadows, lights.
It is possible to use several mental ray materials, when using several RichDirt textures.
The easiest way is to enable the material globally in the ´Processing´ tab - use it for ´Material Override´.
V-Ray supports direct access to Render Elements from RichDirt. Switch on either ´V-Ray: write to vraytex render element ´ or ´V-Ray: write false color to vrayextratex render element´. Then RichDirt writes both to the main image and the the RenderElement. The false color image is better if you want to make rendering faster. You can later load the image, instead of shooting rays. The ´standard´ color is often better when you want to generate a RenderElement for later use in a compositing or paint program.
Compute with high quality (many samples) and save to an image file or RenderElement. Later do further scene tweaking, like changing textures/color of the materials. Even changes to lights are supported as RichDirt is not dependent on light sources. Use ´Load From Image File´ to get the high quality without the performance hit.
You want to tweak AO/IO in a paint/photo software or a compositor. Save to file. Do the tweaking. Use ´Load From Image File´ to get the tweaked result.
You want to use a 2k RichDirt texture image for a 8k rendering. Save to file in 2k resolution. Change rendering resolution to 8k. Use ´Load From Image File´ to load the 2k file. The 2k file is automatically projected on the 8k image. Speedup is factor 16 via image size and even more because no rays are shot. Dependencies : aspect ratio of images may not be changed for this workflow.