WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-24-2016, 01:10 PM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
Exclamation Problem (bones not found) with custom skeleton and Live Characters

Hey! I tried using the Live Characters Plugin for MotionBuilder to get a custom generated skeleton to animate inside Vizard. I followed the instructions in the help. I've got an fbx file that I used in 3DS Max to export to the cal3d format.
That fbx file I loaded in MotionBuilder and the cfg file added as an avatar to vizard.

The Skel1PlasticMan.cfg:
Code:
skeleton = Skel1.csf
mesh = Skel1_PlasticMan.cmf
material = plasticGreyMAT.xrf
The vizard script:
Code:
import viz
import vizmocap 
import vizfx

viz.setMultiSample(4)

avatar = vizfx.addAvatar('Skel1PlasticMan.cfg')
lc = vizmocap.LiveCharacter('localhost',8050,8055,model=avatar)

viz.go
But when starting the script and Motionbuilder with the LiveCharacters plugin running, I get error messages that bone "pelvis" couldn't be found, for example. I get this error for every bone. The avatar appears in its bind pose.
I exported the skeleton again as an xsf, so it's in readable form. You can see it in my answer below, because it exceeds the 10.000 characters limit.

As you can see, all the bones are in the namespace BVH:, but the prefix doesn't appear in the error messages before the name of the bone.
So I removed the namespace from the skeleton in Motionbuilder, but the error still occurs.
What is going wrong and how to fix it?
Help is appreciated.
Reply With Quote
  #2  
Old 02-24-2016, 01:14 PM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
skeleton xsf export

