I´m searching for a (or more) best practice(s) for the following problem. I´ll try to describe it as abstract as possible, so the solution can be applied to scenarios i have not yet thought of.
Data available: Voxels (Volumetric Pixels), forming a cube, with coordinates x,y,z and a color attached.
Goal: Use OpenGL to display this data, as you move through it from different sides.
Question: Whats the best practice to render those voxels, depending on the viewpoint? How (which type of Object) can store the data?
Consider the following:
- The cube of data can be considered as z layers of x y data. It should be possible to view, in-between-layers, then the displayed color should be interpolated from the closest matching voxels.
- For my application, i have data sets of (x,y,z)=(512,512,128) and more, containing medical data (scans of hearts, brains, ...).
What i´ve tried so far: Evaluated different frameworks (PIXI.js, three.js) and worked through a few WebGL tutorials.
If something is not yet clear enough, please ask.