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

Generate textures on a mesh #1875

Open
hanyangyu1021 opened this issue Sep 19, 2024 · 1 comment
Open

Generate textures on a mesh #1875

hanyangyu1021 opened this issue Sep 19, 2024 · 1 comment

Comments

@hanyangyu1021
Copy link

Here's the setting. I have a mesh without texture. It only has vertices and faces. I want to add texture on it. Below is my code. But the generated mesh in plot_scene is always blue. And when i want to save the .glb file, I file no texture added on it.
image
image
Anyone knows where is wrong?

@bottler
Copy link
Contributor

bottler commented Sep 20, 2024

plotly_vis ignores TexturesUV because as far as I remember, plotly itself does not have the needed functionality. If plotly now has it, it would be good to add it.

The saving question may be a Trimesh thing. Maybe you can use the native experimental_gltf_io stuff in PyTorch3D to write a glb file with the texture in.

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