Sorry if this is too obvious a question but I have looked through the docs and examples and I'm still confused (it's easily done).
I am trying to implement a simple voxel selection and marking system where the basic functions are:
Draw the mesh (using the voxel sphere example)
Use the camera and mouse position to cast a ray into the scene (works now)
Use a couple of mouse clicks to mark a region (very crude but it's not the problem. yet)
Change the density of the voxels in the region to a lesser density.
Re-draw the mesh
If I set the density of the selected region to to maxDensity / 2 or below, the ray casting and mesh generation agree but if I set it to maxDensity / 2 + 1 then those voxels are not removed from the mesh but rays will pass right through them.
If there is a way to change the thresholds of these functions then I have missed it.
Another possibly related issue I'm having is that when I assemble the mesh for ogre I use the PositionMaterialNormal but I never seem to getMaterial() != 0.
The code is here:
http://charlieb.hopto.org/gitweb/index.cgi?p=ogre_vox.git;a=treecheers,
Charlie