This topic is now archived and is closed to further replies.


Is it here....or over about here?

Recommended Posts

I have a wonderful octree structure to organize my VoxelLandscape, Nodes with both 1 or 0 values are split until each node only has a) 1 voxel, or b) all of the voxels are the same value. My octree stucture has a size (a radius of the cube) and a center. I want to (when i''m passing the VoxelData onto the kiddies) test if a voxel lies in child a or b, but i can''t for the life of me found out how! I have a GetVoxel (x,y,z) that returns the voxel from the 1D array. But i can''t simply turn world space into array space. Sorry if this is unclear. I''m rushing thanks...

Share this post

Link to post
Share on other sites