[HTML] occlude={[refs]} not occluding when passing array of refs #1778
Unanswered
Remi-Tribia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to ignore Html occlusion for transparent object, so I traverse my scene, and only collect meshes with material that has
transparent=false
in a ref array[{current: objA}, {current: objB}, ...]
and I pass this array to the Htmlocclude
prop.Setting some breakpoint in the Html.js file, I can see the
raytraceTarget
seems correct (I get an array of Meshes) and is correctly passed to theisObjectVisible()
method. But the Html elements are always visible, as if there was no occlusion at all (it works correctly just settingocclude={true}
).I'm using the latest version of drei (9.93.0), I also tried using
"blending"
but the Html element doesn't appear correctly (except behind transparent material suprisingly).I guess I'm doing something wrong, or even what I want to achieve is not possible at all, seeing by default it's just the whole Scene that is used, I guess if one of my transparent object is parented to an opaque object, it will occlude anyway... But I would expect it to behave the same way as occlude={true}?
Thanks in advance!
Rémi
Beta Was this translation helpful? Give feedback.
All reactions