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

Vertices order for normal computation

klimov__kirill
Beginner
1,185 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
1,185 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

0 Kudos
2 Replies
SvenW_Intel
Moderator
1,186 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.

0 Kudos
klimov__kirill
Beginner
1,185 Views

Thank you!

0 Kudos
Reply