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

Feature request: implement collision force to prevent overlap #18

Closed
jorrit-hdrn opened this issue Nov 15, 2022 · 3 comments
Closed

Feature request: implement collision force to prevent overlap #18

jorrit-hdrn opened this issue Nov 15, 2022 · 3 comments

Comments

@jorrit-hdrn
Copy link

jorrit-hdrn commented Nov 15, 2022

Hi there,

First thank you for this great lib, the performance is outstanding!

I was wondering implementing the collision force of D3-force is considered?

I would like to use cosmos as a layout calculator with a different renderer, and for that I need a "prevent overlap" setting, which this force could provide.

I would like to contribute although i'm not well versed in glsl. Would you say implementing this is feasible?

@rokotyan
Copy link
Member

Hi @jorrit-hdrn,

It's not something we're currently working on, and it'll be difficult to implement on GPU without a significant performance loss. So, maybe one day but not in the nearest future 😔

@jorrit-hdrn
Copy link
Author

Thank you for your message, that is too bad to hear!

Could you shed some light on why it would lead to a significant performance loss? No worries if you're too busy.

@rokotyan
Copy link
Member

@jorrit-hdrn Collision detection will require a lot of uncoalesced memory access operations (in finding the points that are overlapping in each simulation frame) which are very slow on GPUs. I guess there could be some tricks, but they are not obvious and the implementation won't be easy.

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