KhronosGroup / glTF-Render-Fidelity

Apache License 2.0
9 stars 2 forks source link

Blender animation suggestion #6

Open emackey opened 5 months ago

emackey commented 5 months ago

I noticed in blender-cycles-golden.png that the animated triangle is not at the start of its animation cycle.

Blender uses a default start frame number of "1", but glTF animations start at time zero (in seconds, not frame numbers). The answer here might be to add some Python commands to the blender render script:

bpy.context.scene.frame_start = 0
bpy.context.scene.frame_current = 0

This shouldn't alter non-animated glTF examples, and should make the animated ones start at the beginning, like other engines.

elalish commented 5 months ago

Excellent, want to make a PR?

emackey commented 5 months ago

Certainly, but, I'm blocked by #4 because I would need to regenerate goldens.