GameFoundry / bsf

Modern C++14 library for the development of real-time graphical applications
https://www.bsframework.io
MIT License
1.75k stars 195 forks source link

[2.0] Ray tracing? #130

Open unit-404 opened 6 years ago

unit-404 commented 6 years ago

(I just wrote the version, because it's not known when it really can happen.)

Soon (namely, in about 2 years approximately), almost all hi-end GPUs will be able to use ray tracing technology at an acceptable level. As I propose to create a field for experiments with various implementations of this technique. I know that mass production is still very far away.

BearishSun commented 6 years ago

It certainly appears to be a direction where things are going. nVidia have seem to have gotten furthest with their RTX technology, but it remains to be seen how portable that is, or how tied to their products it is. If it ends up being a general purpose solution for all high-end hardware it would be a nice thing to integrate.

AMD has their Radeon Rays, which we'll probably be integrating for light baking in the future, but it wasn't designed for real-time AFAIK - the biggest problem being the handling of dynamic scenes/geometry (as is usually the case with raytracing). But they might be motivated by nVidia and make a few updates to it.

christianclavet commented 6 years ago

This will be available on the software side as well for the cards that don't support RTX. I just don't know if that by "software" side, they mean, using something like OPENCL/CUDA or using the CPU. From what I've read, it will added as an extension to DX12 and Vulkan 1.1, don't know for GL.

For the star wars demo, it required 4 cards in SLI, and the scene was not that big. It improve the speed, of rendering, but there some years to wait before having "real time raytracing" for big scenes in 4K from a single GPU...

But this open new doors for productions that is using that technology to render 3D cartoon and 3D animated shows Zafari made here in Montreal at Digital Dimension. This is an area of interest for me, and Banshee perhaps would have all the tools to also create animated show in the future (Animation window seem a good step in that direction! :)). Unity also use this for the Project Adam and this tech will help them produce faster.