Skip to content
renderStacks by QuasiKrystal

1. Introduction

Download the tutorial scene (411 KB) – a zip with renderStacks_Tut_001.max. Tutorials 1 to 5 all use this scene.

Open renderStacks. To make a button, find it in the RenderStacks category. Or press "X" and search for it.

3ds Max action search with ren typed and renderStacks in the list

This is renderStacks.

renderStacks main window with the pass tree panel, the pass modify panel and the Note panel

The main UI has 3 large panels, a menu at the top and render buttons at the bottom. From left to right, the panels are:

  • Pass tree panel – you make passes here and add pmodifiers to set what each pass does.
  • Pass modify panel – like the 3ds Max Modify panel. You see and edit the parameters of each pmodifier.
  • Note panel – notes and settings.

Making First Pass

Make your first pass. Load the file renderStacks_Tut_001.max. The Pass tree panel has an item "::base" by default. It is in the Pass tree panel, but it is not a pass. It is the base depot. This tutorial tells more about it later. The buttons above the Pass tree panel manage passes and pmodifiers.

  1. Press the Add Pass button.
    Add Pass button with its tooltip

  2. The name dialog opens. Type "CamA".
    When you type, the Make new pass button becomes active.

    Name the pass dialog with the name CamA

  3. Press Make new pass.
    By default, a pass name can have only letters, numbers, underscores and dashes. A pass name is usually part of the output path. Thus, do not use spaces or special characters in a pass name.

  4. Make 2 more passes, "CamB" and "CamC". To make them at a time, type both names with a comma between them.
    Make new pass dialog with the names CamB and CamC

  5. Click each pass.
    Nothing changes, because you did not tell renderStacks to do anything. renderStacks controls only what you tell it to control. This is one advantage of renderStacks.

Adding first pmodifier

Now make renderStacks do something. Give each pass a different camera.

  1. Select the pass CamB and press Tab. The list shows all pmodifiers that you can add.
    Add Pmodifier list after a Tab on the CamB pass

  2. Type "c" and "a". The list now shows only the Camera pmodifier. The current search word shows above the list.

    Add Pmodifier list with the search word ca and only Camera in the list

  3. Press Enter or double-click Camera. This is your first pmodifier. The Pass modify panel shows the parameters of the selected pmodifier.
    CamB pass with the new Camera_001 pmodifier

  4. Right-click the tree view and select Expand All.

    Treeview right-click menu with Expand All

  5. Treeview with the green Base_Camera pmodifier in the ::base, CamA and CAMC, and Camera_001 in CamBYou added the Camera pmodifier only to CamB. But all other passes and the base depot show a green Camera pmodifier, "Base_Camera". Green pmodifiers are base pmodifiers. When you add the first pmodifier of a type, the base pmodifier shows on all passes. renderStacks does NOT add the green base pmodifiers to the passes. The green color only shows that the pass uses the base pmodifier, because it has no local pmodifier. renderStacks keeps the base pmodifiers in the ::base depot.

    A base pmodifier keeps the base state of its pmodifier type. If a pass has no local pmodifier of that type, the pass uses the base pmodifier. The base pmodifier is also the start point for accumulative pmodifiers.

  6. Make sure that the Camera_001 pmodifier is still selected. In the Pass modify panel, open the RenderCam dropdown and select Camera001. The active viewport changes to the Camera001 view.

  7. Open the pass CamA and select the green Base_Camera pmodifier. Select PhysCamera001. You told renderStacks to use Camera001 for the pass CamB and PhysCamera001 for all other passes.
    Base_Camera pmodifier set to PhysCamera001

  8. Click CamC. It already has PhysCamera001, because CamC has no local pmodifier and uses the base pmodifier.

This is the basic workflow of renderStacks. You decide what to control and set a base state as the default. Then you override individual passes locally as necessary.

Adding Second Pmodifier

