Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
6629 Discussions

Clarification on parameter for IntersectMO function in the Realistic Rendering and 3D Data Processing Library.

gkbee
Beginner
148 Views
Hello All,

I have been trying to understand what the parameter pTrngl ( a Ipp32s*) input value represents. The parameter is defined as: Pointer to the triangle index if the intersection is found, if not it is set to -1, and then further in the description: Only rays for which value pTrngl is greater than -1 are considered.

I understand the output. If a scene triangle was intersected, pTrngl represents the index in the array of triangle indices and this has been working for me fine. What I do not understand is why pTrngl is also an input parameter, how is it used?

Any help here would be greatly appreciated!

Thankfully,

George.
0 Kudos
1 Solution
Chao_Y_Intel
Employee
148 Views
George,

please find some comments from the function expert:

ipprIntersectMO are used to process secondary rays. Not all rays in the bunch of rays are valid after intersection primary rays with scene geometry or because of shadows. Parameter pTrngl is used as the mask which masks invalid rays in the bunch and it can speedup calculation secondary rays.

Thanks,
Chao

View solution in original post

2 Replies
Chao_Y_Intel
Employee
149 Views
George,

please find some comments from the function expert:

ipprIntersectMO are used to process secondary rays. Not all rays in the bunch of rays are valid after intersection primary rays with scene geometry or because of shadows. Parameter pTrngl is used as the mask which masks invalid rays in the bunch and it can speedup calculation secondary rays.

Thanks,
Chao

gkbee
Beginner
148 Views
Thank you Chao, that is just what I needed to know!
Reply