Skip to content

Retrieving positional information on the MPM88 example #29

@sarahhaha

Description

@sarahhaha

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions