GPUOpen-LibrariesAndSDKs / RadeonRays_SDK

Radeon Rays is ray intersection acceleration library for hardware and software multiplatforms using CPU and GPU
MIT License
1.07k stars 192 forks source link

Include primitive's geometry normal in Intersection #201

Open qhaas opened 5 years ago

qhaas commented 5 years ago

Embree (2.8.x at least) includes the intersected primitive's (facet's) unnormalized geometry normal (Ng) in its intersection return data. While trying to port some code from Embree to RadeonRays, I noticed RadeonRays doesn't have a way to retrieve this value and thus I have to manually calculate it. It would be nice if there was a way to retrieve this data from the RadeonRays API. If not returned by Intersection, then maybe a RadeonRays API query to retrieve it by shapeid / primid.

devshgraphicsprogramming commented 5 years ago

@qhaas how would you propose to change the API of Radeon Rays for this?