Learn how to create a procedural staircase asset for a Sci Fi game level in Unity. Start by modeling the geometry using procedural techniques that will allow you to determine the length, width and height of the asset. Next, add a handrail then package up the node networks into a Houdini Digital Asset that can then be opened up in Unity using the Houdini Engine plug-in. Special attention will go into setting up UVs that work with a pre-built Trim Sheet. The final asset can then be deployed into a game level where it can be customized with geometry, collisions and textures all updating correctly.
These lessons use the SideFX Labs
tools. Make sure they are installed when doing this lesson.
Review the staircase generator asset in Unity to see what controls it has available to level designers. You will learn how the asset works as a tool then take a quick look at how it was setup in Houdini. This should give you a clear idea of what to expect in the three parts of this procedural staircase lesson.
PART 1 | MODEL THE STAIR
Use Houdini's procedural modeling tools to construct a procedural staircase. The key is that the stair will be driven by a single line and the treads, base and railings will be built up to match. You will also add the ability to bend the stair while keeping all of the parts of the network procedural throughout.
PART 2 | CREATE THE DIGITAL ASSET
Now that the staircase model is ready, learn how wrap up the network into a Houdini Digital Asset [HDA] then promote key parameters to the top level to build the UI for Unity. You will work to control all aspects of the asset that will help your level designers customize the stair for your game.
PART 3 | UNWRAP UVS FOR TRIM SHEET
To allow for the stair to change size and its overall look, you are going to set up the UVs of the model so they can be adjusted at the top level of the asset to work with different parts of the trim sheet. This makes it easy to scale up the staircase while preserving the UVs and letting your level designers create unique staircase designs using a single material in Unity.