Open DevinBayly opened 2 years ago
we are in a good place to start playing with realistic branching structures thanks to your great starting place sketch!
so we have set the z component randomly
this.z = random()*50 // add random z component
and we would prefer to set the z to a value that increases with step we take away from the root in the branch.
Exercise: Think about what we might need to change in the code to make this possible.
make sure to get godot installed on laptop, and then if you are feeling brave look through https://docs.godotengine.org/en/stable/tutorials/3d/procedural_geometry/index.html,https://docs.godotengine.org/en/stable/tutorials/3d/procedural_geometry/arraymesh.html
but in reality we are going to start with points and lines not triangles, so stay tuned and i'll upload something
Today I will be providing a little bit of material to assist with the introductions to p5 3d, and godot. Ultimately our goal for p5 is to start to understand how we produce things like your plant model in 3d.
In Godot we will be learning to leverage the procedural mesh generation tools to apply the logic of our p5 code to generate shapes in godot.