Animating a GLB model works in sandbox but does not work in my scene

Hi,

I am making an Archviz using Babylonjs. I have modeled in Blender a simple door which I want to animate as if its opening. I have created three animations:

StartAction - Doors remain shut
doorFrontLeftAction - Left door opens
doorFrontRightAction - Right door opens

Works as intended in sandbox.babylonjs.com. The door model can be downloaded here: Door Model

When I add to my scene Archviz Scene when I play the animation a ghost door is left behind. I am unable to figure out why this is happening. I have tried recreating the door model to fix the problem but that did not help.

Please help.

Hi,

It’s because the door gets imported in the playAnimation function, which gets called twice

2 Likes

Yes thanks.