We have an MRI scan and we would like to perform real time raycasting in OpenGL on iOS in order to render the surface from different angles without polygonizing it. In fact we are only interested in the depth map generated by rendering.
Ive seen a number of examples of this in the appstore so Im sure its possible (eg. ImageVis3d). Can we used glTexImage3D to perform rendering? Is there a good online resource for using this function in iOS? Better yet is there a GitHub project or something similar which demonstrates the use of glTexImage3D in iOS?
Now assuming that a 2d or 3d texture exists in OpenGL ES memory is it possible to write to the same memory using a fragment shader and then rerender it without copying it back to the CPU? Im imagining a sculpting scenario that can deform the volume using a fragment shader.