Open kenny-designs opened 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.
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.