DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

Camera animation in GLTF.

Data Exchange and Application FrameworkMon, 04/15/2024 - 08:222 replies

Browse this forum
QuestionAuthor

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)

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

Best regards, Commenter-1.

02Author

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.