cornell-mcray
cornell-mcray copied to clipboard
đš A quick'n'dirty game sample using kajiya, physx-rs, and dolly
System requirements
See the kajiya readme.
Building
Clone this repo to the same parent directory that kajiya is in:
kajiya/ <- root of the `kajiya` repository
cornell-mcray/ <- this repository
Make sure the bake bin in the kajiya folder is built:
cd kajiya
cargo build --release -p bake
Bake the meshes for cornell-mcray:
cd cornell-mcray
bake.cmd
^ replace bake.cmd with ./bake.sh on Linux.
Running
Make sure dxcompiler.dll / libdxcompiler.so is in the executable environment.
(You can grab it from kajiya and copy into cornell-mcray, or stash it somewhere in the system PATH)
Then run:
cargo run --release
Controls
- WSAD - driving
- Shift - nitro
- B - spawn a box đ¤ˇââī¸
- Q - party mode đ
License
This contribution is dual licensed under EITHER OF
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
