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

RTC_GEOMETRY_TYPE_SPHERE_POINT geometry in 3.4

AndrewC
新貢獻者 III
1,202 檢視

Hi,

I am wanting to use the new  RTC_GEOMETRY_TYPE_SPHERE_POINT in embree 3.4. However it's unclear to me what is returned in the RayHit structure for a sphere hit? What does u,v mean for a sphere?

 

Andrew

0 積分
1 解決方案
SvenW_Intel
主席
1,202 檢視

The hit distance and geometry normal field are set for the point geometry, u and v are set to zero. In particular the returned normal can get used to calculate coordinates for your sphere parametrization of choice.

在原始文章中檢視解決方案

2 回應
SvenW_Intel
主席
1,203 檢視

The hit distance and geometry normal field are set for the point geometry, u and v are set to zero. In particular the returned normal can get used to calculate coordinates for your sphere parametrization of choice.

AndrewC
新貢獻者 III
1,202 檢視

OK, makes sense thanks!

回覆