rendering two voxel objects
I have created two voxel objects out of seperate imageStacks. So each Voxel object has its own image and texture data. These objects are rendered with renderingModeIsosurfaceMaterial.
object1 is in the background and is created at first.
object2 is in the foreground and is created next.
When i rotate the camera around my objects the background object1 should move in the front and the object2 in the back. But im my case object1 stays in the background and object2 in the foreground. The boundary boxes of both objects are at the desired position! When i create cMeshObjects cubes this problem do not appear.
Is there any simple solution i can#t see right now?
I think the problem is due to the texture of the cVoxelobject. The texture and rendered object do not lie on top of each other when i use the function setLocalPos for the object. But how can i fix this?