three-d
A OpenGL/WebGL/OpenGL ES renderer which seeks to make graphics simple but still have the power to efficiently draw exactly what you want.
three-d
three-d
can for example be used for
Quotes from issues, discussions and pull requests:
The crate consist of three main modules for drawing, context
, core
and renderer
, and an optional window
module for easy setup:
Module | Description |
---|---|
context |
Low-level rendering module - requires a solid understanding of graphics concepts. Gives you complete control over both setup and rendering. |
core |
Mid-level rendering module - requires at least some knowledge about graphics concepts. Use this if you want to write your own shaders, but don't want to spend time on setup and error handling. Can be combined with low-level functionality in the context module. |
renderer |
High-level rendering module - requires no knowledge about graphics concepts. Use this if you just want to draw something. Features include functionality to rendering different types of standard objects with different types of shading. Can be combined seamlessly with the mid-level features in the core module as well as functionality in the context module. |
window (requires the "window" feature) |
Window functionality on cross-platform native and web, which primarily is provided to make it easy to get started. In some cases, it is desirable to replace the default Window with a custom winit window as exemplified in the winit_window example. However, this module can also be replaced entirely by anything that provides an OpenGL or WebGL2 graphics context, for example winit and glutin, wasm-bindgen or eframe. |
In addition, the three-d-asset crate enables loading, deserializing, serializing and saving 3D assets, for example 3D models, textures etc. Please make sure to use the same version of three-d-asset as defined in the Cargo.toml
.
Several examples covering most features can be found in the examples folder.
Here you will also find an overview of the examples, build instructions and links to the web version of the examples.
The examples that fit with a specific release can be found in the branch for that release, ie. the examples for the 0.9 release can be found in the 0.9 branch.
three-d
is supported
web/README.md
)Most parts are relatively stable, but do expect regular breaking changes until a 1.0.0 release. The master branch is work in progress, so if you want to avoid too many breaking changes and features not working, use a released version. If possible and feasible, functionality will be deprecated in one release, before it is removed in the next release.
Feature requests and bug reports are more than welcome; just open an issue or start a discussion. Contributions are highly appreciated; please feel free to reach out or simply create a pull request against the master branch. To avoid waste of time, please reach out before making major changes.