Skip to content
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

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

Closed
TritiumR opened this issue Oct 3, 2024 · 3 comments
Closed

Comments

@TritiumR
Copy link

TritiumR commented Oct 3, 2024

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.

@StoneT2000
Copy link
Member

.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
Copy link
Member

Has your issue been resolved?

@TritiumR
Copy link
Author

TritiumR commented Nov 8, 2024

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

@TritiumR TritiumR closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants