Open samyH opened 3 months ago
Hi, sorry for slow response on this one.
Can you share source code showing the problem, e.g. via https://glitch.com. It's hard to diagnose the problem based on your description.
If envMaps aren't working that suggests an issue with your code, as those can work, see e.g. https://diarmidmackenzie.github.io/instanced-mesh/tests/env-map-example.html
I didn't do much testing with animations, and haven't looked at how this would work with instancing - my assumption is that the animations of each instance would be synchronized, though I believe it could be possible to leverage this three.js enhancement to do better: https://github.com/diarmidmackenzie/instanced-mesh/issues/39
I will have a look at whether I can build an example that uses animation-mixer. No idea how that will turn out.
Great work on this component!
I've got my glb instanced - standard animations seem to be working, but when I'm setting:
el.setAttribute("animation-mixer", "timeScale: 1; loop: once;");
within a component I'm not getting anything - I can see the 'animation-mixer' component is added to the correct entity, but no animation? I don't think it's classed as a SkinnedMesh as there are no bones - the animation has been baked to keyframes in blender as an action.
I also have an envMap which isn't being applied to the instanced meshes?
Any help/guidance on the above would be greatly appreciated.