Replies: 2 comments 5 replies
-
First of all egui runs in 2d space. So AFAIK you need to use 3d engine like three-d, or bevy. three-d had some troubles running inside egui(mostly in input events). So you need full 3d rendering with lighting, scene, etc. Then you need to bake your cad model into model that 3d engine can read. Bevy uses something like https://docs.rs/bevy/latest/bevy/gltf/index.html |
Beta Was this translation helpful? Give feedback.
-
I don't know if that helps, as I've never used these crates, but transform-gizmo lets you manipulate 3D objects inside egui, and stl_io lets you load a .stl file into a list of triangles. It's what bevy_stl uses. |
Beta Was this translation helpful? Give feedback.
-
I want to show cad file in my application at run time. How to show a .step or .stl or .ply or .obj files in egui ?
Beta Was this translation helpful? Give feedback.
All reactions