Camera animation in GLTF.

Hi,
I'm trying to export camera animations in GLTF format. I have created a new node for camera and added all the animation information. However, when I view them in Don McCurdy's viewer, the animations aren't playing correctly.
After investigating, I found out that while the interpolation data is fine, there's something wrong with the camera's position.

I've tried two things to fix it: first, exporting the actual camera positions along the path they follow in the animation, and second, only exporting the starting and ending positions of the camera and breaking the path between them into eleven segments. But no matter what I do, the animations still turn out different each time

Does anyone have any idea what was wrong.
I have attached difference in Blender exported GLTF and file exported by me.
and I have also attached Sample model (Blender exported and my exported model)

Dmitrii Pasukhin's picture

Hello, at the moment OCCT doesn't support GLTF animation.

Best regards, Dmitrii.

rahulmulik9's picture

Open cascade have GLTF writer : https://dev.opencascade.org/doc/refman/html/class_r_w_gltf___caf_writer....
Using this I am trying to export Camera animation.