ManiSkill icon indicating copy to clipboard operation
ManiSkill copied to clipboard

[Question] How to import mesh with textures on vertices into the Maniskill

Open TritiumR opened this issue 1 year ago • 1 comments

Hi. I have one mesh with texture on vertices that I want to import to Maniskill and build actor with it.

I tried this, but it didn't include the texture in the redering.

builder = self.scene.create_actor_builder() builder.add_convex_collision_from_file(filename='./normalized.dae') builder.add_visual_from_file(filename='./normalized.dae') self.mesh = builder.build_static(name='mesh')

I also tried .obj and .ply. They all contains colors, which could be shown in Meshlab. But when I import them, the color is missing.

Is there any specific way (e.g., different APIs or different format of texture files) to do this?

Thank you.

TritiumR avatar Oct 03 '24 19:10 TritiumR

.obj should show up. Can you load into eg blender and check there are colors? And try exporting to glb and load it. If it still doesn't work can you share the file here?

StoneT2000 avatar Oct 04 '24 05:10 StoneT2000

Has your issue been resolved?

StoneT2000 avatar Nov 07 '24 21:11 StoneT2000

Thanks for your message and sorry for the late reply. I baked the texture into the vertex color and it works. Thanks

TritiumR avatar Nov 08 '24 16:11 TritiumR

Hello, I've encountered the same issue. The mesh had colors in MeshLab(I tried .ply and .obj), but the colors disappeared after importing it into Sapien. How can I bake the texture into vertex colors? Thank you!

saulgooodman avatar Mar 07 '25 12:03 saulgooodman