Baking Animation

I am trying to bake an animation to a TSL attributeArray. I save the vertexIDs to a vertex attribute to reference the element in the array but I get a jumble of vertices. Try switching useStorage. The relevant code is in the bakeAnimation function and the tsl function. I’m setting the vertexNode to the TSL code boidVertexTSL.

The aim is to get these guys flapping their wings.

I thought skinned animation vertex transformation happens on the GPU… how are you reading the transformed vertices out in bakeAnimation? I might be off base with this… but recall seeing code in threejs to do the vertex transformation in JS as well… I think i saw someone do something with that for computing accurate bounding boxes…

1 Like