You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I've been using this great lib but encountered the problem when I want to apply a rotation on a textured mesh. I tried loading an obj file with TexturedMesh and Mesh:
Finally, rendered them to get the following:
(Textured mesh)
(Raw mesh)
It looks like the vertices and faces of the textured mesh all get messed up whereas the mesh without textures looks fine. Here's a textured mesh loaded without applying any rotations as a reference:
So I guess there might be some problems when the lib handles rotation for textured meshes. Due the data privacy, I can't share the model obj that I used. Can I get some help with this? Great thanks in advance!
Best,
Jingyu
The text was updated successfully, but these errors were encountered:
It seems to me that the problem with affine_transform for textured mesh is that it changes the vertices directly whereas methods like rotate_along_axis and rotate_x/y/z will change the model_matrix instead. The latter ones work perfectly well so I think there needs to be some fix for TexturedMesh.affine_transform.
Another point during code inspection: back-face culling is done in the fragment shader, which I'm not sure if it is the good way to do so.
Hi simple-3dviz team,
Recently I've been using this great lib but encountered the problem when I want to apply a rotation on a textured mesh. I tried loading an obj file with TexturedMesh and Mesh:
(TexturedMesh.from_file also has the same problem)
Then I applied the following rotation on these objects like
Finally, rendered them to get the following:
(Textured mesh)
(Raw mesh)
It looks like the vertices and faces of the textured mesh all get messed up whereas the mesh without textures looks fine. Here's a textured mesh loaded without applying any rotations as a reference:
So I guess there might be some problems when the lib handles rotation for textured meshes. Due the data privacy, I can't share the model obj that I used. Can I get some help with this? Great thanks in advance!
Best,
Jingyu
The text was updated successfully, but these errors were encountered: