Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cutaway visualisations #62

Open
Robadob opened this issue May 17, 2021 · 6 comments
Open

Cutaway visualisations #62

Robadob opened this issue May 17, 2021 · 6 comments

Comments

@Robadob
Copy link
Member

Robadob commented May 17, 2021

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

image

@MILeach
Copy link

MILeach commented May 17, 2021

Ray casting probably a good option for this - easily integrates CSG operations, intersection, difference etc.

@MILeach
Copy link

MILeach commented May 17, 2021

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

@Robadob
Copy link
Member Author

Robadob commented May 17, 2021 via email

@Robadob
Copy link
Member Author

Robadob commented May 17, 2021

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.

@MILeach
Copy link

MILeach commented May 17, 2021

Oops meant raymarching - this video gives a nice demo and explanation

https://youtu.be/Cp5WWtMoeKg

@Robadob
Copy link
Member Author

Robadob commented May 17, 2021

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants