-
Notifications
You must be signed in to change notification settings - Fork 228
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
Pose is not preserved when loading multiple meshes within a GLB #135
Comments
Hey, I'm not sure of the details on this, but
Or you can "bake" the transforms from the trimesh scene into a list of copied/transformed meshes:
|
Thanks @mikedh. Your solution worked great. I guess I misinterpreted the doc; would be great to get a few more examples up on the repo! |
Hi @mikedh do you have an email or a way to contact you? I have some questions about your trimesh package |
@mikedh I just wanted to ask if I am able to get the name of a node from the GLB file using your API... |
Here is a GLB file loaded into Unity:
And here is the same GLB loaded using Pyrender/trimesh
This is just an example, I know these are different frameworks. However, how can I preserve the pose of each object within the scene-graph so that my cube is in the correct position relative to the plane?
Here is my code:
loaded_payload = trimesh.load(BytesIO(payload), file_type='glb') mesh = Mesh.from_trimesh(list(loaded_payload.geometry.values())) self.scene.add(mesh)
The text was updated successfully, but these errors were encountered: