Memory management, access, traversal, and other core operations are handled by the kernel, yielding real-world performance of over one million (and up to 8 million) r/w operations per second on commodity hardware in a small memory footprint. See the benchmarks for performance details.
The kernel currently supports 32-bit voxels representing either a 31-bit subtree pointer or 24 bits of RGB color, a 4 bit alpha channel, and 3 bits reserved for rendering instructions (the remaining bit is a flag indicating whether the entry is a pointer or voxel data). The non-kernel code is agnostic, such that kernels with other data structures (e.g. for indexed color) could be supported.
- prune dead octets and free for reallocation - incomplete
- defragmentation (maybe not neccessary)
- ray intersection - partially complete, weird test results
Voctopus is still a work in progress! Neither the API nor the data structure should be considered stable.
Current documentation is available in the project wiki. Examples and demos will follow as the code stabilizies - they're currently not in useful shape.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.