<!-- Allow this file to not have a first line heading -->
<!-- markdownlint-disable-file MD041 -->
<!-- inline html -->
<!-- markdownlint-disable-file MD033 -->
<div align="center">
# ð¹ï¸ Cornell McRay t'Racing
A quick'n'dirty game sample using [`kajiya`](https://github.com/EmbarkStudios/kajiya), [`physx-rs`](https://github.com/EmbarkStudios/physx-rs), and [`dolly`](https://github.com/h3r2tic/dolly).
![mcray](https://user-images.githubusercontent.com/16522064/146706174-dabbe36a-d846-4550-a6d6-35aa9047c4f6.gif)
</div>
## System requirements
See [the `kajiya` readme](https://github.com/EmbarkStudios/kajiya/#platforms).
## 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](LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
at your option.
没有合适的资源?快使用搜索试试~ 我知道了~
一个使用 kajiya、physx-rs 和 dolly 的 quick'n'dirty游戏 示例_rust_代码_下载
共27个文件
rs:4个
glb:4个
gltf:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 180 浏览量
2022-06-23
12:11:24
上传
评论
收藏 5.81MB ZIP 举报
温馨提示
效果展示: https://user-images.githubusercontent.com/16522064/146706174-dabbe36a-d846-4550-a6d6-35aa9047c4f6.gif 跑步 确保dxcompiler.dll/libdxcompiler.so在可执行环境中。 (您可以从中获取kajiya并复制到cornell-mcray,或将其存储在系统中的某个位置PATH) 然后运行: cargo run --release 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
cornell-mcray-main.zip (27个子文件)
cornell-mcray-main
LICENSE-MIT 1KB
LICENSE-APACHE 11KB
bake.cmd 498B
rustfmt.toml 52B
bake.sh 484B
Cargo.lock 78KB
assets
car
wheel_left.glb 1.05MB
license.txt 159B
car.glb 8.95MB
wheel_right.glb 1.24MB
track
lights.gltf 8KB
license.txt 391B
lights.bin 2KB
track.bin 433KB
floor_roughness.png 907KB
track.gltf 52KB
occluder.gltf 7KB
cube.glb 2KB
occluder.bin 2KB
src
main.rs 1KB
physics.rs 10KB
game.rs 10KB
car.rs 13KB
Cargo.toml 998B
.gitignore 49B
.cargo
config 278B
README.md 2KB
共 27 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9149
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功