Hoodie is a plugin for Godot Engine 4 that offers a visual scripting interface for generating procedural geometry.
Design parametric mesh geometry using a visual scripting language and iterate quickly over changes: create algorithms with nodes and utilize parameters to customize and fine-tune the generated mesh for your own use cases.
Hoodie is an open-source project licensed under the MIT License, free to use in your projects. If you find it useful for yourself and the community, you may consider supporting its development through this Gumroad page, which also offers additional perks.
This project also has a series of dedicated video devlogs that you can watch here on YouTube.
You can start using Hoodie by directly downloading binary files, or you can compile it yourself.
At this time only Windows is supported, but you can compile it yourself to make it work on different platforms.
- Download the latest binary from the Releases page on GitHub.
- Open the folder of your Godot Engine game project, and create a
bin
folder if it doesn't exists yet. - Copy the downloaded files in the newly created
bin
folder. The folder structure should now look something like this:
<your-project-folder-name>/
│
├── .godot/
│
├── bin/
│ ├── hoodie.gdextension
│ ├── libhoodie.windows.template_release.x86_64.dll
- You're now ready to go! Read Getting Started for a quick tutorial of the plugin.
In case your platform isn't included in the shipped binaries, you need to compile the project by yourself from source.
Since this is a Godot GDExtension plugin, the compiling procedure is the same as the one for Godot Engine itself, as stated here on the official documentation. On this page you'll find detailed guides about how to build for each platform.
Generally you want these tools to be installed:
- A C++ compiler
- Python 3.6+
- SCons 3.0+
Once you managed to install all the necessary tools, follow these next steps:
- Clone this project repository.
- Open the terminal and navigate to the repository folder.
- Launch command
scons target=template_release
(SCons will automatically recognize the OS you're working on, but you can specify it and additional parameters if needed). - The resulting binary files will be located in the repository at the
hoodie/demo/bin
folder. - At this point you can just follow the Direct Download section starting from step 2 (you simply need to put the generated binaries in the correct game project folder).
Before you can use Hoodie's visual scripting interface, you need to set up the right nodes, then you'll be ready to go!
- If you haven't already done so, create a new 3D Scene and open it.
- 'Add Child Node...' with CTRL+A or the '+' button from the Scene panel, and choose
MeshInstance3D
. - Once you have the new
MeshInstance3D
selected, head over to the Inspector and create a newHoodieMesh
through the 'Mesh' property, selecting 'New HoodieMesh'. - Now that the 'Mesh' property is filled with a new
HoodieMesh
, click on theHoodieMesh
option button to start editing it. - The Hoodie panel will appear in the bottom control panel, and there you will be able to use visual scripting to create your algorithms through nodes.
- Start by adding an
Output
node with the 'Add node...' popup menu at the top left of the Hoodie editor. Add node... > Mesh > Primitives > Mesh Grid
.- Connect the
Mesh
output slot of theMesh Grid
node to theGeometry
input slot of theOutput
node. - You will now see a 1x1 plane show up in the viewport.
- Congratulations! You just created your first Hoodie procedural geometry! 🥳
- You can tweak the size of the plane connecting
Add node... > Input > Constant > Input Value
to theMesh Grid
, and see its changes in real time.
- Create a
Path3D
node in your 3D Scene and proceed to model a curve with the designated tools. - While the
Path3D
is selected, go to the Inspector and open theCurve3D
option button, then click on Copy. - Go back to the Hoodie editor, and create a
Input Curve3D
node fromAdd node... > Input > Input Curve3D
. - Go to the Inspector, and you'll see a new property group has appeared: Inputs.
- Expand the Inputs property group and a
Curve3D
property will appear, where the label name is the id of theInput Curve3D
node you added earlier. - Click on the
Curve3D
property option button, and then click on Paste in order to paste the copiedCurve3D
. - Now that the curve has been correctly referenced, we need a couple of other nodes to generate a geometry along the path.
Add node... > Mesh > Primitives > Mesh Line
: this will be the extruded geometry along the path.Add node... > Curve > Operations > Curve to Mesh
.- Connect the
Curve3D
output slot of theInput Curve3D
node to theCurve3D
input slot of theCurve to Mesh
node. - Connect the
Mesh
output slot of theInput Curve3D
node to theProfile
input slot of theCurve to Mesh
node. - Connect the
Mesh
output slot of theCurve to Mesh
node to theGeometry
input slot of theOutput
node. - You will now see a mesh along the path you designed earlier! 🥳
- You can now tweak the input values for your needs, for example with a
Add node.. > Input > Constant > Input Vector3D
node.
There are currently no known issues.
To submit feedback, suggestions, and bug reports, join the Discord server. You'll find the appropriate Hoodie category where you can discuss and get help!
Interested in sponsoring this project? Take a look here.
Special thanks to:
- Bastiaan Olij for creating gdprocmesh, which served as a reference at the start of this project journey.
- Zylann and Naros for their assistance through the Godot Engine official Discord server.