-
Notifications
You must be signed in to change notification settings - Fork 907
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
Textures are not rendered on flexcomp mesh and gmsh types #2464
Comments
Based on the fix for rendering texture on flexcomp grid types from here 6a86247, I think these two methods need to be modified mujoco/src/user/user_flexcomp.cc Line 982 in 2abb2e2
mujoco/src/user/user_flexcomp.cc Line 1121 in 2abb2e2
|
Hi, for a box it's straightforward to compute the texture coordinates explicitly but for general meshes you have to provide the coordinates in the mesh file, see the lines that start |
Hello. Thanks for the input. So I changed the mesh to an obj file and unwrapped it. I also changed the model to include a flexcomp box, flexcomp mesh, and geom mesh. Again, all have the same texture applied. As you can see in the image below, the texture now gets correctly applied to the flexcomp box and the geom mesh but still not to the flexcomp mesh. Is there anything else that I have to do?
|
Intro
Hi!
I am a researcher at KTH. I use MuJoCo for my research on deformable object manipulation.
My setup
MuJoCo version 3.2.8
What's happening? What did you expect?
When I apply texture to the flexcomp type mesh and gmsh the texture is not rendered.
Below is a screenshot of three flexcomp types: box, mesh, and gmesh, all with the same applied texture. Surprisingly, only the box model gets the texture applied.
This issue is related to #2013 (comment)
Steps for reproduction
Minimal model for reproduction
Here are the assets folder that the model below reference to assets.zip
Code required for reproduction
Confirmations
The text was updated successfully, but these errors were encountered: