Unable to add Contact Geometry: ContactMesh obj file #1059
-
Hi there, I am so far unable to add a contactmesh to my project. I typed the path to the obj file and I ensured that it is watertight and closed and i selected the proper frame. When I click "add" I don't have any contact geometry added. There are no error or info lines in the log. Any help is greatly appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @bfugger I confirmed the bug on my side. From what I can see:
The bug appears to be from OpenSim:
So, @bfugger, the way I was able to move forward on this was to add a However, I couldn't move forward from there because SimTK seems to prescribe that any mesh file that is provided must contain triangles with edges that share exactly two faces and I couldn't find an appropriate mesh during testing. Your bug (not being able to see the contact geometry until a force is added) isn't in OpenSim Creator. It will need to be upstreamed to OpenSim. The potential later "bug" (of having to provide a perfect mesh file - not necessarily a bug but might be very annoying) appears to originate from simbody, which is another upstream library that OpenSim uses: |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for the detailed write up. I also think that I may be attempting to use a noncompliant mesh. Some further digging on the forum and the links you provided show my mesh also needs to be onesided? and with proper vertices directions. So i am working on cleaning that up. In the meantime, I will try the approach you described as I need to assign forces anyways. I am still getting the hang of opensim so I appreciate all your input. |
Beta Was this translation helpful? Give feedback.
-
Moving this to a discussion because the core issue is related to how OpenSim works, rather than something that OpenSim Creator can solve in-tree. |
Beta Was this translation helpful? Give feedback.
Hi @bfugger
I confirmed the bug on my side. From what I can see:
ContactMesh
to a model and choosing an STL or OBJ fileosim
will load sucessfully in both OpenSim Creator and OpenSim GUI with no error messageThe bug appears to be from OpenSim:
ContactMesh
sourcecode in OpenSim is here: