Rhino · Export6 min readDraft

Export a Rhino model to OBJ for AI rendering.

OBJ is the one format where Rhino's layer structure survives as named groups and the layer colours travel along in a material file. Set the dialog once, tick "Always use these settings", and every model you drop into Vista arrives organised the way you drew it.

By François Gandon · Published

Rhino Layers panel of a timber house model: one layer per building element, each with its own colour
The Sumba house used in this guide: one layer per building element, display colour by layer.

Why OBJ rather than GLB or FBX

Rhino exports GLB, FBX and OBJ, and Vista opens all three. OBJ is the only one that writes your layers as named groups in a plain-text file you can read, and it is the only one with a companion material file (the .mtl) that carries the display colour of each layer. GLB flattens the layer tree into materials; FBX keeps object names but not the layer hierarchy. If you organise your models by layer, which most architectural Rhino files are, OBJ is the format that keeps that organisation.

Before exporting: one layer per element

Vista turns each Rhino layer into a layer of its own palette, so the export is only as useful as the layer structure behind it. Put each building element on its own layer: plinth, floor slab, walls, roof panels, rafters, glass, doors. Leave the display colour on "By Layer" and give each layer a colour that reads as a material (a warm brown for timber, a light blue for glass). Hide the layers you do not want rendered: construction guides, 2D linework, section planes, context you have not modelled properly.

The export dialog, tab by tab

Select everything (or only the objects to export), run Export Selected, choose Wavefront (*.obj) and the options dialog opens. It has five tabs; three of them matter.

Geometry

Save surfaces, polysurfaces and extrusions as
Polygon mesh objects
A NURBS export contains no geometry a browser can display; Vista reports "No 3D geometry found".
Rhino OBJ export dialog, Formatting tab, with material definitions, display colour and Z-to-Y mapping ticked
Formatting: the two material boxes and the axis mapping are the ones that matter.

Formatting

Export material definitions
On
Writes the .mtl file next to the .obj.
Use display color for objects with no material set
On
This is what turns each layer colour into a material. Without it every object gets the same default grey.
Convert white space in material names to underscores
On
Harmless for Vista, safer for other tools.
Map Rhino Z to OBJ Y
On
Rhino is Z-up, the viewer is Y-up. Leave this off and the building lies on its side.
Significant digits
7
The default of 17 doubles the file size for nothing a rendering can show.
Wrap long lines
Off
Rhino OBJ export dialog, Naming tab, with layers exported as OBJ groups and sorting by group ticked
Naming: layers as OBJ groups, sorted, and no object names.

Naming

Export Rhino object names
Do not export object names
With object names on as well, every object becomes its own mesh named after both and the one-layer-one-mesh structure is lost.
Export Rhino layer/group names
Layers as OBJ groups
Writes one group per layer, named after it.
Merge nested group/layer names
Off
Keeps the child layer's name on its own. Turn it on only if two child layers share a name under different parents.
Sort by OBJ groups
On
Writes each layer as one contiguous block. Without it a layer can appear several times and the viewer splits it into several meshes.
Rhino OBJ export dialog, Meshes tab
Meshes: no n-gons, triangles, normals on, texture coordinates off.

Meshes

Vertex welding
Welded
Smaller file, normals kept. Unmodified also works.
N-gons
None
Vista re-triangulates n-gons on import, but not writing them is cheaper.
Export as triangles
On
Export texture coordinates
Off
Vista does not read textures; this is a third of the file.
Export vertex normals
On
Smooth shading on curved surfaces.
Export vertex colors
Off
Use render meshes
On
Exports the meshes you see in the viewport, including per-object mesh settings.

Tick "Always use these settings. Do not show this dialog again" at the bottom once you are happy; Rhino remembers them per machine. The Curves tab does not matter, since curves are not exported with polygon meshes.

What the exported files contain

Both files are plain text. Open the .obj in a text editor and the first lines show exactly what the settings did:

# Rhino

mtllib Sumbhouse.mtl
g Sumba_house Plinth
usemtl diffuse_150_150_150_255
v 0 0 42
v 0 0 19.257
…
Sumbhouse.obj, first lines

The first line names the exporter. The mtllib line points at the material file. Each g line opens a layer, parent first and child last, with spaces turned into underscores; the usemtl line that follows names the material the layer uses. Rhino names generated materials after their colour, diffuse_ followed by the red, green, blue and alpha values, so two layers with the same colour share one material. The material file lists each of those with its diffuse colour:

newmtl diffuse_150_100_60_255
Ka 0.0000 0.0000 0.0000
Kd 0.5882 0.3922 0.2353
Ks 1.0000 1.0000 1.0000
d 1.0000
Sumbhouse.mtl, one material

Kd is the diffuse colour as three values from 0 to 1; 0.5882 0.3922 0.2353 is the warm brown of the roof cap. The 14-layer house above exports to a 480 KB file with no texture coordinates and 12 materials.

What Vista does with it

Drop the .obj on the entry screen, add the .mtl in the confirmation card, and the model opens in the 3D viewer. Every Rhino layer becomes a layer in the Layers palette, named as in Rhino and shown in its Rhino colour. Hover a layer to see its surfaces highlighted; recolour the ones that matter and leave the rest. A layer can carry a prompt hint such as "corten steel cladding" or "clear glass": at capture, the hinted layers become a colour legend that tells the AI what each flat colour stands for in the rendering.

The same house in the Vista 3D viewer with the Layers palette open, one chip per Rhino layer in its Rhino colour
The Sumba house in Vista: the Rhino layers, in their Rhino colours, ready for prompt hints.

Then frame the capture (ratio, camera presets, sun), save the view so a clip can start from it later, and generate. The geometry and the camera are yours; the AI supplies materials, light and context. See 3D model to render for the rest of the pipeline.

Common problems

Questions

Does Vista read Rhino render materials?
It reads the colour of whatever material the OBJ references. Objects with a render material export under that material's name and colour; objects without one use the layer's display colour when the display-colour option is on. Textures are not read.
What about blocks and nested layers?
Block instances export as ordinary geometry on their layer. Nested layers export with the parent and the child on the same group line; Vista names the layer after the child.
Can I export only part of the model?
Yes. Select the objects, run Export Selected, and only those are written. Hidden layers and hidden objects are never exported.
Do the same settings work in Rhino 7?
Yes. The dialog has the same tabs and options in Rhino 7 and 8, on Windows and Mac.
Written byFrançois GandonArchitect, founder of Vista

François spent a decade producing competition images the slow way before building Vista. The guides describe what he does with his own models; nothing here is theoretical.

3D to Render in Vista: your first renders are on us.

Start free