rtcOccluded1.3embree3 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .TH "rtcOccluded1" "3" "" "" "Embree Ray Tracing Kernels 3"
  2. .SS NAME
  3. .IP
  4. .nf
  5. \f[C]
  6. rtcOccluded1\ \-\ finds\ any\ hit\ for\ a\ single\ ray
  7. \f[]
  8. .fi
  9. .SS SYNOPSIS
  10. .IP
  11. .nf
  12. \f[C]
  13. #include\ <embree3/rtcore.h>
  14. void\ rtcOccluded1(
  15. \ \ RTCScene\ scene,
  16. \ \ struct\ RTCIntersectContext*\ context,
  17. \ \ struct\ RTCRay*\ ray
  18. );
  19. \f[]
  20. .fi
  21. .SS DESCRIPTION
  22. .PP
  23. The \f[C]rtcOccluded1\f[] function checks for a single ray (\f[C]ray\f[]
  24. argument) whether there is any hit with the scene (\f[C]scene\f[]
  25. argument).
  26. .PP
  27. The user must initialize the ray origin (\f[C]org\f[] ray member), ray
  28. direction (\f[C]dir\f[] ray member), ray segment (\f[C]tnear\f[],
  29. \f[C]tfar\f[] ray members), and must set the ray flags to \f[C]0\f[]
  30. (\f[C]flags\f[] ray member).
  31. If the scene contains motion blur geometries, also the ray time
  32. (\f[C]time\f[] ray member) must be initialized to a value in the range
  33. [0, 1].
  34. If ray masks are enabled at compile time, the ray mask (\f[C]mask\f[]
  35. ray member) must be initialized as well.
  36. The ray segment must be in the range [0, ∞], thus ranges that start
  37. behind the ray origin are not valid, but ranges can reach to infinity.
  38. See Section [RTCRay] for the ray layout description.
  39. .PP
  40. When no intersection is found, the ray data is not updated.
  41. In case a hit was found, the \f[C]tfar\f[] component of the ray is set
  42. to \f[C]\-inf\f[].
  43. .PP
  44. The implementation makes no guarantees that primitives whose hit
  45. distance is exactly at (or very close to) \f[C]tnear\f[] or
  46. \f[C]tfar\f[] are hit or missed.
  47. If you want to exclude intersections at \f[C]tnear\f[] just pass a
  48. slightly enlarged \f[C]tnear\f[], and if you want to include
  49. intersections at \f[C]tfar\f[] pass a slightly enlarged \f[C]tfar\f[].
  50. .IP
  51. .nf
  52. \f[C]
  53. \f[]
  54. .fi
  55. .IP
  56. .nf
  57. \f[C]
  58. \f[]
  59. .fi
  60. .PP
  61. The ray must be aligned to 16 bytes.
  62. .SS EXIT STATUS
  63. .PP
  64. For performance reasons this function does not do any error checks, thus
  65. will not set any error flags on failure.
  66. .SS SEE ALSO
  67. .PP
  68. [rtcOccluded1], [RTCRay]