Code:
<SKELETON VERSION="1000" NUMBONES="25">
    <BONE ID="0" NAME="Fbx_Root" NUMCHILDS="1">
        <TRANSLATION>0 0 0</TRANSLATION>
        <ROTATION>-0.707107 0 0 0.707107</ROTATION>
        <LOCALTRANSLATION>-0 -0 -0</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>-1</PARENTID>
        <CHILDID>1</CHILDID>
    </BONE>
    <BONE ID="1" NAME="BVH:pelvis" NUMCHILDS="3">
        <TRANSLATION>0 0.865469 -0.024881</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0 -0.865469 0.024881</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>0</PARENTID>
        <CHILDID>2</CHILDID>
        <CHILDID>6</CHILDID>
        <CHILDID>10</CHILDID>
    </BONE>
    <BONE ID="2" NAME="BVH:pelvis_right_femur" NUMCHILDS="1">
        <TRANSLATION>-0.0902537 -0.0131387 0.0186587</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>0.0902537 -0.852331 0.0062223</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>1</PARENTID>
        <CHILDID>3</CHILDID>
    </BONE>
    <BONE ID="3" NAME="BVH:right_femur_tibia" NUMCHILDS="1">
        <TRANSLATION>-0.000506134 -0.377137 -0.00195374</TRANSLATION>
        <ROTATION>-0.0532019 0 0 0.998584</ROTATION>
        <LOCALTRANSLATION>0.0907598 -0.471635 0.0586206</LOCALTRANSLATION>
        <LOCALROTATION>0.743725 0 0 0.668486</LOCALROTATION>
        <PARENTID>2</PARENTID>
        <CHILDID>4</CHILDID>
    </BONE>
    <BONE ID="4" NAME="BVH:right_tibia_foot" NUMCHILDS="1">
        <TRANSLATION>-0.00125323 -0.397181 0.0259952</TRANSLATION>
        <ROTATION>-0.00141172 -0.00141571 -0.00141172 0.999997</ROTATION>
        <LOCALTRANSLATION>0.0917096 -0.0746208 0.0330959</LOCALTRANSLATION>
        <LOCALROTATION>0.744666 -0.000103544 0.00199661 0.667434</LOCALROTATION>
        <PARENTID>3</PARENTID>
        <CHILDID>5</CHILDID>
    </BONE>
    <BONE ID="5" NAME="BVH:right_tibia_foot_End" NUMCHILDS="0">
        <TRANSLATION>3.28064e-006 -0.048954 0.139885</TRANSLATION>
        <ROTATION>0 3.49246e-010 1.16415e-010 1</ROTATION>
        <LOCALTRANSLATION>0.0917063 -0.0256668 -0.106789</LOCALTRANSLATION>
        <LOCALROTATION>0.744666 -0.000103544 0.00199661 0.667434</LOCALROTATION>
        <PARENTID>4</PARENTID>
    </BONE>
    <BONE ID="6" NAME="BVH:pelvis_left_femur" NUMCHILDS="1">
        <TRANSLATION>0.0898527 -0.0138191 0.0194077</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0.0898527 -0.85165 0.00547335</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>1</PARENTID>
        <CHILDID>7</CHILDID>
    </BONE>
    <BONE ID="7" NAME="BVH:left_femur_tibia" NUMCHILDS="1">
        <TRANSLATION>-0.000211582 -0.377139 -0.00201002</TRANSLATION>
        <ROTATION>-0.0519571 0 0 0.998649</ROTATION>
        <LOCALTRANSLATION>-0.0896412 -0.471172 0.0566848</LOCALTRANSLATION>
        <LOCALROTATION>0.742891 0 0 0.669412</LOCALROTATION>
        <PARENTID>6</PARENTID>
        <CHILDID>8</CHILDID>
    </BONE>
    <BONE ID="8" NAME="BVH:left_tibia_foot" NUMCHILDS="1">
        <TRANSLATION>-0.000887861 -0.397578 0.0251076</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0.0887533 -0.0735943 0.0315772</LOCALTRANSLATION>
        <LOCALROTATION>0.742891 0 0 0.669412</LOCALROTATION>
        <PARENTID>7</PARENTID>
        <CHILDID>9</CHILDID>
    </BONE>
    <BONE ID="9" NAME="BVH:left_tibia_foot_End" NUMCHILDS="0">
        <TRANSLATION>0 -0.0489534 0.139891</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0.0887533 -0.024641 -0.108314</LOCALTRANSLATION>
        <LOCALROTATION>0.742891 0 0 0.669412</LOCALROTATION>
        <PARENTID>8</PARENTID>
    </BONE>
    <BONE ID="10" NAME="BVH:pelvis_spine1" NUMCHILDS="1">
        <TRANSLATION>0 0.116352 0.0226649</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0 -0.981821 0.00221613</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>1</PARENTID>
        <CHILDID>11</CHILDID>
    </BONE>
    <BONE ID="11" NAME="BVH:spine1" NUMCHILDS="3">
        <TRANSLATION>0 0.182773 0.000767938</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0 -1.16459 0.00144819</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>10</PARENTID>
        <CHILDID>12</CHILDID>
        <CHILDID>15</CHILDID>
        <CHILDID>20</CHILDID>
    </BONE>
    <BONE ID="12" NAME="BVH:spine2" NUMCHILDS="1">
        <TRANSLATION>0 0.22 -0.0339583</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0 -1.38459 0.0354065</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>11</PARENTID>
        <CHILDID>13</CHILDID>
    </BONE>
    <BONE ID="13" NAME="BVH:neck" NUMCHILDS="1">
        <TRANSLATION>0 0.1 0.0230245</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0 -1.48459 0.0123819</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>12</PARENTID>
        <CHILDID>14</CHILDID>
    </BONE>
    <BONE ID="14" NAME="BVH:neck_End" NUMCHILDS="0">
        <TRANSLATION>0 0.160807 0.00164894</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0 -1.6454 0.010733</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>13</PARENTID>
    </BONE>
    <BONE ID="15" NAME="BVH:right_manubrium" NUMCHILDS="1">
        <TRANSLATION>-0.02 0.2 -0.0192851</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>0.02 -1.36459 0.0207333</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>11</PARENTID>
        <CHILDID>16</CHILDID>
    </BONE>
    <BONE ID="16" NAME="BVH:right_clavicle" NUMCHILDS="1">
        <TRANSLATION>-0.15 -0.02 -0.01</TRANSLATION>
        <ROTATION>-7.53644e-015 0 0.707107 0.707107</ROTATION>
        <LOCALTRANSLATION>1.34459 0.17 0.0307333</LOCALTRANSLATION>
        <LOCALROTATION>0.5 0.5 -0.5 0.5</LOCALROTATION>
        <PARENTID>15</PARENTID>
        <CHILDID>17</CHILDID>
    </BONE>
    <BONE ID="17" NAME="BVH:right_humerus" NUMCHILDS="1">
        <TRANSLATION>2.41089e-005 -0.25 7.02357e-005</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>1.34457 0.42 0.0306631</LOCALTRANSLATION>
        <LOCALROTATION>0.5 0.5 -0.5 0.5</LOCALROTATION>
        <PARENTID>16</PARENTID>
        <CHILDID>18</CHILDID>
    </BONE>
    <BONE ID="18" NAME="BVH:right_radius" NUMCHILDS="1">
        <TRANSLATION>1.52588e-007 -0.25 -1.43051e-008</TRANSLATION>
        <ROTATION>-1.75603e-008 2.43911e-008 -0.0784591 0.996917</ROTATION>
        <LOCALTRANSLATION>1.43283 0.451414 0.0306629</LOCALTRANSLATION>
        <LOCALROTATION>0.537688 0.459229 -0.459229 0.537688</LOCALROTATION>
        <PARENTID>17</PARENTID>
        <CHILDID>19</CHILDID>
    </BONE>
    <BONE ID="19" NAME="BVH:right_radius_End" NUMCHILDS="0">
        <TRANSLATION>0 -0.15 7.15256e-009</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>1.43283 0.601415 0.0306628</LOCALTRANSLATION>
        <LOCALROTATION>0.537688 0.459229 -0.459229 0.537688</LOCALROTATION>
        <PARENTID>18</PARENTID>
    </BONE>
    <BONE ID="20" NAME="BVH:left_manubrium" NUMCHILDS="1">
        <TRANSLATION>0.02 0.2 -0.0192851</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-0.02 -1.36459 0.0207333</LOCALTRANSLATION>
        <LOCALROTATION>0.707107 0 0 0.707107</LOCALROTATION>
        <PARENTID>11</PARENTID>
        <CHILDID>21</CHILDID>
    </BONE>
    <BONE ID="21" NAME="BVH:left_clavicle" NUMCHILDS="1">
        <TRANSLATION>0.15 -0.02 -0.01</TRANSLATION>
        <ROTATION>4.21468e-008 -4.21468e-008 -0.707107 0.707107</ROTATION>
        <LOCALTRANSLATION>-1.34459 0.17 0.0307331</LOCALTRANSLATION>
        <LOCALROTATION>0.5 -0.5 0.5 0.5</LOCALROTATION>
        <PARENTID>20</PARENTID>
        <CHILDID>22</CHILDID>
    </BONE>
    <BONE ID="22" NAME="BVH:left_humerus" NUMCHILDS="1">
        <TRANSLATION>2.41089e-005 -0.25 -7.02524e-005</TRANSLATION>
        <ROTATION>0 0 0 1</ROTATION>
        <LOCALTRANSLATION>-1.34462 0.42 0.0308034</LOCALTRANSLATION>
        <LOCALROTATION>0.5 -0.5 0.5 0.5</LOCALROTATION>
        <PARENTID>21</PARENTID>
        <CHILDID>23</CHILDID>
    </BONE>
    <BONE ID="23" NAME="BVH:left_radius" NUMCHILDS="1">
        <TRANSLATION>0 -0.25 0</TRANSLATION>
        <ROTATION>-7.47362e-009 5.23153e-008 0.0784591 0.996917</ROTATION>
        <LOCALTRANSLATION>-1.43287 0.451407 0.0308035</LOCALTRANSLATION>
        <LOCALROTATION>0.537688 -0.459229 0.459229 0.537688</LOCALROTATION>
        <PARENTID>22</PARENTID>
        <CHILDID>24</CHILDID>
    </BONE>
    <BONE ID="24" NAME="BVH:left_radius_End" NUMCHILDS="0">
        <TRANSLATION>3.05176e-007 -0.15 9.53674e-009</TRANSLATION>
        <ROTATION>-2.98023e-008 -3.55271e-015 7.45058e-009 1</ROTATION>
        <LOCALTRANSLATION>-1.43287 0.601407 0.0308035</LOCALTRANSLATION>
        <LOCALROTATION>0.537688 -0.459229 0.459229 0.537688</LOCALROTATION>
        <PARENTID>23</PARENTID>
    </BONE>
