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

Retrieving positional information on the MPM88 example #29

Open
sarahhaha opened this issue Jul 14, 2023 · 0 comments
Open

Retrieving positional information on the MPM88 example #29

sarahhaha opened this issue Jul 14, 2023 · 0 comments

Comments

@sarahhaha
Copy link

I am trying to retrieve the positional arrays of each particles in the mpm example in the unity side, however, I am having issues with obtaining this information. I have tried getting the vertex attribute position information which returns [0,0,0], and have tried using the ToArray() method in the NdArray class in order to obtain the arrays from the Taichi NdArray however, it continues to give me an error telling me that "Read from non-host-readable memory is not allowed." I have tried manually setting HostRead = true and then Unity crashed. Is there a way to retrieve this positional information or change the taichi ndarray to an array in c# that is readable without unity crashing?

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

1 participant