Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)

Use world space?

theigors
Beginner
414 Views

Hi All

Is it make a sense to build embree accel structs in world space and convert rays/poinrs from camera to world before cast rays? Many scenes are built as "more aligned" in world space. so at least in theory a better data ballance/division can be  achieved. Did anyone try and what is an effect?

Thanks

0 Kudos
3 Replies
SvenW_Intel
Moderator
414 Views

In ray tracing you by default build your acceleration structure in world space, to take advantage of aligned geometry as you point out. This further has the advantage that one can move the camera without having to rebuild the acceleration structure. To get best performance pass world space geometry to Embree.

0 Kudos
theigors
Beginner
414 Views

My tests don't show significant speedup for room scene (attach)

- 3:33 world space
- 3:38 camera space

0 Kudos
SvenW_Intel
Moderator
414 Views

Your camera view is almost axis aligned, thus it is not surprising that you do not see a big difference. If you rotate the camera by 45° you should see a performance degragation.

0 Kudos
Reply