Replies: 2 comments 1 reply
-
Drei HTML is creating a react renderer for each element, this decreases the performance pretty fast. So far there was no reply to the issue unfortunately. |
Beta Was this translation helpful? Give feedback.
-
try occlude = blending or something like that |
Beta Was this translation helpful? Give feedback.
-
Use case:
Render a earth globe with markers that occlude the markers while rotates.
Problem:
When I render many markers and set
occlude
similar to https://codesandbox.io/s/6oei7 the FPS goes really low therefore the animation goes super laggy. I was trying to use a more specific set of the property like the docs explainocclude={[earthGlobe]}
but I am not sure what I suppose to use there.My absurd attempt was to do something like this:
But as it expects apparently a
useRef
veriable it does not match the types and yields error.Question:
How I properly use
occlude
prop onHtml
?Visual context:
My earth globe looks like this:
I was looking for a way to achieve something like https://www.fonterra.com/nz/en/campaign/fonterra-globe.html#/home but maybe them don't even use
HTML
(I think they use THREEJS tho)Beta Was this translation helpful? Give feedback.
All reactions