Hazel

Models

Most of what you see in a 3D game is models: characters, props, buildings, rocks. This page covers bringing models into your project, placing them in a scene, and the built-in shapes you can block a level out with before any art exists.

Importing a model

To import a model, drag the file from your desktop onto the editor, or click Import in the Assets panel and choose Files (or Folder, to bring in a whole directory with its subfolders). The Import window opens with the model loaded and starts converting it straight away.

These formats are accepted:

FormatExtensions
glTFglb, gltf
FBXfbx
Wavefrontobj
Colladadae
USDusd, usda, usdc, usdz
Blenderblend
Alembicabc
Stanfordply
STLstl
Motion capturebvh

Whatever the source format, the model is stored in your project as a single .rvg file. It shows up in the Assets panel as a Model with a thumbnail. Textures inside the model are baked into a form the graphics card reads directly, and each material becomes a .material file you can open and edit later (see Materials).

The Import window

The window has a column of tabs on the left, a 3D preview in the middle, and the import settings on the right.

TabWhat it shows
FilesEverything queued for import. Add files and Add folder put more in the queue.
SceneThe model's parts as a tree. Untick a part to leave it out of the import.
MeshesEvery mesh in the model.
MaterialsEvery material in the model, with a preview.
DestinationWhich project folder the model goes into.

The preview can be orbited with the mouse. The axis gizmo in its corner snaps the camera to a side, and the buttons under it zoom in, zoom out and fit the model to the view. The preview's Environment, Lights and Grid switch the preview's sky, lighting and floor grid on and off, which helps when you want to judge a model's materials on their own.

When you are happy, click Import. The close button discards the queue without importing anything.

Import settings

SettingWhat it does
ScaleMultiplies the size of the whole model. Use it when a model arrives a hundred times too big or too small, which is common for files exported in centimetres.
Up axisWhich way is up. Auto reads it from the file. Pick Z-Up for a model that arrives lying on its back.
HierarchyAs authored keeps the model's own tree of parts. One node per mesh gives you every mesh as its own selectable object. Combine meshes merges everything into one object, which is the fastest to draw but cannot be picked apart.
TexturesOnly shown for formats that carry no materials of their own (such as STL or a bare OBJ). Picks which set of image files from the same folder to put on the model.
Flip UVsFlips textures vertically. Turn it on when a texture looks upside down on the model.
Generate normalsWorks out shading for a model that has none, so it does not look flat black.

Under Extract, choose which parts of the file to bring in: Skeleton + skin, Animations, Textures and Materials. Animations come out as separate .anim files beside the model, ready for the Animator.

Under Optimize, Vertex cache, Overdraw and Vertex fetch reorder the model's data so the graphics card draws it faster. They change nothing you can see, so leave them on.

Change a setting after the model has converted and the window says Settings changed since this was converted, with a Reconvert button.

Where it goes

On the Destination tab, pick the folder the import lands in. Folder per file gives every imported model a folder of its own (with its textures and materials inside), which keeps a big import tidy. All in one folder puts everything directly into the folder you picked. The folder picker has a button to make a new folder on the spot.

Placing a model

Drag a model from the Assets panel into the viewport. It appears where you drop it. From there, move, rotate and scale it with the gizmo (see Viewport).

To set a model down on whatever is below it, select it and press Page Down (Drop to Surface).

A placed model shows up in the Hierarchy as one object with its parts underneath. Select a part to move it, hide it, or give it a different material.

Separating parts of a model

Models often come with pieces merged that should move on their own: both wheels of an axle as one part, every door of a building as one. To split them, right-click the part in the Hierarchy and choose Separate Parts. Each separate piece becomes a part of its own, with its origin at its own centre, so a wheel turns about its hub.

This changes the model file, so every scene using the model gets the separated parts. The original is kept beside it as <name>.unsplit.rvg; copy it back over the model to undo.

The shape library

The Shapes panel holds ready-made shapes you can use straight away: primitives such as cubes, spheres and cylinders, building blocks, walls, doorways, windows and roofs, stairs and ramps, pipes, and simple props such as crates, barrels, benches and lamp posts. They are ideal for blocking out a level to test how it plays before the real art is made.

The shape library: categories on the left, shape tiles on the right

  • Click a shape to add it at the centre of the world.
  • Drag a shape into the viewport to place it where you drop it.
  • Use the sidebar to show one category, or the search box to find a shape by name.
  • The slider on the right of the toolbar changes the thumbnail size.

Tick Bendable before adding a shape to give it a chain of bones along its length, so you can bend it in the Animation workspace.

A few shapes from the library standing on a ground plane

Next steps