首页 collada_reference_card_1_4

collada_reference_card_1_4

举报
开通vip

collada_reference_card_1_4 COLLADA 1.4 Quick Reference Card - Page 1 ©2010 Khronos Group - Rev. 1110 www.collada.org COLLADA™ defines an XML-based schema to allow transport of 3D assets between applications, enabling diverse 3D authoring and content processing tools to be combined ...

collada_reference_card_1_4
COLLADA 1.4 Quick Reference Card - Page 1 ©2010 Khronos Group - Rev. 1110 www.collada.org COLLADA™ defines an XML-based schema to allow transport of 3D assets between applications, enabling diverse 3D authoring and content processing tools to be combined into a production pipeline. All elements on this card apply to the COMMON profile unless otherwise noted. • [n] refers to chapters in COLLADA 1.4 Specification: www.khronos.org/collada • Attributes are green. Optional Attributes are italic. • Elements are blue. [Placeholder elements] are in brackets. • + element expanded elsewhere on card. • - element expanded in specification. • _ indicates sequence. • = indicates choice. • xs:* types are defined in the XML Schema language specification. • The default cardinality is 1. • may contain any well-formed XML data. • Type TargetableFloat is a floating point value that has a sid attribute. • Type TargetableFloat3 is a floating point vector value that has an sid attribute. – Color model is RGB for float3, and RGBA for float4 values. – Spatial coordinates are Cartesian for float (X), float2 (XY), and float3 (XYZ) values. – Texture coordinates are Cartesian for float (S), float2 (ST), and float3 (STP) values; and homogenous for float4 (STPQ) values. The parent of all library_* elements is COLLADA Declares a module of elements. library_animations id xs:ID name xs:NCName asset [0..1] + animation [1..*] + extra [0..*] + Declares a module of elements. library_cameras id xs:ID name xs:NCName asset [0..1] + camera [1..*] + extra [0..*] + Declares a module of elements. library_controllers id xs:ID name xs:NCName asset [0..1] + controller [1..*] + extra [0..*] + Declares a module of elements. library_effects id xs:ID name xs:NCName asset [0..1] + effect [1..*] + extra [0..*] + Declares a module of elements. library_geometries id xs:ID name xs:NCName asset [0..1] + geometry [1..*] + extra [0..*] + Declares a module of elements. library_images id xs:ID name xs:NCName asset [0..1] + image [1..*] + extra [0..*] + Declares a module of elements. library_lights id xs:ID name xs:NCName asset [0..1] + light [1..*] + extra [0..*] + Declares a module of elements. library_materials id xs:ID name xs:NCName asset [0..1] + material [1..*] + extra [0..*] + Declares a module of elements. library_nodes id xs:ID name xs:NCName asset [0..1] + node [1..*] + extra [0..*] + Defines unit of distance for COLLADA elements and objects. unit meter float name xs:NMTOKEN Parent:� asset Metadata Elements [5] Declares the root of the document that contains some of the content in the COLLADA schema. COLLADA version ‡ asset + library_animations [0..*] + library_animation_clips [0..*] - library_cameras [0..*] + library_controllers [0..*] + library_effects [0..*] + library_force_fields [0..*] - library_geometries [0..*] + library_images [0..*] + library_lights [0..*] + library_materials [0..*] + library_nodes [0..*] + library_physics_materials [0..*] - library_physics_models [0..*] - library_physics_scenes [0..*] - library_visual_scenes [0..*] - scene [0..1] + extra [0..*] + Parent:� none ‡ version: 1.4.0, 1.4.1 Defines asset-management information. asset contributor [0..*] author [0..1] xs:string authoring_tool [0..1] xs:string comments [0..1] xs:string copyright [0..1] xs:string source_data [0..1] xs:anyURI created dateTime keywords [0..1] xs:string modified dateTime revision [0..1] xs:string subject [0..1] xs:string title [0..1] xs:string unit [0..1] + up_axis ‡ [0..1] - Parents:� camera, COLLADA, light, material, source, geometry, image, animation, animation_clip, controller, extra, node, visual_scene, library_*, effect, force_field, physics_{material, scene, model}, profile_*, profile_{CG, COMMON, GLES}/technique (FX) ‡ up_axis: X_UP, Y_UP, Z_UP. Default = Y_UP _ = _ _  Scene Elements [5] Describes the entire set of information that can be visualized from the contents of a COLLADA resource. scene instance_physics_scene [0..*] + InstanceWithExtra instance_visual_scene [0..1] + InstanceWithExtra extra [0..*] + Parent:� COLLADA Declares an environment in which physical objects are instantiated and simulated. physics_scene id xs:ID name xs:NCName asset [0..1] + instance_force_field [0..*] + InstanceWithExtra instance_physics_model [0..*] + technique_common gravity [0..1] TargetableFloat3 time_step [0..1] TargetableFloat technique (core) [0..*] + extra [0..*] + Parent:� library_physics_scenes Describes the entire set of information that can be visualized from the contents of a COLLADA resource. visual_scene id xs:ID name xs:NCName asset [0..1] + node [1..*] + evaluate_scene [0..*] + extra [0..*] + Parent:� library_visual_scenes Allows the instantiation of a physics model within another physics model, or in a physics scene. instance_physics_model url xs:anyURI sid xs:NCName parent xs:anyURI instance_force_field [0..*] + InstanceWithExtra instance_rigid_body [0..*] + instance_rigid_constraint [0..*] - extra [0..*] + Parents:� physics_scene, physics_model Instantiates a COLLADA resource. instance_animation, instance_{camera, light, node}, instance_{visual, physics}_scene, instance_physics_material, instance_force_field InstanceWithExtra url xs:anyURI sid xs:NCName name xs:NCName extra [0..*] + Parents:� instance_animation: animation_clip; instance_{camera, light, node}: node; instance_{visual, physics}_scene: scene; instance_physics_material: {instance}_rigid_body, shape; instance_force_field: physics_scene, instance_physics_model Instantiates within an . instance_rigid_body body xs:NCName sid xs:NCName target xs:anyURI technique_common angular_velocity ‡ [0..1] float3 velocity ‡ [0..1] float3 dynamic [0..1] - mass [0..1] TargetableFloat mass_frame [0..1] + inertia [0..1] TargetableFloat3 instance_physics_material +InstanceWithExtra physics_material + shape [0..*] + technique (core) [0..*] + extra [0..*] + Parent:� instance_physics_model ‡ angular_velocity, velocity: Default = 0 0 0 Scene Elements Continued > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ = [0..1] COLLADA 1.4 Quick Reference Card - Page 2 ©2010 Khronos Group - Rev. 1110 www.collada.org   Geometry Elements [5]Describes visual shape and appearance of object in scene. geometry id xs:ID name xs:NCName asset [0..1] + convex_mesh + mesh + spline - extra [0..*] + Parent:� library_geometries Describes basic geometric meshes using vertex and primitive information. mesh source (core) [1..*] + vertices + lines [0..*] + linestrips [0..*] + polygons [0..*] + polylist [0..*] + triangles [0..*] + trifans [0..*] + tristrips [0..*] + extra [0..*] + Parent:� geometry Declares the attributes and identity of mesh vertices. vertices id xs:ID name xs:NCName input (unshared) [1..*] InputLocal semantic ‡ xs:NMTOKEN source xs:URIFragmentType extra [0..*] + Parents:� mesh, convex_mesh ‡ semantic: see note for input (shared) on page 3 Declares the binding of geometric primitives and vertex attributes for a mesh element to produce individual triangles. triangles name xs:NCName count uint material xs:NCName input (shared) [0..*] + InputLocalOffset p [0..1] ListOfUInts extra [0..*] + Parents:� mesh, convex_mesh Declares the binding of geometric primitives and vertex attributes for a mesh element to produce polylists. polylist name xs:NCName count uint material xs:NCName input (shared) [0..*] + InputLocalOffset vcount [0..1] ListOfUInts p [0..1] ListOfUInts extra [0..*] + Parent:� mesh Declares the binding of geometric primitives and vertex attributes for a mesh element to produce polygons. polygons name xs:NCName count uint material xs:NCName input (shared) [0..*] + p [0..*] ListOfUInts ph [0..*] p ListOfUInts h [1..*] ListOfUInts extra [0..*] + Parents:� mesh, convex_mesh Declares the binding of geometric primitives and vertex attributes for a mesh element to produce lines. lines name xs:NCName count uint material xs:NCName input (shared) [0..*] + InputLocalOffset p [0..1] ListOfUInts extra [0..*] + Parents:� mesh, convex_mesh Declares the binding of geometric primitives and vertex attributes for a mesh element to produce connected triangles. trifans, tristrips name xs:NCName count uint material xs:NCName input (shared) [0..*] + InputLocalOffset p [0..*] ListOfUInts extra [0..*] + Parents:� mesh, convex_mesh Declares the binding of geometric primitives and vertex attributes for a mesh element to produce linestrips. linestrips name xs:NCName count uint material xs:NCName input (shared) [0..*] + InputLocalOffset p [0..*] ListOfUInts extra [0..*] + Parents:� mesh, convex_mesh Using

