Skip to content

Updating from Unity 2021 to 2022 changed something in the M2SDF, made Hair physics fail #17

@methusalah

Description

@methusalah

I used to use Unity 2021.3 with HDRP, Hair 0.10 and Mesh2SDF 1.0. without issue.

Then I updated to Unity 2022.3 with HDRP. From this moment on, the render textures used to store the SDF where set to RandomWrite = true automatically, and the hair pysics began to fail. The hair did not seem to be affected by gravity anymore and was floating around, maybe with a bigger drag (hard to say)

I tried to set the RandomWrite to false and to remove the line completely in the text file. This solve the issue and hair work corretly again, but only for one launch. After that, the RandomWrite is automaticaly set to true again and on a second launch the physics bug come back.

I updated to M2SDF 1.1 without any change. I also updated Hair to 0.16 but some other issues prevent me to test it for the moment.

Why is this boolean set automatically? It seems very strange and unintuitive. Is there any way to prevent it? why the random access would even mess with the hair physics?

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