Metal for Accelerating Ray Tracing - any realtime examples?

Hello guys,


Is it possible to achieve realtime Ray Tracing with metal? Is there any example or use case?
thanks!

Hi manemanero,


I think you'll wan to take a look at this to start https://developer.apple.com/videos/play/wwdc2018/606/

There is also a sample code project for download in the link 4k4 provided.

Thanks Dan!
I just downladed sample code, but its not an interactive scene right? I cannot rotate, zoom, etc on iPad or Mac...

Thanks 4k4.
Yep, I have seen this example. But I was looking for an example of a realtime interactive scene, ideally integrated in Scenekit.
The idea is to study the feasibility to have ray tracing in an realtime scene.

Point well taken manemanero.


We had an interactive demo at the WWDC 2018 ray tracing lab running on an iMac Pro.


It may not be publically available and I don't think it uses SceneKit.


In answer to your other question re: SceneKit, AFAIK there is no ray tracing API in SceneKit.

Please file an enhancement request / suggestion at <http://developer.apple.com/bugreporter/>

Thanks @4k4!
Wow, would love to see that demo! Could you ask the person responsible for that demo if its possible to have access to it?
About Scenekit, is irt possible to integrate the code example from Dan Omachi to render a Scenekit Scene?
thanks

Looking into it re: demo.


Re: SceneKit integration, not entirely sure. I'd cross-post this question in the SceneKit forum.

Hi 4k4, any news? 🙂

Thanks for the follow-up and if you don't hear from me for a while feel free to follow-up again.


Otherwise still not yet sure what can be shared.


Also, to get a better idea of what I'm referring to please see <https://developer.apple.com/videos/play/wwdc2018-102/?time=4717>

Unfortunately we're unable to share this sample for a variety of reasons.


We do however believe that it would be straightforward for you to modify the official sample to add interactive camera controls.

Hi 4k4,


I was running the example from the WWDC session you mentioned. The Cornell Box renders fine on my iOS devices. But on my Mac, there seem to be only the red channel. I wish to post a screenshot as well. I wonder if developer forum supports uploading images to reply messages.

Hello 4k4,


Wondering if there are any news on a Ray Tracing workflow that would be possible to integrate with an exhsting scenekit scene.


best

Metal for Accelerating Ray Tracing - any realtime examples?
 
 
Q