Now add a different pmodifier type: Resolution.

  1. Select the pass CamA. Hold CTRL and select the pass CamC. You can select more than one pass for most tasks.
    CamA and CAMC passes selected together
  2. Press Tab and type "res".
  3. Press Enter. renderStacks adds 2 pmodifiers to CamA and CamC, and Base_Resolution shows on CamB.
    The local Resolution pmodifiers of CamA and CamC are below the Camera pmodifier. But the base Resolution pmodifier on CamB is above the Camera pmodifier. This is because base pmodifiers always run before local pmodifiers. The order in the Pass tree panel is the exact order in which renderStacks runs the pmodifiers.
    Treeview with the new Resolution pmodifiers in CamA and CAMC, and Base_Resolution in the ::base and CamB
  4. In the Resolution pmodifier of CamA, use the preset dropdown to set 1920 by 1080.
    Resolution pmodifier of CamA with the 1920 x 1080 preset
  5. Do the same for CamC. Then select the Scale option and set it to 50%. When you change Scale or Overscan, Output Resolution shows the final output resolution immediately.
    Resolution pmodifier of CAMC with Scale at 50% and the output resolution 1152 x 648
  6. For CamB, unlock the image ratio button and set the resolution to 2048 by 2048.
    CamB pass with Base_Resolution at 2048 x 2048, and the square camera view in the viewport
  7. Click each pass, or a pmodifier of the pass, to activate the pass. The camera and the safe frame ratio change as you set them.

Preview Passes

You made your first render passes with renderStacks. Now make preview renders to make sure that your pass setup is correct. renderStacks uses rsPrvRender for previews.

  1. Select all 3 passes.
    You can select passes one at a time with the CTRL and SHIFT keys.
    To select all passes, there is an easier way.
  2. Open the PassSet dropdown at the bottom of the tree view. It has a built-in PassSet, "All", that selects all passes. For more data, see Pass Set.
    Pass set dropdown with the built-in All pass set
  3. Select All. renderStacks selects all passes.
  4. Click Preview at the bottom.
  5. renderStacks renders previews of all 3 passes and loads them in RAMPlayer.

To change the preview settings, right-click Preview. The rsPrvRender dialog opens. renderStacks also uses the options that you set there.

Controlling Pass Globally

Now you want to batch render the 3 passes. This scene has no animation. Thus, set the frame range to Single for all 3 passes. To control all passes at a time, add a FrameRange pmodifier directly to the base depot. The base depot is not a pass. It is the storage for base pmodifiers. All passes use a pmodifier in the base depot, until a pass gets its own local pmodifier.

  1. Select ::base at the top.
  2. Press Tab and select Frame Range.
  3. Select one of the Base_FrameRange pmodifiers and set it to Single.
    Base_FrameRange pmodifier in the ::base set to Single

One goal of renderStacks is to put all render controls in one location. With renderStacks, you do not need to open the Render Setup dialog. A pmodifier controls each option of the Render Setup dialog. Also, an open Render Setup dialog makes pass activation slower. Thus, always keep the Render Setup dialog closed.

Setting Output Path

Last, set the output path for your render. You can type an output path for each pass. You can also use tokens to make the output path automatically.

  1. Select ::base again.
  2. Press Tab. Add RenderOutput.
    renderStacks applies the default output path with tokens:
    <prjrenderoutput>/<SceneName>/<PassFullName>/<SceneName>_<PassFullName>..exr
    The tokens are:
    <prjrenderoutput> – the render output folder of the project. By default, C:\Users[username]\Documents\3ds Max 2021\renderoutput.
    <SceneName> – the scene file name without the extension: renderStacks_Tut_001.
    <PassFullName> – the pass full name: CamA.
  3. The final output path is:
    C:\Users[username]\Documents\3ds Max 2021\renderoutput\renderStacks_Tut_001\CamA*renderStacks_Tut_001_*CamA..ex*

You can now render all selected passes locally, or send them to a render farm. Select the passes and press Local Render or Net Render.

This is the end of the first renderStacks tutorial.

Thanks