KhronosGroup / KhronosGroup/glTF-Sample-Assets

Animated Cube is shown wrong in glTF viewers

Open
#74 26 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
107
Avg merge
9h 39m
Merged PRs (30d)
4

Description

the animated cube has two keyframes for rotation of the small box.
First keyframe has quat {0,0,0,-1} wich has an argument of 180 degrees
Second keyfram has quat {1,0,0,+} (a very small w) wich has an argument of 90 degrees (180 degrees rotation around [1,0,0] )

All slerps between quat 1 and quat 2 will have arguments from 180 down to 90 around x axis wich is a backward rotation around the x axis. All viewers I have found shows a clockwise rotation around x axis and that I dont understand

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by inspecting the animated cube asset's two rotation keyframes and the glTF viewer behavior described in the issue; determine the intended rotation from the quaternion values, then verify the result in the affected viewers.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.