Results 1 to 2 of 2

Thread: Sking source problem.

  1. #1
    collada100town
    Guest

    Sking source problem.

    The schema said that the skin element for the control:
    The source attribute contains a URI reference to the base mesh, (a static mesh or a morphed mesh).This also provides the bind-shape of the skinned mesh.
    And in the colladadom implementation: CrtSceneRead.cpp line 1527

    Code :
    if (source_element->getElementType() != COLLADA_TYPE::GEOMETRY){ // skin source is not geometry, DO LATER
    		CrtPrint("Skin=%s source is not geometry, not supported\n", lib->getId());
    		return NULL;
    	}

    It means except for the type of geometry, it is possible to use other element as the skin source. But the current colladadom has not implemented this function.

    We saw in some maya exported models, controllers are used as skin source,


    Code :
    <controller id="BodyGeometryShape-morph-skin" name="skinCluster7">
          <skin source="#BodyGeometryShape-morph">
            <bind_shape_matrix>1 0 0 0 0 1 0 16.8816 0 0 1 0 0 0 0 1</bind_shape_matrix>
            .........................
     
    <controller id="BodyGeometryShape-morph" name="TorsoSquashAndStretch">
          <morph method="NORMALIZED" source="#BodyGeometryShape">
            <source id="BodyGeometryShape-morph-targets">
              <IDREF_array id="BodyGeometryShape-morph-targets-array" count="26">TorsoSquashAndStretch-target0 TorsoSquashAndStretch-target1 TorsoSquashAndStretch-target2 TorsoSquashAndStretch-target3 ArmsLegsStretch-target0 ArmsLegsStretch-target1 ArmsLegsStretch-target2 ArmsLegsStretch-target3 DownRBrowShape DownLBrowShape SqueezeRBrowShape SqueezeLBrowShape UpBrowRShape UpBrowLShape SadRBrowShape SadLBrowShape AngryLBrowShape AngryRBrowShape Ee_mouthShape smile_mouthShape FV_mouthShape Oo_mouthShape sadfaceShape JawBlend-target0 ChestSquashMod-target0 MouthMPBShape</IDREF_array>
              <technique_common>
    ...............

    Can anybody give us some help? How to do with these controller-type skin source? What is this for?

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

    Re: Sking source problem.

    Quote Originally Posted by collada100town
    ... And in the colladadom implementation: CrtSceneRead.cpp line 1527

    Code :
    if (source_element->getElementType() != COLLADA_TYPE::GEOMETRY){ // skin source is not geometry, DO LATER
    		CrtPrint("Skin=%s source is not geometry, not supported\n", lib->getId());
    		return NULL;
    	}

    It means except for the type of geometry, it is possible to use other element as the skin source. But the current colladadom has not implemented this function.
    Is that really the DOM you are talking about?

    The file CrtSceneRead.cpp comes from the COLLADA RT viewer in that project. The code just means that sample viewer application doesn't support it.

Posting Permissions

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