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

Using GPU neighborhood search with python-Bindings and validation #117

Open
MassimoErber opened this issue Jun 11, 2021 · 2 comments
Open

Comments

@MassimoErber
Copy link

Hi,
thanks for this really interesting module.

I installed the module in Python using pip. Now i wanted to create my own Scenes but could not find a way how to set the Cmake-Flag for GPU-neighorhood search in python. Is it possible to change this flag in Python?
The second issue is, how to change the gravitation term in Python? In my simulation I want to do a fluid simulation, without any gravitational force. I tried to use:
sim.setValueFloat(sim.GRAVITATION, [0, 0, 0])

@digitalillusions
Copy link
Member

Hi @MassimoErber,
unfortunately the Python module does not come packaged with the GPU neighborhood search, it can only use the CPU neighborhood search. If you want to use the GPU neighborhood search you will have to compile the project from source.

Regarding the gravitational force: the parameter setting interface is unfortunately a bit incomplete. The gravitation is a float vector and setValueFloat is only for single vector values. If you want to try out simulations without gravity my suggestion would be to set the gravitation value in the .json scene file or to set it in the GUI. Setting of vector values from python has unfortunately not made it into the github release yet.

@MassimoErber
Copy link
Author

Hi @digitalillusions,

thanks for the quick response!

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