{"repo":"xandergos/unity-sparse-voxel-octrees","free":true,"listed":false,"github":"https://github.com/xandergos/unity-sparse-voxel-octrees","clone":"git clone https://github.com/xandergos/unity-sparse-voxel-octrees.git","description":"A sparse voxel octree renderer, made for use with Unity.","language":"C#","stars":131,"topics":["unity","octrees","voxel-engine","voxel","unity3d"],"license":"MIT","category":"game-templates","readme_excerpt":"Unity Sparse Voxel Octrees A Unity-based method of rendering voxels using Sparse Voxel Octrees as seen in Nvidia's paper: \"Efficient Sparse Voxel Octrees – Analysis, Extensions, and Implementation\". Installation Currently the only way to use the library is to download the files and compile them yourself in unity. Quick Start Place the SVO folder in your Unity Project. You must enable unsafe code: Project Settings Player Other Settings Allow 'unsafe' Code. To get a simple octree working, create a script: - Create a Start method - In the start method, create an octree with new SVO.Octree() - Modify the octree however you want - Set the texture of a material using an octree shader with material.mainTexture = octree.Apply() A demo with code is available here. Screenshot This image contains voxels from the minimum size of 2^-23 up to approximately 2^-8. At this scale there are a lot of artifacts due to floating point errors, but in practice (when working at reasonable scales) this will not happen. Limitations - Deformations, such as vertex deformations commonly used to animate characters or other objects, are not implemented, and are not planned (If its even possible). - No collider support. Unlike normal meshes, there is no built-in collider for representing an Octree. Any octree-based object will need to be represented using an approximate collider. This is not a huge deal, as an approximate collider is generally the more performant approach with traditional triangle-based meshe","default_branch":null,"files":null,"tree":[],"storefront":"/r/xandergos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xandergos/unity-sparse-voxel-octrees/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}