cpu_voxel_raycaster
cpu_voxel_raycaster copied to clipboard
Very barebones CPU Voxel Raycaster
Results
2
cpu_voxel_raycaster issues
Sort by
recently updated
recently updated
newest added
When you traverse rays along x, y or z axis your algorithm behaves fully incorrectly. It could lead to missing triangles or voxels when rays are parallel to axes. You...
``` cpp // fixes for rays with negative direction if(ray.direction[0] < 0.0f){ ray.origin[0] = octree->size[0] - ray.origin[0]; ray.direction[0] = - ray.direction[0]; a |= 4 ; //bitwise OR (latest bits are...