-
Notifications
You must be signed in to change notification settings - Fork 592
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
Trimesh GLTF export how to set pbr material #523
Comments
Hey, unfortunately the GLTF exporter doesn't support texture at the moment, although it is on the list of requested features (#199). PR's welcome! |
Hey, I merged GLTF texture exports in #528, now you just need to make sure that
|
This is a great implementation, very useful, thank you. Is there any support possible for adding specular textures as well, according to the new glTF 2.0 extension? |
Hello community, i have a Trimesh object
trimesh_mesh = trimesh.Trimesh(vertices=vertices, faces=faces, vertex_normals=vertex_normals, validate=True)
Which i export as gltf
My question, how can i apply a custom pbr material to the trimesh_mesh before exporting? My first attempt was to define a json
And add it like
trimesh_mesh.visual.material = new_material
But that changes nothing to the default material.
The text was updated successfully, but these errors were encountered: