{"repo":"fuqunaga/ComputeShaderBVHMeshHit","free":true,"listed":false,"github":"https://github.com/fuqunaga/ComputeShaderBVHMeshHit","clone":"git clone https://github.com/fuqunaga/ComputeShaderBVHMeshHit.git","description":"Unity ComputeShader implementation of BVH(Bounding Volume Hierarchy) based mesh hit checking.","language":"C#","stars":97,"topics":["unity3d","computeshader","bvh","mesh","collision-detection"],"license":"MIT","category":"game-templates","readme_excerpt":"ComputeShaderBVHMeshHit Unity ComputeShader implementation of BVH(Bounding Volume Hierarchy) based mesh hit checking. Installation Add the following address to UnitPackageManager. How to use Create BVH Asset 1. Window BvhBuilder 1. Set meshObjectRoot object. 2. Build to create BvhAsset. C# 1. Put BvhHelperBehaviour to the Hierarchy. 1. Set BvhAsset. 1. Call BvhHelperBehaviour.SetBuffersToComputeShader() . ComputeShader 1. Add the following include statement to your ComputeShader. #include \"Packages/ga.fuquna.computeshaderbvhmeshhit/Bvh.hlsl\" 1. Call TraverseBvh() to detect a mesh hit. References http://raytracey.blogspot.com/2016/01/gpu-path-tracing-tutorial-3-take-your.html http://marupeke296.com/COL 3D No18 LineAndAABB.html https://shikousakugo.wordpress.com/2012/06/27/ray-intersection-2/","default_branch":null,"files":null,"tree":[],"storefront":"/r/fuqunaga","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fuqunaga/ComputeShaderBVHMeshHit/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."}