- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
In our rendering engine, we have created some user geometry objects (using RTC_GEOMETRY_TYPE_USER). It works like a charm, except when it comes to the filter function from argument that is never triggered. It is working for the standard geometry types.
For the details, the engine calls rtcIntersect1 with the custom argument filter set in the third parameter of type RTCIntersectArguments. We also have set rtcSetGeometryEnableFilterFunctionFromArguments( rtcGeom, true) for the user geometries, added RTC_RAY_QUERY_FLAG_INVOKE_ARGUMENT_FILTER to arguments flags, but the filter is sill not called.
Do we have to call explicitly the filter from the custom intersect function of the user geometry? Or something else must be missing ?
Thanks in advance for your answers!
Arthur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Arthur,
you are right, for user geometry the callback functions must be called explicitly. That's by design and not a bug.
You can check out the user geometry tutorial code (e.g. tutorials/user_geometry/user_geometry_device.cpp:325-330) to see how it's supposed to be implemented.
Cheers,
Florian
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Arthur,
you are right, for user geometry the callback functions must be called explicitly. That's by design and not a bug.
You can check out the user geometry tutorial code (e.g. tutorials/user_geometry/user_geometry_device.cpp:325-330) to see how it's supposed to be implemented.
Cheers,
Florian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, thank you very much for your help Florian!
Regards,
Arthur

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page