rtcTraver...ded4/8/16(3)

πŸ“¦ version 4.4.1, in ubuntu stonking

πŸ’– rtcTraversableOccluded4/8/16 β€” finds any hits for a ray packet πŸ’–

okay bestie, welcome to the rtcTraversableOccluded4/8/16 page, straight out of the Embree Ray Tracing Kernels 4 manual, section 3 (the library-functions section, iykyk). grab a snack, we're doing ray packets today πŸ¦‹


✨ NAME ✨

rtcTraversableOccluded4/8/16 β€” finds any hits for a ray packet

no cap, that's the whole job description. it's giving "just here to tell you if something got hit" πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta pull in the header:

#include <embree4/rtcore.h>

then, choose your fighter β€” 4, 8, or 16 rays at a time, queen:

void rtcTraversableOccluded4(
  const int* valid,
  RTCTraversable traversable,
  struct RTCRay4* ray,
  struct RTCOccludedArguments* args = NULL
);
void rtcTraversableOccluded8(
  const int* valid,
  RTCTraversable traversable,
  struct RTCRay8* ray,
  struct RTCOccludedArguments* args = NULL
);
void rtcTraversableOccluded16(
  const int* valid,
  RTCTraversable traversable,
  struct RTCRay16* ray,
  struct RTCOccludedArguments* args = NULL
);

notice how args is just vibing there with a default of NULL? yeah. optional queen behavior. πŸ‘‘


πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea, bestie: the rtcTraversableOccluded4/8/16 functions are literally equivalent to rtcOccluded4/8/16, except β€” and this is the main character plot twist β€” they take a traversable object (that's the traversable argument, stunning) instead of a scene object. 🫢

that's it. that's the difference. iconic.

and if you want the full lore, the details, the whole saga? go read the documentation of rtcOccluded4/8/16. it's all there, I promise. ✨


πŸ’€ EXIT STATUS πŸ’€

okay so, for performance reasons β€” and she is very serious about performance β€” this function does not do any error checks. so on failure, it will not set any error flags. none. zero. not a single one. πŸ™ˆ

lowkey important: if something goes wrong, this function is not gonna tell you. it's not snitching. check your own stuff, bestie. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, fr fr:

  • [rtcOccluded4/8/16]
  • [rtcGetSceneTraversable]

and that's the whole page, babe. this one comes to you courtesy of Embree Ray Tracing Kernels 4, page rtcTraversableOccluded4/8/16(3) β€” section 3, library functions, the whole thing. periodt. πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from