Results 1 to 3 of 3

Thread: Which input semantics in <vertices> and <triangles>

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    12

    Which input semantics in <vertices> and <triangles>

    Which of these input semantics can I expect in a <vertices> element and which in a <triangles> element (or other primitive types)? I could not find anything in the spec about this.

    Code :
    BINORMAL
    COLOR
    CONTINUITY
    IMAGE
    IN_TANGENT
    INPUT
    INTERPOLATION
    INV_BIND_MATRIX
    JOINT
    LINEAR_STEPS
    MORPH_TARGET
    MORPH_WEIGHT
    NORMAL
    OUTPUT
    OUT_TANGENT
    POSITION
    TANGENT
    TEXBINORMAL
    TEXCOORD
    TEXTANGENT
    UV
    VERTEX
    WEIGHT

    kind regards,

    Roland

  2. #2
    Member
    Join Date
    Feb 2005
    Location
    San Jose, CA
    Posts
    63

    Re: Which input semantics in <vertices> and <triangles>

    <input> element is used in many different places.
    These are some simple tables of what most COLLADA document would use in their <input> element.

    For <mesh>
    Code :
    BINORMAL
    COLOR
    INPUT
    NORMAL
    POSITION
    TANGENT
    TEXBINORMAL
    TEXCOORD
    TEXTANGENT
    UV
    VERTEX

    For <animation>
    Code :
    CONTINUITY
    IN_TANGENT
    INPUT
    INTERPOLATION
    LINEAR_STEPS
    OUTPUT
    OUT_TANGENT

    For <skin>
    Code :
    INV_BIND_MATRIX
    JOINT
    WEIGHT

    For <morph>
    Code :
    MORPH_TARGET
    MORPH_WEIGHT

    If you want to export data that is not describe in these semantic, you can definitely create your own semantic for now. For example, FOGCOORD and FOGCOLOR are not in the lists.
    Other importer might not understand these new semantic, but at least you won't lose data when you import it back in your application.
    When we see enough audience on a new semantic, we can try to push it in to the next revision of the COLLADA spec.

  3. #3
    Senior Member
    Join Date
    Aug 2004
    Location
    California
    Posts
    771

    Re: Which input semantics in <vertices> and <triangles>

    When creating your own user-defined semantic values, remember that the spec reserves UPPERCASE names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •