Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
26 Views

RTC_GEOMETRY_TYPE_SPHERE_POINT geometry in 3.4

Jump to solution

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 Kudos

Accepted Solutions
Highlighted
Moderator
26 Views

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.

View solution in original post

0 Kudos
2 Replies
Highlighted
Moderator
27 Views

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.

View solution in original post

0 Kudos
Highlighted
New Contributor I
26 Views

OK, makes sense thanks!

0 Kudos