Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Vertices order for normal computation

klimov__kirill
Beginner
533 Views

Hello!

I want to ask: which vertex order in triangle embree uses for normal computation?

As far as i can see embree uses clock-wise order. So triangle with vertices ((0, 0, 0), (1, 0, 0), (0, 1, 0)) has (0, 0, -1) normal. Also it matches with https://software.intel.com/en-us/forums/embree-photo-realistic-ray-tracing-kernels/topic/541981#comment-1814636. But i cannot find any information about it inside documentation, so i want to justify my thoughts.

 

Thanks in advance!

0 Kudos
1 Solution
SvenW_Intel
Moderator
533 Views

Embree 2 uses clock-wise order, but in Embree 3 we changed this to counter clockwise as this is more widely used. See the figure for the description of RTC_GEOMETRY_TYPE_TRIANGLE.

View solution in original post

2 Replies
SvenW_Intel
Moderator
534 Views

Embree 2 uses clock-wise order, but in Embree 3 we changed this to counter clockwise as this is more widely used. See the figure for the description of RTC_GEOMETRY_TYPE_TRIANGLE.

klimov__kirill
Beginner
533 Views

Thank you!

Reply