cornell-mcray icon indicating copy to clipboard operation
cornell-mcray copied to clipboard

MacOS support

Open TheKnarf opened this issue 2 years ago • 5 comments

Is there any way to ruin this on MacOS? With MoltenVK or something?

TheKnarf avatar Jan 31 '22 10:01 TheKnarf

Sorry, no, MoltenVK doesn't do ray-tracing. Please see https://github.com/EmbarkStudios/kajiya/issues/37 for the current kajiya-side issue.

h3r2tic avatar Jan 31 '22 11:01 h3r2tic

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?

TheKnarf avatar Feb 02 '22 13:02 TheKnarf

Mainline of kajiya requires ray tracing, but you could check out Ashley's branch from the linked issue.

h3r2tic avatar Feb 02 '22 16:02 h3r2tic

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

expenses avatar Feb 02 '22 16:02 expenses

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 a note: ld: library not found for -luuid error. This might not work on the M1 macs though (Traverse-Research/hassle-rs#23 (comment)).

expenses avatar Feb 02 '22 16:02 expenses