Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
35 Views

Vertices order for normal computation

Jump to solution

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

Accepted Solutions
Highlighted
Moderator
35 Views

Embree 2 uses clock-wise

Jump to solution

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
Highlighted
Moderator
36 Views

Embree 2 uses clock-wise

Jump to solution

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
Highlighted
Beginner
35 Views

Thank you!

Jump to solution

Thank you!

0 Kudos