</SKELETON>
Reply With Quote
  #3  
Old 02-24-2016, 07:26 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
In the first bone definition the BVH namespace is not in the name:

Code:
<BONE ID="0" NAME="Fbx_Root" NUMCHILDS="1">
All the other bone definitions have it. If you change that is there any difference?
Reply With Quote
  #4  
Old 02-24-2016, 07:46 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
Try opening up both the sample_female_red.fbx file included with live characters and the vcc_female.cfg file included with the Vizard installation in Inspector. The namespace is listed in all the bone names of the FBX character while the namespace does not appear in the bone names of the Cal3D character. Is it the same for your character files?
Reply With Quote
  #5  
Old 02-25-2016, 03:57 PM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
The vcc_female.cfg has no namespace in the bones when loaded in the inspector. But it does seem to use different file formats than what I get when exporting with the Cal3D exporter in 3DS Max, for example it uses femFlat_high_Skeleton.csfx as skeleton.
If I remember correctly, the sample_female_red.fbx had a namespace in its skeleton.

I managed to get rid of the error messages by removing the namespace altogether and re-exporting. Adding the namespace to the root did not solve the problem. But another problem occurs in both characters, which come from different sources, one custom made, the other from the autodesk character generator: without animation they look fine and appear in their T-pose. But when using the LiveCharacters plugin, in Motionbuilder it looks fine, but in vizard the characters are a hundred times bigger than the are and look mutated, like the joints are far too distant to one another, so the limbs look really thin.
Reply With Quote
  #6  
