Display an arbitrary 3D mesh #643
-
Hello! I'm using I can see in the documentation that I can do Mesh needs an indices array for triangles (which doesn't pose much issues), but also a Vertex array. However it's indicated that this is "the 2D vertex type", implying that there might be a 3D vertex type? If there isn't, do I need to project each of my 3D-model's vertex to egui's 2D frame? Manually doing occlusion culling etc? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
3D is outside the scope of egui. You can project to 2D and do your own culling, but that is tedious. I suggest you use something like macroquad (with egui-macroquad) and render your mesh to a texture and display it with |
Beta Was this translation helpful? Give feedback.
3D is outside the scope of egui. You can project to 2D and do your own culling, but that is tedious.
I suggest you use something like macroquad (with egui-macroquad) and render your mesh to a texture and display it with
egui::Image
.