MilchRatchet / Luminary

CUDA based Pathtracing Offline and Realtime Renderer
MIT License
30 stars 1 forks source link

Raytracing with OptiX #82

Closed MilchRatchet closed 1 year ago

MilchRatchet commented 1 year ago

This PR adds support for ray tracing using OptiX. For this I updated the dependencies (and thus minimum requirements). The OptiX implementation is a good bunch faster than my own implementation but only by about 50% which I would say is pretty good for my implementation considering that it runs entirely on CUDA cores. The new OptiX implementation is the default one now and the Luminary BVH is only built if it is selected in realtime. The option to select the BVH using lum files is not implemented yet. In general, there are a few things in code that have become less than optimal due to this change that I will address in the future whenever I feel like it. These things are not of high priority though so they are no blockers for this PR.

A major issue currently is that the user will now need OptiX installed (or so I would thing) and the OptiX shader ptx file needs to be copied aswell. To avoid the latter I am already working on a solution with which I can embed binary files into executable but more on that when it is done.

Baked files will need some attention again since they are and were broken.

Closes #41