Old 02-26-2016, 09:18 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
You can apply a scale to the character in the .cfg file. See the scale section in the Building CFG Files page.
Reply With Quote
  #7  
Old 02-29-2016, 07:05 AM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
Exclamation

I applied the scale factor, but the problems with the live characters plugin persist!
First problem: When connected to the live characters server, the character size is increased by a huge factor.

Second problem: When connected to the live characters server, the character looks like a stick figure.

See attachment "LiveCharacterSkinning2.jpg" when not connected in comparison to "LiveCharacterSkinning.jpg", when connected via live characters plugin.

I think we still do have a support subscription, but it will end soon. Should I ask my supervisor to get into contact?
Attached Thumbnails
Click image for larger version

Name:	LiveCharacterSkinning2.jpg
Views:	442
Size:	160.6 KB
ID:	769   Click image for larger version

Name:	LiveCharacterSkinning.jpg
Views:	411
Size:	142.5 KB
ID:	770  
Reply With Quote
  #8  
Old 02-29-2016, 09:29 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
Yes, you can contact us at support@worldviz.com.
Reply With Quote
  #9  
Old 04-09-2016, 11:28 AM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
I think the solution to the stick figure look of the character, when driven by the live characters plugin, was to re-export the character and making sure that 3DS Max system units are set to centimeters as well as choosing centimers in the Cal3D export options.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forearm not rotating in live characters llqqff Vizard 1 12-09-2009 12:21 PM
Trouble using custom animations for Live Characters IGoudt Vizard 0 09-24-2009 06:37 AM


All times are GMT -7. The time now is 04:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC