o------------------------------------------------------------------------------o
| |
| cal3d fileformat description |
| |
| Version 13 |
| |
| Copyright (C) 2001, 2002, 2003 Bruno 'Beosil' Heidelberger |
| Copyright (C) 2006 Loic Dachary <loic@gnu.org> |
| Copyright (C) 2013-2014 The Brenwill Workshop Ltd. <support@brenwill.com> |
| |
o------------------------------------------------------------------------------o
o------------------------------------------------------------------------------o
| Table of Contents |
o------------------------------------------------------------------------------o
1 What is this document for?
2 cal3d skeleton file (.csf)
3 cal3d animation file (.caf)
4 cal3d mesh file (.cmf)
5 cal3d material file (.crf)
6 cal3d skeleton xml file (.xsf)
7 cal3d animation xml file (.xaf)
8 cal3d mesh xml file (.xmf)
9 cal3d material xml file (.xrf)
10 Website
11 Author
o------------------------------------------------------------------------------o
| 1 What is this document for? |
o------------------------------------------------------------------------------o
This document describes the format of the different files used in the cal3d
character animation library version @VERSION@
********************************************************************************
********************************************************************************
********************************************************************************
IMPORTANT: As the cal3d library is still in heavy development, the fileformats
described in this document will most likely become obsolete as soon as a new
version of the library is released. Furthermore, the fileformat itself is not
yet big-/little-endian independent and may contain fields that are either
ignored or misinterpreted by the library.
********************************************************************************
********************************************************************************
********************************************************************************
o------------------------------------------------------------------------------o
| 2 cal3d skeleton file (.csf) - read by Cocos3D |
o------------------------------------------------------------------------------o
Stored in this file is the hierarchy of bones that composes the skeleton.
description length type comments
------------------------- ------ -------- -----------------------------------
[header]
magic token 4 const "CSF\0"
file version 4 integer 1300
number of bones 4 integer
ambient light red 4 float scene ambient light color red (version 1300 and above)
ambient light green 4 float scene ambient light color green (version 1300 and above)
ambient light blue 4 float scene ambient light color blue (version 1300 and above)
[first bone]
length of bone name 4 integer
bone name var string
translation x 4 float relative translation to parent bone
translation y 4 float
translation z 4 float
rotation x 4 float relative rotation to parent bone
rotation y 4 float stored as a quaternion
rotation z 4 float
rotation w 4 float
local translation x 4 float translation to bring a vertex from
local translation y 4 float model space into bone space
local translation z 4 float
local rotation x 4 float rotation to bring a vertex from
local rotation y 4 float model space into bone space
local rotation z 4 float
local rotation w 4 float
parent bone id 4 integer index to parent bone
lighting type 4 integer lighting type (version 1300 and above)
bone color red 4 float bone color red (version 1300 and above)
bone color green 4 float bone color green (version 1300 and above)
bone color blue 4 float bone color blue (version 1300 and above)
number of children 4 integer
[first child]
child bone id 4 integer index to child bone
[all other children]
...
[all other bones]
...
o------------------------------------------------------------------------------o
| 3 cal3d animation file (.caf) - read by Cocos3D |
o------------------------------------------------------------------------------o
All the keyframes of an animation are stored in this file. They are grouped by
tracks (one track per animated bone) and contain the time, the relative position
and the relative rotation to the parent bone.
description length type comments
------------------------- ------ -------- -----------------------------------
[header]
magic token 4 const "CAF\0"
file version 4 integer 1300
is compressed 4 integer whether animation content is compressed (version 1300 and above)
duration 4 float length of animation in seconds
number of tracks 4 integer
flags 4 integer bit-wise OR flags (version 1300 and above)
[first track]
bone id 4 integer index to bone
number of keyframes 4 integer
[first keyframe]
time 4 float time of keyframe in seconds
translation x 4 float relative translation to parent bone
translation y 4 float
translation z 4 float
rotation x 4 float relative rotation to parent bone
rotation y 4 float stored as a quaternion
rotation z 4 float
rotation w 4 float
[all other keyframes]
...
[all other tracks]
...
o------------------------------------------------------------------------------o
| 4 cal3d mesh file (.cmf) - not read by Cocos3D |
o------------------------------------------------------------------------------o
This file contains all the mesh data, such as the weighted influences of the
bones on each vertex. The mesh is splitted into submeshes to group faces with
the same material thread.
description length type comments
------------------------- ------ -------- -----------------------------------
[header]
magic token 4 const "CMF\0"
file version 4 integer 700
number of submeshes 4 integer
[first submesh]
material thread id 4 integer
number of vertices 4 integer
number of faces 4 integer
number of lod steps 4 integer number of vertices to collapse
number of springs 4 integer number of springs
number of maps 4 integer
[first vertex]
position x 4 float position in model space
position y 4 float
position z 4 float
normal x
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
在cocos3D的一个页面中显示两个场景的xcode代码 (753个子文件)
stb_image.c 145KB
cpCollision.c 25KB
cpBBTree.c 21KB
cpSpace.c 19KB
cpSpaceHash.c 15KB
cpShape.c 15KB
cpBody.c 14KB
cpSpaceStep.c 14KB
cpArbiter.c 14KB
cpSpaceComponent.c 12KB
chipmunk.c 9KB
cpPolyShape.c 9KB
cpSpaceQuery.c 7KB
cpDampedSpring.c 7KB
cpSweep1D.c 6KB
cpSpaceDebug.c 6KB
cpDampedRotarySpring.c 6KB
cpGrooveJoint.c 6KB
cpSlideJoint.c 6KB
cpHashSet.c 6KB
cpPinJoint.c 5KB
cpRatchetJoint.c 5KB
cpPivotJoint.c 5KB
cpRotaryLimitJoint.c 5KB
cpGearJoint.c 4KB
cpConstraint.c 4KB
cpSimpleMotor.c 3KB
cpSpatialIndex.c 2KB
cpArray.c 2KB
base64.c 2KB
mach_timing.c 609B
ccUtils.c 367B
PVRTModelPOD.cpp 150KB
PVRTPFXParser.cpp 86KB
PVRTString.cpp 58KB
PVRTTexture.cpp 40KB
PVRTTextureAPI.cpp 36KB
PVRTDecompress.cpp 33KB
PVRTTextureAPI.cpp 26KB
PVRTMatrixF.cpp 26KB
PVRTVertex.cpp 23KB
PVRTBoneBatch.cpp 22KB
PVRTVector.cpp 15KB
PVRTTrans.cpp 14KB
PVRTglesExt.cpp 13KB
PVRTResourceFile.cpp 11KB
PVRTQuaternionF.cpp 9KB
PVRTgles2Ext.cpp 6KB
PVRTStringHash.cpp 6KB
PVRTFixedPoint.cpp 6KB
PVRTError.cpp 2KB
.DS_Store 6KB
.DS_Store 6KB
CC3Fog.fsh 5KB
CC3LibTexturableBumpMapObjectSpace.fsh 4KB
CC3LibTexturableBumpMapTangentSpace.fsh 4KB
CC3LibSetGLFragColorAlphaTest.fsh 3KB
CC3LibDualSidedFragmentColor.fsh 3KB
CC3LibLightProbeIllumination.fsh 3KB
CC3LibEnvironmentReflection.fsh 3KB
CC3BumpMapObjectSpaceAlphaTest.fsh 2KB
CC3BumpMapTangentSpaceAlphaTest.fsh 2KB
CC3LibSingleSidedFragmentColor.fsh 2KB
CC3SingleTextureReflectAlphaTest.fsh 2KB
CC3BumpMapObjectSpace.fsh 2KB
CC3BumpMapTangentSpace.fsh 2KB
CC3NoTextureReflectAlphaTest.fsh 2KB
CC3SingleTextureReflect.fsh 2KB
CC3PointSpritesAlphaTest.fsh 2KB
CC3NoTextureReflect.fsh 2KB
CC3NoTextureAlphaTest.fsh 2KB
CC3LibSingleTexture2D.fsh 2KB
CC3SingleTextureAlphaTest.fsh 2KB
CC3SingleTexture.fsh 2KB
CC3NoTexture.fsh 2KB
CC3PointSprites.fsh 2KB
CC3LibTexturedPointSprite.fsh 2KB
CC3ClipSpaceSingleTexture.fsh 2KB
CC3PureColor.fsh 2KB
CC3ClipSpaceNoTexture.fsh 2KB
CC3LibSetGLFragColor.fsh 2KB
CC3LibDefaultPrecision.fsh 1KB
teapot.h 195KB
CC3Node.h 191KB
CC3Mesh.h 141KB
CC3Foundation.h 102KB
CC3VertexArrays.h 96KB
CC3MeshNode.h 93KB
CC3Texture.h 88KB
PVRTVector.h 86KB
CC3RenderSurfaces.h 85KB
CC3Shaders.h 85KB
CC3Camera.h 72KB
CC3NodeAnimation.h 72KB
CC3Scene.h 65KB
CC3Particles.h 64KB
CC3OpenGL.h 64KB
uthash.h 58KB
CC3BoundingVolumes.h 56KB
utlist.h 53KB
共 753 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
- ofengxuelei2015-03-21看了下 不错 虽然不是我像找的
luc_cj
- 粉丝: 18
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功