to represent assembly of mesh primitive The first index in a

element refers to all inputs with an offset attribute value of 0. The second index refers to all inputs with an offset of 1. There is an index value for each unique input offset attribute value. Each vertex of the primitive is assembled using the value(s) read from indexed inputs. After each input is sampled, producing a primitive vertex, the next index in the

element again refers to the inputs with offset of 0. Controller Elements [5] Declares generic control information. controller id xs:ID name xs:NCName asset [0..1] + skin + morph + extra [0..*] + Parent:� library_controllers Controller Elements Continued > _ = Animation Elements [5] Declares interpolation sampling function for an animation. sampler id xs:ID input (unshared) [1..*] InputLocal semantic ‡ xs:NMTOKEN source xs:URIFragmentType Parent:� animation ‡ semantic: see note for input (shared) on page 3 Declares an output channel of an animation. channel source xs:URIFragmentType target xs:token Parent:� animation Declares animation information. animation id xs:ID name xs:NCName asset [0..1] + source (core) [1..*] + sampler [1..*] id xs:ID input [1..*] - InputLocal channel [1..*] + animation [0..*] + animation [1..*] + sampler [1..*] + channel [1..*] + animation [0..*] + animation [1..*] + extra [0..*] + Parent:� library_animation, animation Describes a section of the animation curves to be used together as an animation clip. animation_clip id xs:ID name xs:NCName start ‡ xs:double end xs:double asset [0..1] + instance_animation [1..*] + InstanceWithExtra url xs:anyURI extra [0..*] + extra [0..*] + Parent:� library_animation_clips ‡ start: Default = 0.0 _ _ _ _ == _ _ _ _ _ _ = _ [0..*] = _ _ _ _ _ [0..*] = _ _ Scene Elements (continued) Declares instantiation of a COLLADA resource. instance_geometry bind_material [0..1] + extra [0..*] + Parents:� node, shape Binds a specific material to a piece of geometry, binding varying and uniform parameters at the same time. bind_material param (core) [0..*] name xs:NCName sid xs:NCName semantic xs:NMTOKEN type xs:NMTOKEN technique_common instance_material [1..*] symbol xs:NCName target xs:anyURI sid xs:NCName name xs:NCName bind (material) [0..*] - bind_vertex_input [0..*] - extra [0..*] + technique (core) [0..*] + extra [0..*] + Parents:� instance_geometry, instance_controller Declares instantiation of a COLLADA resource. instance_controller skeleton [0..*] xs:anyURI bind_material [0..1] + extra [0..*] + Parent:� node Describes an alternative way to evaluate a . evaluate_scene name xs:NCName render [1..*] camera_node xs:anyURI layer [0..*] xs:NCName instance_effect [0..1] + Parent:� visual_scene Describes hierarchical relationship of elements in a scene. node id xs:ID name xs:NCName sid xs:NCName type ‡ NodeType layer ListOfNames asset [0..1] + lookat [0..*] + matrix [0..*] + rotate [0..*] + scale [0..*] + skew [0..*] - translate [0..*] + instance_camera [0..*] + InstanceWithExtra instance_controller [0..*] + instance_geometry [0..*] + instance_light [0..*] + InstanceWithExtra instance_node [0..*] + InstanceWithExtra node [0..*] + extra [0..*] + Parents:� library_nodes, node, visual_scene ‡ type: JOINT, NODE. Default = NODE _ [0..*] = _ _ _ _ _ _ COLLADA 1.4 Quick Reference Card - Page 3 ©2010 Khronos Group - Rev. 1110 www.collada.org  Data Flow Elements [5] Declares a data repository that provides values according to the semantics of an element that refers to it. source (core) id xs:ID name xs:NCName asset [0..1] + IDREF_array [0..1] + Name_array [0..1] + bool_array [0..1] + float_array [0..1] + int_array [0..1] + technique_common [0..1] accessor + technique (core) [0..*] + Parents:� morph, animation, mesh, convex_mesh, skin, spline Declares an access pattern to one of the array elements: , , , , and . accessor count uint offset ‡ uint source xs:anyURI stride ‡ uint param (core) [0..*] name xs:NCName sid xs:NCName semantic xs:NMTOKEN type xs:NMTOKEN Parent:� source/technique_common ‡ Defaults: offset = 0, stride = 1 Declares storage for a homogenous array. uses type ListOfBools, an xs:list of type xs:boolean. uses type ListOfNames, an xs:list of type xs:Name. bool_array, Name_array id xs:ID name xs:NCName count uint Parent:� source (core) Declares the storage for a homogenous array of ID reference values of type xs:IDREFS. IDREF_array id xs:ID name xs:NCName count uint Parent:� source (core) Declares the storage for a homogenous array of type ListOfInts, which is an xs:list of type xs:long. int_array id xs:ID name xs:NCName count uint minInclusive ‡ xs:integer maxInclusive ‡ xs:integer Parent:� source (core) ‡ Defaults: minInclusive = -2147483648, maxInclusive = 2147483647 Declares the storage for a homogenous array of type ListOfFloats, which is an xs:list of type xs:double. float_array id xs:ID name xs:NCName count uint digits ‡ xs:short magnitude ‡ xs:short Parent:� source (core) ‡ Defaults: digits = 6, magnitude = 38 Declares the input semantics of a data source and connects a consumer to that source. input (shared) InputLocalOffset offset uint semantic ‡ xs:NMTOKEN source xs:URIFragmentType set uint Parents:� lines, linestrips, polygons, polylist, triangles, trifans, tristrips, vertex_weights ‡ semantic: The common semantic attribute values are: {TEX}BINORMAL, CONTINUITY, IMAGE, INPUT, WEIGHT, INTERPOLATION, INV_BIND_MATRIX, UV, VERTEX, JOINT, LINEAR_STEPS, NORMAL, OUTPUT, TEXCOORD, POSITION, MORPH_{TARGET, WEIGHT}, {TEX}TANGENT, {IN, OUT}_TANGENT _ _ [0..1] _ = Controller Elements (continued) Describes the data required to blend between sets of static meshes. morph method ‡ MorphMethodType source xs:anyURI source (core) [2..*] + targets input (unshared) [2..*] InputLocal semantic ‡ xs:NMTOKEN source xs:URIFragmentType extra [0..*] + extra [0..*] + Parent:� controller ‡ method: NORMALIZED, RELATIVE. Default = NORMALIZED semantic: see note for input (shared) Declares vertex and primitive information sufficient to describe blend-weight skinning. skin source xs:anyURI bind_shape_matrix [0..1] float4x4 source (core) [3..*] + joints input (unshared) [2..*] InputLocal semantic ‡ xs:NMTOKEN source xs:URIFragmentType extra [0..*] + vertex_weights (shared) count uint input (shared) [2..*] + InputLocalOffset vcount [0..1] ListOfUInts v [0..1] ListOfInts extra [0..*] + extra [0..*] + Parent:� controller ‡ semantic: see note for input (shared) _ _ _ _ _ Camera Elements [5] Declares a view into scene hierarchy or graph. Contains elements that describe the camera’s optics and imager. camera id xs:ID name xs:NCName asset [0..1] + optics + imager [0..1] technique (core) [1..*] profile xs:NMTOKEN any [0..*] xs:any extra [0..*] + extra [0..*] + Parent:� library_cameras Describes the apparatus on a camera that projects the image onto the image sensor. optics technique_common orthographic + perspective + technique (core) [0..*] + profile xs:NMTOKEN any [0..*] xs:any extra [0..*] + Parent:� camera Describes the field of view of an orthographic camera. orthographic xmag TargetableFloat ymag TargetableFloat aspect_ratio TargetableFloat ymag TargetableFloat aspect_ratio [0..1] TargetableFloat znear TargetableFloat zfar TargetableFloat Parents:� optics / technique_common Describes the field of view of a perspective camera. and values are in Euler degrees. perspective xfov TargetableFloat yfov TargetableFloat aspect_ratio TargetableFloat yfov TargetableFloat aspect_ratio [0..1] TargetableFloat znear TargetableFloat zfar TargetableFloat Parents:� optics / technique_common _ _ _ _ _ = = _ _ _ = [0..1] = _ _ _ = [0..1]  Extensibility Element [5] Declares information used to describe some portion of the content. Each technique applies to an associated profile. technique (core) profile xs:NMTOKEN any [0..*] xs:any Parents:� extra, source (core), light, optics, imager, force_field, physics_material, physics_scene, rigid_body, rigid_constraint, instance_rigid_body, bind_material Describes information about/related to its parent element. extra id xs:ID name xs:NCName type xs:NMTOKEN asset [0..1] + technique (core) [1..*] profile xs:NMTOKEN any [0..*] xs:any Parents:� animation, animation_clip, attachment, box, camera, bind_material, capsule, COLLADA, controller, cylinder, control_vertices, convex_mesh, effect, force_field, format_hint, geometry, image, imager, instance_*, joints, library_*, light, lines, linestrips, material, mesh, morph, node, optics, pass, plane, physics_material, physics_model, physics_scene, polygons, polylist, profile_CG, profile_COMMON, profile_GLES, profile_GLSL, ref_attachment, rigid_body, rigid_constraint, sampler_*, scene, shape, skin, sphere, spline, surface, targets, tapered_capsule, tapered_cylinder, triangles, trifans, tristrips, texture_pipeline, texture_unit, vertex_weights, vertices, visual_scene, and technique (FX) (in profile_CG, profile_COMMON, profile_GLES, and profile_GLSL) _ _ Lighting Elements [5] Declares a light source that illuminates a scene. light id xs:ID name xs:NCName asset [0..1] + technique_common ambient (core) + directional + point + spot + technique (core) [0..*] + extra [0..*] + Parent:� library_lights Lighting Elements Continued > _ = Transform Elements [5] Declare local coordinate system transformations. specifies an axis (XYZ) and rotation (Euler angle) about it as a float4. specifies a translation (XYZ) as a float3. rotate, translate sid xs:NCName Parents:� node, instance_rigid_body, {ref_}attachment, shape, technique_common/mass_frame in rigid_body specifies a change in proportions (XYZ) of the axes as a float3. describes a position/orientation transformation as a float3x3, organized as three vectors in order: eye position, interest point, up-axis direction. describes a homogeneous transformation as a float4x4, organized in column-major order. scale, lookat, matrix sid xs:NCName Parent:� node _ COLLADA 1.4 Quick Reference Card - Page 4 ©2010 Khronos Group - Rev. 1110 www.collada.org Describes color attributes of fixed-function shader elements inside effects. emission, reflective, ambient (FX), diffuse, specular, transparent common_color_ or_ texture_type color - param (FX) ref [1..*] xs:NCName texture [0..*] texture xs:NCName texcoord xs:NCName extra [0..1] + Parents:� constant, lambert, phong, blinn creates a new, named param object in the FX Runtime, and assigns it a type, an initial value, and additional attributes at declaration time. newpar

本文档为【collada_reference_card_1_4】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_574963
暂无简介~
格式:pdf
大小:719KB
软件:PDF阅读器
页数:0
分类:互联网
上传时间:2013-01-31
浏览量:9