- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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
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.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Chao, that is just what I needed to know!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page