8. lta的样式框架说明

93 阅读1分钟

(lt-model-0 
    (on-load-cmds 
        (anim-bindings #绑定多个动画
            (anim-binding   #多个 ,全局对整个动画(每帧)生效
                (name "M-wait0" )   #绑定动画 "M-wait0"
				(dims    #维度 dimensions  模型范围  一个立方体,(长 宽 高)框柱模型
					(40.000000 100.000000 40.000000 )
				)
				(translation   #相对偏移位置 x y z 
					(0.000000 0.000000 0.000000 )
				)
				(interp-time 0 )   #interpration 动画时间插值 时间ms
            )
            #...
        )
        (set-node-flags  #设置骨骼 节点标志
			(
				("Scene Root" 0 )
				("M-bone" 0 )
                #...
            )
        )
        (set-command-string "" )
        (lod-groups   #细节级别
			(
				(create-lod-group "Object02" 
					(lod-dists  
						(0.000000 )
					)
					(shapes 
						("Object02" )
					)
				)
			)
		)
        (set-global-radius 96.000000 ) 
        (add-node-obb-list  #朝向 包围盒  bounding box
			(
				(add-node-obb "Scene Root" 
					(position  #位置
						(0.000000 0.000000 0.000000 )
					)
					(orientation  #方向
						(0.000000 0.000000 0.000000 1.000000 )
					)
					(dimensions  #尺寸
						(1.000000 1.000000 1.000000 )
					)
					(enabled false )
				)
            )
        )
        (anim-weightsets 
			(
				(anim-weightset 
					(name "Upper" )
					(weights 
						(0.000000 0.000000 0.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 )
					)
				)
            )
        )
        (add-deformer 
				(skel-deformer 
					(target "Object02" )
					(influences 
						("Scene Root" "M-bone" "M-bone Pelvis" "M-bone Spine" "M-bone Spine1" "M-bone Neck" "M-bone Head" "M-bone L Clavicle" "M-bone L UpperArm" "M-bone L Forearm" "M-bone L Hand" "M-bone L Finger0" "M-bone L Finger1" "M-bone L Finger2" "M-bone R Clavicle" "M-bone R UpperArm" "M-bone R Forearm" "M-bone R Hand" "M-bone R Finger0" "M-bone R Finger1" "M-bone R Finger2" "M-bone L Thigh" "M-bone L Calf" "M-bone L Foot" "M-bone L Toe0" "M-bone R Thigh" "M-bone R Calf" "M-bone R Foot" "M-bone R Toe0" )
					)
					(weightsets 
						(
							(4 1.000000 )
							...
							(2 0.260000 3 0.592000 4 0.148000 )
							(9 1.000000 )
					
							(10 0.500000 12 0.500000 )
							(10 0.500000 12 0.500000 )
							(12 1.000000 )
							(10 1.000000 )
							(10 1.000000 )
							(10 0.500000 12 0.500000 )
							(10 1.000000 )
							
							
							(15 1.000000 )
						)
					)
    )

    (hierarchy   //骨骼关系 关节信息
        (children 
			(
				(transform "Scene Root" 
					(matrix 
						(
							(-1.000000 0.000000 0.000000 0.000000 )
							(0.000000 1.000000 0.000000 0.000000 )
							(0.000000 0.000000 -1.000000 0.000000 )
							(0.000000 0.000000 0.000000 1.000000 )
						)
					)
    )

    (shape "Object02"   #皮
    )

    (shape "OMOH_BL_Head" #皮
    )

    (tools-info ( (compile-options  ( (compression-type 2 ) ) ) ) )

    (animset "M-wait0" 
    )
)