Loading Proxy Files Into a Scene

You will now create a group of mr Proxy objects, and associate each object with an .mib file you saved in the previous lesson. Then, you’ll assign the object a material from your mytrees material library.

Create an mr Proxy object and associate it with an .mib file:

  1. Open the scene file proxy-trees_start.max. This scene is in the folder \lighting_and_rendering\mr_proxies\. If you have a scene open from the previous lesson, do not save it.

    The new scene features a rolling terrain intersected by a riverbed.

  2. From the Create panel > Objects list, choose mental ray.
  3. On the Object Type rollout, click mr Proxy.
  4. In the Top viewport, click and drag anywhere to the right of the plane object.

    The proxy object you create can be of any size.

  5. Go to the Modify panel and rename the object Elm-Winter.
  6. In the Parameters rollout > Proxy File group, click the browse button.

  7. On the Load mr Proxy File dialog, navigate to the \sceneassets\renderassets folder, choose Elm1-Winter.mib and click Open.

    The scale of the imported proxy file is too large.

  8. In the Parameters rollout > Proxy File group, set the Scale spinner to 0.1 to reduce the proxy to one tenth its default size.
  9. In the Top viewport, hold down Shift and drag the proxy to the right.
  10. In the Clone Options dialog > Object group, turn on Copy and set Number of Copies to 3.

  11. Select a copied proxy and in the Modify panel, name it Elm-Spring.
  12. In the Parameters rollout > Proxy File group, click the browse button and from the browser choose Elm2-Spring.mib.
  13. Repeat steps 11 and 12 for each of the two remaining proxies, rename them Elm-Summer and Elm-Fall, and associate them with their respective .mib files.
  14. Select all four proxy objects and make a copy of them.
  15. Repeat steps 11 and 12 for each copied proxy object. Rename them Oak-Winter, Oak-Spring, Oak-Summer, and Oak-Fall, and associate them with their respective .mib files.
  16. In the Camera01 viewport, use the viewport controls to bring the eight tree proxies into view, then render the scene.

    The tree proxies look different in shape and leaf density, but their material is identical. Next, you will associate each proxy with the material you saved earlier in the material library.

Assign materials to the tree proxies:

  1. From the main menu, choose Rendering > Material/Map Browser.
  2. In the Material/Map Browser > Browse From group, choose Mtl Library. In the Show group, turn on Root Only and in the File group, click Open.

  3. Navigate to the materiallibraies folder and choose the file mytrees.mat.

    The Material/Map Browser updates to show the four tree materials you created in the first lesson of this tutorial.

  4. In the Top viewport, Ctrl+select the Elm-Winter and Oak-Winter objects and in the Material/Map Browser, highlight the 01-Winter material.

  5. Drag the material to the selected proxies in the scene and on the Assign Material dialog, choose Assign To Selection and click OK.
  6. Repeat steps 4 and 5 for each of spring, summer and fall pairs of oak and elm tree proxies.
  7. Activate the Camera01 viewport and render the scene again.

    Tree proxies after receiving material from the material library

    You now have eight different types of trees that are ready to be multiplied and distributed across your scene.

  8. Save your file as my8_trees.max.


Scattering mr Proxies in a Scene