Latest

Friday, December 18, 2009

NXT for Rhino Basics

nXt for Rhino-Basics

Getting Started

This tutorial shows how to render a standard Rhino model using nXt.

image001

image003

The Tutorial covers the basic steps of rendering with nXt which include:
  • Opening a model
  • Creating materials
  • Editing materials
  • Adding a ground plane

The first step is to download and unzip the tutorial files. To download the zip file, click on the nXt Getting Started.zip link. Unzip these files into their own folder somewhere memorable on your computer.

Open the nXt Getting Started.3dm file in Rhino. Check that Flamingo nXt is the current renderer in the render drop down menu.

Render controls

For your first rendering of the model, click on the render button. Your image should look like the one on the right.

image005

nXt works differently than previous versions of Flamingo.

A new model in nXt will use a default HDRI lighting set up and will also use a white default material for all objects.

For instance you will see shadows start out very sharp and linear. With each pass, the shadows will get softer as they blend together. There are many other effects that will also improve with each render pass.

In this way, an nXt rendering is never "finished"; you merely decide when it is good enough to stop. This allows you to let images that are looking good to continue to improve. But you can also stop an image at any time, if you would like to change or save something.

Some of the effects that improve on each pass are:

  • Lighting (such as global illumination if enabled)
  • Soft Shadows
  • Reflections (blurry)
  • Refraction
  • Anti-aliasing
  • Depth of field

You can stop the rendering in a number of ways:

  • Click the Stop Raytrace button to stop the rendering at the end of the current pass.
  • Double-click the Stop Raytrace to stop the rendering immediately.
  • Click the "X" button in the upper right of the render window to stop the rendering immediately and close the render window.

Materials

Because basic lighting is already built into nXt, making the right materials is normally where most of the work lies. Materials are stored directly in each model. To create a set of materials, we can use material templates that assist you in creating new materials quickly.

Open the Flamingo nXt control panel from the Flamingo nXt drop down menu in Rhino. Then expand the Materials section.

image007

image009


Now, let's make a few materials.

To make metal materials:

  1. First, you will need a metal material. Select the New Metal Material in the templates drop down.

    image011

  2. A dialog will pop up with a simplified interface for metal materials. In this case, the default properties will work great for Chrome.
  3. In the material name field, type "Chrome". Press OK to make the material.

    You'll now see the new material thumbnail image in the material browser.
    image013


  4. One of the most interesting materials in this model is the gold satin metallic finish at the top of the reel. Here you will start with the New Metal Material template.
  5. Slide the sharpness slider left to 0.150. Also, set the material color to gold as shown.
  6. In the name field, type "Gold Satin Metal" and press OK.


    image016

  7. The next material in this model is the anodized aluminum material for the reel spool. Here you will start with the Metal template. But slide the sharpness slider left to 0.110. Also, set the material color to red as shown.
  8. In the name field, type "Red Anodized Aluminum" and press OK.

    image017

To make a plastic material:

  1. Next you will need a black plastic. Select the New Plastic Material in the templates drop down. A dialog will pop up with a simplified interface for plastic materials.
  2. Drag the color to black. The fastest way to do this is to grab the small white dot on the color square and drag it down toward black.
  3. Type in the Name field, "Black Plastic" and press OK to make the material.


    image018

To make a clear finish material:

  1. The red body color of the reel is a Clear finish material. This is a car paint style material. Select the New Clear Finish Material in the templates drop down.
  2. Drag the color to a bright red. Notice that with this material we only have to select the color.
  3. In the name field, type "Red Clear Finish" and press OK.


    image020

To make a rubber material:

  1. The next material you will make for the reel is a black rubber. Rubber is slightly reflective; you can simulate this with a New Glossy Material.
  2. Select the black diffuse color as shown.
  3. In the name field, type "Black Rubber" and press OK.


    image021

To make textured materials:

  1. The next material you will make for the rod handle is cork. For the cork material we will use a texture. Select a New Textured Material. Here you are prompted to pick a texture.
  2. Navigate to the directory that you created when you unzipped the tutorials files and select the Cork.jpg and click Open.

    You can see you have a simple textured material. The tile size of the bitmap is often important. In this case we will accept the default tiling.

  3. In the name field, type "Cork" and press OK.

    image023

  4. The last material in this model is a wood material that we will use later for a ground plane. Wood materials are best done with an image or photograph of wood. To create the wood material, select a New Textured Material.
  5. Open the DeckWood.png file.
  6. In the name field, type "Deck Wood" and press OK.

    image026


Your material browser panel should look like this:

image028

To assign the materials to a layer:

Now you will assign these materials to the model. In this case, we will assign the materials to the layers in the model. This means all objects on those layers will use the render material assigned.

  1. Open the layers dialog.
  2. Drag the material swatch from the material panel over the name for the layer and drop. You should see the name of the material show up in the column just past the layer color square.

image030


  1. Once you've assigned all the materials click the Render button.

    Flamingo nXt will take multiple passes at an image. With each pass many subtle effects will continue to improve.

    Look at the Gold Satin material on the top of the reel. You will see the reflections are pronounced and sharp at first. As the passes progress, you will see the reflections continue to blur creating the satin effect. The longer you let nXt render, the more detailed this material quality will become.

    image032

We're getting closer to the final rendering and just need to add a few more details. Next, you will add a ground plane.

To turn on the Ground plane:

  1. Open the Render panel. Check the Ground plane check box.


    image034

  2. Press the Render button again.

    image036

    By default, nXt uses a grey ground plane. Here again you can see the multi-pass rendering in action.

    In the first passes, you will see that the shadows are sharp and that there are many shadows going in multiple directions. As the passes progress, the shadows will get softer and softer. Soft shadows are automatic in nXt, but they do take multiple passes to generate. So, when you are rendering your own images, do not be alarmed at the multiple shadows on the first few passes.

    The grey ground plane is OK, but you'll see a difference when you use the wood deck material you created for the reel to sit on.

  3. In the Render panel, assign the wood deck material to the ground plane. Do this by clicking on the Material button... in the ground plane section of the nXt control panel. Browse to select your textured material.

    image038

  4. Press the Render button again.

    image040

    This render's already looking pretty good, but for small objects adding Depth of Field will add increase realism. This will make the foreground and background out of focus and draw attention towards the model itself.

To enable the depth of field:

  1. In the Render panel, Depth of Field section, click the Enabled check box.

image043

The focal distance and strength of depth of field is critical.

  1. To set the Focal distance, click on the ... button.
  2. In the perspective view, snap to a point on the reel. This selects the focal point from the camera to the object in the scene.
  3. Then set the Strength between the first and second lines. You can see in the image above an example of where the slider should be.
  4. Press the Render button again.

    You should see an image that is similar to this:

image044

This is the end of the tutorial. I hope you find this helpful.