sbrl / Minetest-WorldEditAdditions

Extra tools and commands to extend WorldEdit for Minetest
https://worldeditadditions.mooncarrot.space/
Mozilla Public License 2.0
16 stars 3 forks source link

//revolve command #83

Closed sbrl closed 1 year ago

sbrl commented 1 year ago

Saw a video about the arceon mod (reference), and the revolve tool (and many other tools) look so cool~ :star_struck:

We should totally implement this.

First though, we'll need to implement a proper rotation algorithm that works with nodes...

Example of it working: https://www.youtube.com/watch?v=uvZD5OWT2RM

sbrl commented 1 year ago

Implemented!

As it turns out, EngineHub/WorldEdit really does just use basic affine transformations, with no special sampling e.g. like Fast/Rotsprite. If we implement //rotate with off-axis support, we should be ok, but it would be nice to implement fast/rotsprite if possible.

The only difficulty here is memory usage, due to the upscaling done. I'm convinced that there's a mathematical solution to this problem that does not require upscaling though.... we would need to investigate fast rotsprite further.