You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great work!
I've been trying to get Embree to match with some other library and it requires me to use backface culling on the curve primitive.
As far as I can tell, the CMake option EMBREE_BACKFACE_CULLING_CURVES is only applicable to RTC_GEOMETRY_TYPE_ROUND_LINEAR_CURVE geometry type. Am I correct?
I think this should be clarified in the documentation if it is the case.
I've sprinkled the necessary #if !defined (EMBREE_BACKFACE_CULLING_CURVES) in my fork wherever needed to support the RTC_GEOMETRY_TYPE_ROUND_BSPLINE_CURVE type.
Would you be willing to consider a PR only for this geometry type? I personally don't need to fix all different curve types.
The text was updated successfully, but these errors were encountered:
This change will not properly ignore backfacing hits. You just ignore the far intersection with the intersection of a segment of the curve, but if you intersect a bend curve on a shallow angle, you may also exit the curve on the near intersection. Reason is that such segments are itself still curved, this the cone bounding might indicate that the hit will be a near hit, but in the end the curvature. E.g. if the ray is entering the curve, and then traveling almost parallel to the exit plane. In that case the decision if the exit is near or far is an unstable decision and the approach will not work.
The right way of doing this is checking the geometry normal Ng and ignoring hits based on this. I will add this to our todo list, maybe next release will also support backface culling of round curve types.
Hi 👋
Thanks for the great work!
I've been trying to get Embree to match with some other library and it requires me to use backface culling on the curve primitive.
As far as I can tell, the CMake option
EMBREE_BACKFACE_CULLING_CURVES
is only applicable toRTC_GEOMETRY_TYPE_ROUND_LINEAR_CURVE
geometry type. Am I correct?I think this should be clarified in the documentation if it is the case.
I've sprinkled the necessary
#if !defined (EMBREE_BACKFACE_CULLING_CURVES)
in my fork wherever needed to support theRTC_GEOMETRY_TYPE_ROUND_BSPLINE_CURVE
type.Would you be willing to consider a PR only for this geometry type? I personally don't need to fix all different curve types.
The text was updated successfully, but these errors were encountered: