3D World

GENERATE A PROCEDURAL MAZE IN HOUDINI

WATCH THE VIDEO

https://bit.ly/3Dworld-292

Houdini has been gaining increasing popularity in the game industry for its powerful VFX and procedural modelling capabilities. Although learning the software is difficult, the reward is also tremendous. While it is important to learn the nodes and functionalities of this gigantic software, another very important aspect is often overlooked by beginners – data structure and algorithm.

This computer science-related topic might seem alien, but the nature of Houdini is visual scripting; building procedural logic to generate assets is no different from developing a piece of software, and algorithms play a big role in the process. This article introduces a simple yet powerful data structure called disjoint data set. With its ‘find set’ and ‘union set’ operations, a working maze can be quickly generated.

Another powerful tool Houdini provides is VEX, a scripting language to allow quick implementation of a procedure. VEX coding is used heavily in this tutorial to quickly achieve results. Readers are expected to have a basic understanding of the language, as well as the basics of Houdini.

Please note that Houdini Apprentice will not work fully as it disallows the creation of a Houdini digital asset.

A professor at the University of the Incarnate Word speciatising in 3D art, rigging, programming, and indie game development.

bit.ly/3xL2fhw

01 PREPARE THE TESTING ASSETS

Create a set of testing models in Blender first. Here, the models include two walls, two floors, two columns, and some random set dressing assets. Suzanne has been created to represent an object to be placed at the dead ends.

The floors are squares with an edge length of two metres. The wall is two metres tall and two metres long. The columns are two metres high with an arbitrary radius slightly bigger than the thickness of the wall. The other assets are of an arbitrary size. Export them individually as FBX files.

02 CREATE THE CURVE BASE

Make a new file in Houdini, and create a new geometry node. Name it ‘main’. Inside the main geometry node, create a curve node, and name it ‘base_shape’. In the viewport, hit enter, click to add new points, and keep on adding until a floor plane for the maze is established. Make sure to zoom out enough so your floor plane is bigger than the two-metre base size of the assets. Make sure to click on the first point created to

You’re reading a preview, subscribe to read more.

More from 3D World

3D World1 min read
This Is Not A Lightsaber
“It's interesting that you bring up Star Wars because I've done a handful of projects now where there are interactive sticks glowing in someone's hands,” notes Taormina. “There's only so much you can do for that. When I had that initial conversation
3D World6 min read
Rebels With A Cause
Whether it be superheroes fighting each other or their archenemies, travelling to ancient Sparta to recreate legendary military feats, entering the mind of a psychiatric patient, or a zombie outbreak, Zack Snyder has a developed a distinct visual sty
3D World11 min read
Create Stylish Hand-painted Character Art
Practical tips and tutorials from pro artists to improve your CG skills WATCH THE VIDEO https://bit.ly/3dworld-monarch Stylised characters are my passion, and in this tutorial I'll go through my steps for creating a high-quality unlit and hand-painte

Related