Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore Procedural world generator in Godot #57

Open
acs opened this issue Jul 9, 2022 · 5 comments
Open

Explore Procedural world generator in Godot #57

acs opened this issue Jul 9, 2022 · 5 comments
Assignees
Labels

Comments

@acs
Copy link
Contributor

acs commented Jul 9, 2022

Some interesting links:

https://docs.godotengine.org/en/stable/tutorials/3d/procedural_geometry/index.html
https://github.com/barrrettt/GeneratedMesh-Godot-Cs

For an initial PoC the SurfaceTool seems the way to go: https://docs.godotengine.org/en/stable/tutorials/3d/procedural_geometry/surfacetool.html#doc-surfacetool

@acs acs added the godot label Jul 9, 2022
@acs acs self-assigned this Jul 9, 2022
@acs acs added this to To do in Godot Voxels physics via automation Jul 9, 2022
@acs
Copy link
Contributor Author

acs commented Jul 9, 2022

Our first successful code:

https://github.com/Voxelers/3d/tree/master/procedural

@acs acs moved this from To do to In progress in Godot Voxels physics Jul 9, 2022
@acs
Copy link
Contributor Author

acs commented Jul 10, 2022

Some exercises i am thinking on:

  • Create an infinite line of mesh using a Path. But only display the meshes that you can see, using LOD techniques or culling or clipping. So we understand all these concepts with some deep.
  • We can also play with procedural textures to make the way more interesting

@acs
Copy link
Contributor Author

acs commented Jul 11, 2022

Interesting attempt to generate voxels using ArrayMesh: https://godotengine.org/qa/74644/how-to-generate-a-cube-mesh

And the process of modifying vertex in complex meshes: https://godotforums.org/d/22837-how-to-efficiently-change-a-few-vertices-in-a-big-mesh

@acs
Copy link
Contributor Author

acs commented Jul 13, 2022

Using MultiMesh is pretty simple and you can add collision shapes also to the meshes generated following advices like this one creating a single StaticBody with several collision shapes, one per each mesh generated.

Screenshot from 2022-07-13 23-15-05

@acs
Copy link
Contributor Author

acs commented Jul 14, 2022

Wow, the results start to be significant:

https://youtu.be/cACDenPu3o0

The base map with 1024 spheres is generated using a MultiMesh. Collision shapes are added to all the spheres using gdscript. The balls are generated also using gdscript. And the evolution of this scene is pretty interesting in possibilities. Few code, few nodes, great results. Godot is so rewarding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant