egui/examples/custom_3d_three-d/README.md
Asger Nyman Christiansen eeeb4b7de2
Improve custom_3d_three-d example (#1923)
* Use correct FBO to output

* custom_3d_three-d web

* Update .gitignore

* Do not free the FBO

* Use three-d 0.13

* ThreeDApp

* Only construct model and camera once

* Clean-up and docs

* Web build instructions

* Remove unused dependencies

* Update Cargo.lock

* Fix build

* More fixes

* omg
2022-08-17 21:33:34 +02:00

20 lines
593 B
Markdown

This demo shows how to embed 3D rendering using [`three-d`](https://github.com/asny/three-d) in `eframe`.
Any 3D library built on top of [`glow`](https://github.com/grovesNL/glow) can be used in `eframe`.
Alternatively you can render 3D stuff to a texture and display it using [`egui::Ui::image`].
If you are content of having egui sit on top of a 3D background, take a look at:
* [`bevy_egui`](https://github.com/mvlabat/bevy_egui)
* [`three-d`](https://github.com/asny/three-d)
```sh
cargo run -p custom_3d_three-d
```
```
wasm-pack build examples/custom_3d_three-d --target web
```