https://github.com/killercup/materialx
MaterialX support in Bevy (and potentially other Rust projects)
https://github.com/killercup/materialx
bevy-engine materialx rust
Last synced: 6 months ago
JSON representation
MaterialX support in Bevy (and potentially other Rust projects)
- Host: GitHub
- URL: https://github.com/killercup/materialx
- Owner: killercup
- Created: 2024-06-25T10:16:59.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T05:54:31.000Z (9 months ago)
- Last Synced: 2024-10-12T03:25:01.330Z (8 months ago)
- Topics: bevy-engine, materialx, rust
- Language: Rust
- Homepage:
- Size: 20.3 MB
- Stars: 15
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# MaterialX Parser in Rust and Support in Bevy
Collection of crates to support [MaterialX](https://materialx.org) in [Bevy](https://bevyengine.org/) (and potentially other Rust projects).
## Current Status
Some basic functions work as proof-of-concept.
Expect continuous changes to every aspect of this project.## Crates
- [materialx-parser](materialx-parser2/README.md): Parser for MaterialX (`.mtlx`) files
- [bevy-materialx-importer](./bevy-materialx-importer/README.md): Support MaterialX as assets in Bevy
- [downloader](./downloader/README.md): Download free MaterialX files from different sites for testing## Demo + Testing
Our test approach is very simple:
Given a bunch of MaterialX files, try to parse and render them.Run the demo using `cargo run -p demo`.
How to get MaterialX files for testing?
Aside from the official [MaterialX spec repository][1],
you can find open source MaterialX files on multiple platforms,
e.g. [AMD's GPU Open MaterialX Library](https://matlib.gpuopen.com/)
or [ambientCG](https://ambientcg.com/).
In [`downloader`](downloader/README.md)
you can find a script to download a bunch of test files from there.The easiest way to use it is with `cargo run --bin materials-downloader ambientcg`.
[1]: https://github.com/AcademySoftwareFoundation/MaterialX/tree/v1.39.0/resources/Materials/Examples