New addon for blocking in 3D levels
kitfox Looks great. What do you think of generating block by script too ?
I mean, we fill a 2D array (or later a 3D array), with 1x1x1 cube block to start, and we'll got all 3D blocks added for us. This would be nice for random/procedural level generation, for instance to make a 3D dungeon like old classic Dungeon Master/Chaos Strike Back.
Also, it would be better to add a direct link to your github project on your post.
That's excellent!! It would also be nice to be able to do a wall rounding…
It must be hard to replicate Sweet Home 3D in Godot?
Tomcat Something like Sweet Home 3D would be a lot of work and would require a different approach to what I did in Cyclops. But I could see something like that running in Godot.
You can make the walls appear rounded by using a lot of small blocks and arranging them in a circle. Maybe a script could be developed to layout something like that automatically in the addon.
- Edited
kitfox You can make the walls appear rounded by using a lot of small blocks and arranging them in a circle.
Looks like that's what's done there — the rounded wall is broken up into small straight sections. I guess I'll just use the Sweet Home 3D export for starters. Unfortunately, glTF is not supported there.
This is looking crazy good ️
- Edited
kitfox You can make the walls appear rounded by using a lot of small blocks and arranging them in a circle. Maybe a script could be developed to layout something like that automatically in the addon.
For convex rounded walls It'd probably be easy to add a cylinder primitive, which is just an n-sided prism. And for concave walls something like a (partial) tube that's parametrized by inner/outer radius, a swipe angle and a number of steps. The editor would then generate N adjacent quadrilateral prisms arranged in a circular pattern to form a pipe. This it's tedious to do by hand but could be quickly implemented on top of what you already have.
xyz something like a (partial) tube that's parametrized by inner/outer radius, a swipe angle and a number of steps
That's a quadric, which looks intimidating like this but libGLU can handle them with ease, code is open-source so, if needed, it can be used as reference unless there is some way to access openGL low level layers from Godot and expose the API.
Oh, it got a mention on GameFromScratch.com! Well deserved. ️