Cutaway visualisations
Opened this issue · 6 comments
Useful for things like tumours where there are alot of densely packed cells.
e.g. https://youtu.be/nJ2urSm4ilU
Done via matlab cutaway plot: https://github.com/MathCancer/PhysiCell/blob/81e85ce1dcb7156864a4460666e60878b82d3e97/matlab/simple_cutaway_plot.m
Ray casting probably a good option for this - easily integrates CSG operations, intersection, difference etc.
Ray casting probably a good option for this - easily integrates CSG operations, intersection, difference etc.
If you are looking to have individual spheres sliced as in the example image. Obviously if that isn't required you could just cull them
I would need to read up more on ray-casting, to consider that (e.g. is perf going to be trash).
This isn't a priority though, just a thought of something that could add value. I'm unlikely to really dig into it further until/if Primage model is fully moved over to fgpu2. I might also pick back up the surface renderer I was building then too.
Oops meant raymarching - this video gives a nice demo and explanation
Watching that, sounds as though ray marching would do the job. But it would also be a major rewrite of the visualiser, due to the processing required (e.g. doesn't seem suitable for basic multi-pass rendering with potentially millions of agents).