kenny-designs / voxel-edit

A web based voxel art program.
https://kenny-designs.github.io/voxel-edit/
5 stars 3 forks source link

Box Brush #23

Open kenny-designs opened 3 years ago

kenny-designs commented 3 years ago

Currently, users have to place voxels one at a time. This is how it works in the game Minecraft but it's incredibly tedious and not so fun for a dedicated voxel editor.

Extend the Brush component so that users can switch between adding 1 voxel at a time vs dragging and dropping many voxels.

The algorithm for mass adding/removing/painting voxels I'm not so sure how to implement. This may be an issue that will have to be tackled further on in the apps development.

kenny-designs commented 3 years ago

An idea for the algorithm: When the user first clicks, track what voxel they just selected. Then when the user lets go, track where they let go (this will also be on top of another voxel). Then do a bit of math to determine what all voxels will be affected between the two selected voxels.

The main issue from here is that the user needs some indication of what voxels they selected. Perhaps some sort of edge highlighting or add a bit of transparency to the voxels to be.

In addition, how will this work on mobile? Perhaps when the box brush is selected the orbit controls are temporarily disabled. The same might have to be done for desktop users. Brain storm some ideas on this.