cornell-mcray
cornell-mcray copied to clipboard
MacOS support
Is there any way to ruin this on MacOS? With MoltenVK or something?
Sorry, no, MoltenVK doesn't do ray-tracing. Please see https://github.com/EmbarkStudios/kajiya/issues/37 for the current kajiya-side issue.
This "car game" is an interesting demo in itself of whats possible with Rust, physx-rs
and dolly
. Would it be able to run it without ray-tracing?
Mainline of kajiya
requires ray tracing, but you could check out Ashley's branch from the linked issue.
I have a working branch here for macOS here: https://github.com/expenses/cornell-mcray/tree/macos (without ray tracing of course).
It doesn't seem to perform super well but the framerate is acceptable (on my macbook) with cargo run --release -- --width 640 --height 480
![Screen Shot 2022-02-02 at 17 25 29](https://user-images.githubusercontent.com/13566135/152194688-aa7f35e5-8e61-4a2d-badf-915e49fa0224.png)
Oh, I should just mention again that you need ossp-uuid
(https://github.com/EmbarkStudios/kajiya/issues/37#issuecomment-1003619713):
To run it you'll need
ossp-uuid
installed (brew install ossp-uuid
) to avoid anote: ld: library not found for -luuid
error. This might not work on the M1 macs though (Traverse-Research/hassle-rs#23 (comment)).