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
I’m new to deck.gl and 3D graphics, still learning the basics.
In my app, I’m using SimpleMeshLayer with luma.gl’s CubeGeometry to draw shapes. While looking into performance optimization, I came across binary attributes. The docs seem clear, but I think I’m missing something.
getPosition and getColor work with binary attributes, but getScale and getOrientation don’t. Example:
Also, looking into the SimpleMeshLayer source code, I saw that attributeManager registers instancePositions, instanceColors, and I noticed instanceModelMatrix with accessors like getOrientation. Maybe I’m misunderstanding how these should work. Can you clarify?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’m new to deck.gl and 3D graphics, still learning the basics.
In my app, I’m using
SimpleMeshLayer
withluma.gl
’sCubeGeometry
to draw shapes. While looking into performance optimization, I came across binary attributes. The docs seem clear, but I think I’m missing something.getPosition
andgetColor
work with binary attributes, butgetScale
andgetOrientation
don’t. Example:What am I doing wrong here?
Also, looking into the
SimpleMeshLayer
source code, I saw thatattributeManager
registersinstancePositions
,instanceColors
, and I noticedinstanceModelMatrix
with accessors likegetOrientation
. Maybe I’m misunderstanding how these should work. Can you clarify?Beta Was this translation helpful? Give feedback.
All reactions