您将如何从 .fbx 文件中读取动画?为此,我将 Java 与 OpenGL 一起使用,但这与此问题无关。我环顾了几个不同的来源,但找不到有关 .FBX 文件格式的任何信息。
我的模型加载器当前加载名称、索引、顶点、法线、骨骼名称、骨骼权重和骨骼矩阵。但是我无法理解如何从这里读取动画。
我可以假设这是文件的动画部分。
;Takes and animation section
;----------------------------------------------------
Takes: {
Current: "ArmatureAction"
Take: "ArmatureAction" {
FileName: "ArmatureAction.tak"
LocalTime: -1924423249,105843278750
ReferenceTime: -1924423249,105843278750
;Models animation
;----------------------------------------------------
Model: "Model::body" {
Version: 1.1
Channel: "Transform" {
Channel: "T" {
Channel: "X" {
Default: 0.000000000000000
KeyVer: 4005
KeyCount: 1
Key:
1924423250,0.000000000000000,L
Color: 1,0,0
}
Channel: "Y" {
Default: 0.000000000000000
KeyVer: 4005
KeyCount: 1
Key:
1924423250,0.000000000000000,L
Color: 0,1,0
}
Channel: "Z" {
Default: 0.000000000000000
KeyVer: 4005
KeyCount: 1 …Run Code Online (Sandbox Code Playgroud)