Lots of work on the character model. Also now the character skeleton only have 1 levels of inheritance. (Armature.dae->model instead of armature.dae->armature.tscn->model). This fixes quite a few issues, but some changes were necessary to scripts.

This commit is contained in:
Relintai 2019-12-24 03:10:29 +01:00
parent f2e4858685
commit 78458b2d91
25 changed files with 561 additions and 499 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<contributor>
<author>Anonymous</author>
<authoring_tool>Collada Exporter for Blender 2.6+, by Juan Linietsky (juan@codenix.com)</authoring_tool>
</contributor>
<created>2019-12-24T03:04:45Z</created>
<modified>2019-12-24T03:04:45Z</modified>
<unit meter="1.0" name="meter"/>
<up_axis>Z_UP</up_axis>
</asset>
<library_effects>
<effect id="id-fx-2" name="Standard-fx">
<profile_COMMON>
<technique sid="common">
<blinn>
<emission>
<color> 0.800000011920929 0.800000011920929 0.800000011920929 1.0 </color>
</emission>
<ambient>
<color> 0.0 0.0 0.0 1.0 </color>
</ambient>
<diffuse>
<color> 0.6400000095367432 0.6400000095367432 0.6400000095367432 0.8 </color>
</diffuse>
<specular>
<color> 0.0 0.0 0.0 1.0 </color>
</specular>
<shininess>
<float>50</float>
</shininess>
<reflective>
<color> 0.5 0.5 0.5 1.0 </color>
</reflective>
<index_of_refraction>
<float>1.2</float>
</index_of_refraction>
</blinn>
<extra>
<technique profile="FCOLLADA">
</technique>
<technique profile="GOOGLEEARTH">
<double_sided>1</double_sided>
</technique>
</extra>
</technique>
</profile_COMMON>
</effect>
</library_effects>
<library_materials>
<material id="id-material-3" name="Standard">
<instance_effect url="#id-fx-2"/>
</material>
</library_materials>
<library_geometries>
<geometry id="id-mesh-4" name="Geometry_n26070">
<mesh>
<source id="id-mesh-4-positions">
<float_array id="id-mesh-4-positions-array" count="108"> 4.132389068603516 4.443350791931152 3.001485824584961 4.132389068603516 4.443350791931152 -3.001554489135742 -2.08120059967041 3.308300495147705 -3.001554489135742 -2.1229143142700195 -1.635947823524475 -3.868911027908325 5.190732002258301 -0.44944584369659424 3.7982900142669678 -2.1229145526885986 -1.6359459161758423 3.7982900142669678 -2.1229143142700195 -1.635947823524475 -3.868911027908325 5.190730571746826 -0.4494478702545166 -3.868911027908325 5.190732002258301 -0.44944584369659424 3.7982900142669678 4.132389068603516 4.443350791931152 -3.001554489135742 5.190732002258301 -0.44944584369659424 3.7982900142669678 5.190730571746826 -0.4494478702545166 -3.868911027908325 4.132389068603516 4.443350791931152 -3.001554489135742 4.132389068603516 4.443350791931152 3.001485824584961 5.190732002258301 -0.44944584369659424 3.7982900142669678 -2.08120059967041 3.308300495147705 -3.001554489135742 4.132389068603516 4.443350791931152 -3.001554489135742 -2.1229143142700195 -1.635947823524475 -3.868911027908325 -2.1229143142700195 -1.635947823524475 -3.868911027908325 -2.08120059967041 3.308300495147705 3.00148606300354 -2.08120059967041 3.308300495147705 -3.001554489135742 -2.1229145526885986 -1.6359459161758423 3.7982900142669678 -2.08120059967041 3.308300495147705 3.00148606300354 -2.1229143142700195 -1.635947823524475 -3.868911027908325 -2.1229145526885986 -1.6359459161758423 3.7982900142669678 4.132389068603516 4.443350791931152 3.001485824584961 -2.08120059967041 3.308300495147705 3.00148606300354 5.190732002258301 -0.44944584369659424 3.7982900142669678 4.132389068603516 4.443350791931152 3.001485824584961 -2.1229145526885986 -1.6359459161758423 3.7982900142669678 5.190730571746826 -0.4494478702545166 -3.868911027908325 -2.1229143142700195 -1.635947823524475 -3.868911027908325 4.132389068603516 4.443350791931152 -3.001554489135742 -2.08120059967041 3.308300495147705 3.00148606300354 4.132389068603516 4.443350791931152 3.001485824584961 -2.08120059967041 3.308300495147705 -3.001554489135742</float_array>
<technique_common>
<accessor source="#id-mesh-4-positions-array" count="36" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="id-mesh-4-normals">
<float_array id="id-mesh-4-normals-array" count="108"> -0.1796986311674118 0.9837216138839722 0.0 -0.1796986311674118 0.9837216138839722 0.0 -0.1796986311674118 0.9837216138839722 0.0 0.160137340426445 -0.9870947003364563 2.686012692265649e-07 0.160137340426445 -0.9870947003364563 2.686012692265649e-07 0.160137340426445 -0.9870947003364563 2.686012692265649e-07 0.1601373851299286 -0.9870947599411011 2.408740158443834e-07 0.1601373851299286 -0.9870947599411011 2.408740158443834e-07 0.1601373851299286 -0.9870947599411011 2.408740158443834e-07 0.9773961901664734 0.21141643822193146 -2.3227961776228767e-07 0.9773961901664734 0.21141643822193146 -2.3227961776228767e-07 0.9773961901664734 0.21141643822193146 -2.3227961776228767e-07 0.9773958921432495 0.21141697466373444 0.0 0.9773958921432495 0.21141697466373444 0.0 0.9773958921432495 0.21141697466373444 0.0 -0.03159518912434578 0.17296108603477478 -0.9844217300415039 -0.03159518912434578 0.17296108603477478 -0.9844217300415039 -0.03159518912434578 0.17296108603477478 -0.9844217300415039 -0.9999643564224243 0.008436549454927444 0.0 -0.9999643564224243 0.008436549454927444 0.0 -0.9999643564224243 0.008436549454927444 0.0 -0.9999643564224243 0.00843653455376625 -3.341077814411619e-08 -0.9999643564224243 0.00843653455376625 -3.341077814411619e-08 -0.9999643564224243 0.00843653455376625 -3.341077814411619e-08 -0.02909553423523903 0.1592768132686615 0.9868050217628479 -0.02909553423523903 0.1592768132686615 0.9868050217628479 -0.02909553423523903 0.1592768132686615 0.9868050217628479 -0.02520586922764778 0.1553703099489212 0.9875347018241882 -0.02520586922764778 0.1553703099489212 0.9875347018241882 -0.02520586922764778 0.1553703099489212 0.9875347018241882 -0.02737513929605484 0.16874127089977264 -0.9852800965309143 -0.02737513929605484 0.16874127089977264 -0.9852800965309143 -0.02737513929605484 0.16874127089977264 -0.9852800965309143 -0.1796986162662506 0.9837216138839722 0.0 -0.1796986162662506 0.9837216138839722 0.0 -0.1796986162662506 0.9837216138839722 0.0</float_array>
<technique_common>
<accessor source="#id-mesh-4-normals-array" count="36" stride="3">
<param name="X" type="float"/>
<param name="Y" type="float"/>
<param name="Z" type="float"/>
</accessor>
</technique_common>
</source>
<source id="id-mesh-4-texcoord-0">
<float_array id="id-mesh-4-texcoord-0-array" count="72"> 0.3382556736469269 0.7735599875450134 0.0002156893751816824 0.7735599875450134 0.0002157164562959224 0.41787371039390564 0.0002156893751816824 0.4174422323703766 0.4319670498371124 0.0002156893751816824 0.4319670498371124 0.41744229197502136 0.0002156893751816824 0.4174422323703766 0.00021570292301476002 0.0002157435374101624 0.4319670498371124 0.0002156893751816824 0.4323984384536743 0.38312485814094543 0.7142909169197083 0.0002156893751816824 0.7142909169197083 0.43196696043014526 0.4323984384536743 0.38312485814094543 0.4323984384536743 0.045084837824106216 0.7142909169197083 0.0002156893751816824 0.7182105779647827 0.8027231097221375 0.7112575173377991 0.44710487127304077 0.9969717860221863 0.8496248722076416 0.7108261585235596 0.43239834904670715 0.4323984682559967 0.8192804455757141 0.4323984384536743 0.48124048113822937 0.7108261585235596 0.8641496300697327 0.4323984682559967 0.8192804455757141 0.7108261585235596 0.43239834904670715 0.9997842907905579 0.0002156893751816824 0.7147222757339478 0.40273553133010864 0.7216917872428894 0.04711759090423584 0.9997842907905579 0.4174421429634094 0.7147222757339478 0.40273553133010864 0.9997842907905579 0.0002156893751816824 0.9969717860221863 0.43239834904670715 0.9969717860221863 0.8496248722076416 0.7112575173377991 0.44710487127304077 0.3382556736469269 0.41787365078926086 0.3382556736469269 0.7735599875450134 0.0002157164562959224 0.41787371039390564</float_array>
<technique_common>
<accessor source="#id-mesh-4-texcoord-0-array" count="36" stride="2">
<param name="S" type="float"/>
<param name="T" type="float"/>
</accessor>
</technique_common>
</source>
<vertices id="id-mesh-4-vertices">
<input semantic="POSITION" source="#id-mesh-4-positions"/>
</vertices>
<polygons count="12" material="id-trimat-5">
<input semantic="VERTEX" source="#id-mesh-4-vertices" offset="0"/>
<input semantic="NORMAL" source="#id-mesh-4-normals" offset="0"/>
<input semantic="TEXCOORD" source="#id-mesh-4-texcoord-0" offset="0" set="0"/>
<p> 0 1 2 </p>
<p> 3 4 5 </p>
<p> 6 7 8 </p>
<p> 9 10 11 </p>
<p> 12 13 14 </p>
<p> 15 16 17 </p>
<p> 18 19 20 </p>
<p> 21 22 23 </p>
<p> 24 25 26 </p>
<p> 27 28 29 </p>
<p> 30 31 32 </p>
<p> 33 34 35 </p>
</polygons>
</mesh>
</geometry>
</library_geometries>
<library_visual_scenes>
<visual_scene id="id-scene-1" name="scene">
<node id="foot (7)" name="foot (7)" type="NODE">
<matrix sid="transform"> 1.0 0.0 0.0 0.0 0.0 -1.6292068494294654e-07 -1.0 0.0 0.0 1.0 -1.6292068494294654e-07 0.0 0.0 0.0 0.0 1.0 </matrix>
<instance_geometry url="#id-mesh-4">
<bind_material>
<technique_common>
<instance_material symbol="id-trimat-5" target="#id-material-3"/>
</technique_common>
</bind_material>
</instance_geometry>
</node>
</visual_scene>
</library_visual_scenes>
<scene>
<instance_visual_scene url="#id-scene-1" />
</scene>
</COLLADA>

View File

@ -0,0 +1,16 @@
[remap]
importer="collada_mdr"
type="MeshDataResource"
path="res://.import/huf_neck.dae-a1cd7534d407b49f125bc423ef8bb490.res"
[deps]
source_file="res://data/character_models/huf_neck.dae"
dest_files=[ "res://.import/huf_neck.dae-a1cd7534d407b49f125bc423ef8bb490.res" ]
[params]
offset=Vector3( 0, 0, 0 )
rotation=Vector3( 0, 0, -1.5708 )
scale=Vector3( 0.011, 0.011, 0.011 )

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,8 +5,8 @@
<author>Anonymous</author>
<authoring_tool>Collada Exporter for Blender 2.6+, by Juan Linietsky (juan@codenix.com)</authoring_tool>
</contributor>
<created>2019-12-18T19:26:48Z</created>
<modified>2019-12-18T19:26:48Z</modified>
<created>2019-12-24T00:56:41Z</created>
<modified>2019-12-24T00:56:41Z</modified>
<unit meter="1.0" name="meter"/>
<up_axis>Z_UP</up_axis>
</asset>
@ -57,7 +57,7 @@
<geometry id="id-mesh-4" name="Geometry_n25626">
<mesh>
<source id="id-mesh-4-positions">
<float_array id="id-mesh-4-positions-array" count="144"> 3.050856351852417 22.272930145263672 -2.643949270248413 0.0736536979675293 22.605335235595703 0.23332548141479492 3.051396131515503 24.6923828125 0.22653771936893463 3.0508577823638916 23.553375244140625 3.3238718509674072 3.051396131515503 24.6923828125 0.22653771936893463 0.0736536979675293 22.605335235595703 0.23332548141479492 6.01112174987793 22.697294235229492 0.23332442343235016 3.051396131515503 24.6923828125 0.22653771936893463 3.0508577823638916 23.553375244140625 3.3238718509674072 3.051565647125244 -0.27131912112236023 -3.217409133911133 6.01112174987793 22.697294235229492 0.23332442343235016 6.491451263427734 0.8493719696998596 0.22439900040626526 3.050856351852417 22.272930145263672 -2.643949270248413 3.051396131515503 24.6923828125 0.22653771936893463 6.01112174987793 22.697294235229492 0.23332442343235016 0.0736536979675293 22.605335235595703 0.23332548141479492 3.051565647125244 -0.27131912112236023 -3.217409133911133 -0.4080944061279297 -0.09458771347999573 0.2243994176387787 3.050856351852417 22.272930145263672 -2.643949270248413 3.051565647125244 -0.27131912112236023 -3.217409133911133 0.0736536979675293 22.605335235595703 0.23332548141479492 4.175086975097656 -2.6902050971984863 0.38393157720565796 3.051565647125244 -0.27131912112236023 -3.217409133911133 6.491451263427734 0.8493719696998596 0.22439900040626526 -0.4080944061279297 -0.09458771347999573 0.2243994176387787 3.051565647125244 -0.27131912112236023 -3.217409133911133 4.175086975097656 -2.6902050971984863 0.38393157720565796 0.0736536979675293 22.605335235595703 0.23332548141479492 3.051567554473877 -0.27131763100624084 3.9151973724365234 3.0508577823638916 23.553375244140625 3.3238718509674072 4.175086975097656 -2.6902050971984863 0.38393157720565796 6.491451263427734 0.8493719696998596 0.22439900040626526 3.051567554473877 -0.27131763100624084 3.9151973724365234 6.01112174987793 22.697294235229492 0.23332442343235016 3.051567554473877 -0.27131763100624084 3.9151973724365234 6.491451263427734 0.8493719696998596 0.22439900040626526 3.051565647125244 -0.27131912112236023 -3.217409133911133 3.050856351852417 22.272930145263672 -2.643949270248413 6.01112174987793 22.697294235229492 0.23332442343235016 3.051567554473877 -0.27131763100624084 3.9151973724365234 -0.4080944061279297 -0.09458771347999573 0.2243994176387787 4.175086975097656 -2.6902050971984863 0.38393157720565796 3.051567554473877 -0.27131763100624084 3.9151973724365234 0.0736536979675293 22.605335235595703 0.23332548141479492 -0.4080944061279297 -0.09458771347999573 0.2243994176387787 3.0508577823638916 23.553375244140625 3.3238718509674072 3.051567554473877 -0.27131763100624084 3.9151973724365234 6.01112174987793 22.697294235229492 0.23332442343235016</float_array>
<float_array id="id-mesh-4-positions-array" count="144"> 3.050856351852417 22.272930145263672 -2.643949270248413 0.0736536979675293 22.605335235595703 0.23332548141479492 3.051396131515503 24.6923828125 0.22653771936893463 3.0508577823638916 23.553375244140625 3.3238718509674072 3.051396131515503 24.6923828125 0.22653771936893463 0.0736536979675293 22.605335235595703 0.23332548141479492 6.01112174987793 22.697294235229492 0.23332442343235016 3.051396131515503 24.6923828125 0.22653771936893463 3.0508577823638916 23.553375244140625 3.3238718509674072 3.052525043487549 0.03708026185631752 -3.81927490234375 6.01112174987793 22.697294235229492 0.23332442343235016 7.1119279861450195 -0.013763070106506348 0.21231815218925476 3.050856351852417 22.272930145263672 -2.643949270248413 3.051396131515503 24.6923828125 0.22653771936893463 6.01112174987793 22.697294235229492 0.23332442343235016 0.0736536979675293 22.605335235595703 0.23332548141479492 3.052525043487549 0.03708026185631752 -3.81927490234375 -1.0304899215698242 0.25469183921813965 0.21231840550899506 3.050856351852417 22.272930145263672 -2.643949270248413 3.052525043487549 0.03708026185631752 -3.81927490234375 0.0736536979675293 22.605335235595703 0.23332548141479492 4.175086975097656 -2.318854808807373 0.3839315176010132 3.052525043487549 0.03708026185631752 -3.81927490234375 7.1119279861450195 -0.013763070106506348 0.21231815218925476 -1.0304899215698242 0.25469183921813965 0.21231840550899506 3.052525043487549 0.03708026185631752 -3.81927490234375 4.175086975097656 -2.318854808807373 0.3839315176010132 0.0736536979675293 22.605335235595703 0.23332548141479492 3.05252742767334 0.037082042545080185 4.541225433349609 3.0508577823638916 23.553375244140625 3.3238718509674072 4.175086975097656 -2.318854808807373 0.3839315176010132 7.1119279861450195 -0.013763070106506348 0.21231815218925476 3.05252742767334 0.037082042545080185 4.541225433349609 6.01112174987793 22.697294235229492 0.23332442343235016 3.05252742767334 0.037082042545080185 4.541225433349609 7.1119279861450195 -0.013763070106506348 0.21231815218925476 3.052525043487549 0.03708026185631752 -3.81927490234375 3.050856351852417 22.272930145263672 -2.643949270248413 6.01112174987793 22.697294235229492 0.23332442343235016 3.05252742767334 0.037082042545080185 4.541225433349609 -1.0304899215698242 0.25469183921813965 0.21231840550899506 4.175086975097656 -2.318854808807373 0.3839315176010132 3.05252742767334 0.037082042545080185 4.541225433349609 0.0736536979675293 22.605335235595703 0.23332548141479492 -1.0304899215698242 0.25469183921813965 0.21231840550899506 3.0508577823638916 23.553375244140625 3.3238718509674072 3.05252742767334 0.037082042545080185 4.541225433349609 6.01112174987793 22.697294235229492 0.23332442343235016</float_array>
<technique_common>
<accessor source="#id-mesh-4-positions-array" count="48" stride="3">
<param name="X" type="float"/>
@ -67,7 +67,7 @@
</technique_common>
</source>
<source id="id-mesh-4-normals">
<float_array id="id-mesh-4-normals-array" count="144"> -0.47338446974754333 0.6735657453536987 -0.567641019821167 -0.47338446974754333 0.6735657453536987 -0.567641019821167 -0.47338446974754333 0.6735657453536987 -0.567641019821167 -0.5491256713867188 0.7844153046607971 0.2883639931678772 -0.5491256713867188 0.7844153046607971 0.2883639931678772 -0.5491256713867188 0.7844153046607971 0.2883639931678772 0.5341519117355347 0.7934101223945618 0.29186010360717773 0.5341519117355347 0.7934101223945618 0.29186010360717773 0.5341519117355347 0.7934101223945618 0.29186010360717773 0.7046421766281128 0.015781469643115997 -0.7093872427940369 0.7046421766281128 0.015781469643115997 -0.7093872427940369 0.7046421766281128 0.015781469643115997 -0.7093872427940369 0.4591563045978546 0.6792135834693909 -0.5725768804550171 0.4591563045978546 0.6792135834693909 -0.5725768804550171 0.4591563045978546 0.6792135834693909 -0.5725768804550171 -0.7048021554946899 0.015236521139740944 -0.7092402577400208 -0.7048021554946899 0.015236521139740944 -0.7092402577400208 -0.7048021554946899 0.015236521139740944 -0.7092402577400208 -0.6937630772590637 0.018292123451828957 -0.7199708223342896 -0.6937630772590637 0.018292123451828957 -0.7199708223342896 -0.6937630772590637 0.018292123451828957 -0.7199708223342896 0.6940767168998718 -0.4784602224826813 -0.5378971099853516 0.6940767168998718 -0.4784602224826813 -0.5378971099853516 0.6940767168998718 -0.4784602224826813 -0.5378971099853516 -0.44065535068511963 -0.8027727007865906 -0.401719868183136 -0.44065535068511963 -0.8027727007865906 -0.401719868183136 -0.44065535068511963 -0.8027727007865906 -0.401719868183136 -0.7227038145065308 0.017127640545368195 0.690945565700531 -0.7227038145065308 0.017127640545368195 0.690945565700531 -0.7227038145065308 0.017127640545368195 0.690945565700531 0.7182745337486267 -0.4459829330444336 0.5340233445167542 0.7182745337486267 -0.4459829330444336 0.5340233445167542 0.7182745337486267 -0.4459829330444336 0.5340233445167542 0.7290554642677307 0.015748830512166023 0.6842734813690186 0.7290554642677307 0.015748830512166023 0.6842734813690186 0.7290554642677307 0.015748830512166023 0.6842734813690186 0.6955171823501587 0.018292702734470367 -0.7182765007019043 0.6955171823501587 0.018292702734470367 -0.7182765007019043 0.6955171823501587 0.018292702734470367 -0.7182765007019043 -0.46291571855545044 -0.7930521368980408 0.3959512412548065 -0.46291571855545044 -0.7930521368980408 0.3959512412548065 -0.46291571855545044 -0.7930521368980408 0.3959512412548065 -0.7291349768638611 0.015204986557364464 0.6842010021209717 -0.7291349768638611 0.015204986557364464 0.6842010021209717 -0.7291349768638611 0.015204986557364464 0.6842010021209717 0.7244240045547485 0.017125971615314484 0.6891418695449829 0.7244240045547485 0.017125971615314484 0.6891418695449829 0.7244240045547485 0.017125971615314484 0.6891418695449829</float_array>
<float_array id="id-mesh-4-normals-array" count="144"> -0.47338446974754333 0.6735657453536987 -0.567641019821167 -0.47338446974754333 0.6735657453536987 -0.567641019821167 -0.47338446974754333 0.6735657453536987 -0.567641019821167 -0.5491256713867188 0.7844153046607971 0.2883639931678772 -0.5491256713867188 0.7844153046607971 0.2883639931678772 -0.5491256713867188 0.7844153046607971 0.2883639931678772 0.5341519117355347 0.7934101223945618 0.29186010360717773 0.5341519117355347 0.7934101223945618 0.29186010360717773 0.5341519117355347 0.7934101223945618 0.29186010360717773 0.7044647336006165 0.034801140427589417 -0.7088853716850281 0.7044647336006165 0.034801140427589417 -0.7088853716850281 0.7044647336006165 0.034801140427589417 -0.7088853716850281 0.4591563045978546 0.6792135834693909 -0.5725768804550171 0.4591563045978546 0.6792135834693909 -0.5725768804550171 0.4591563045978546 0.6792135834693909 -0.5725768804550171 -0.7012201547622681 0.035310227423906326 -0.7120699286460876 -0.7012201547622681 0.035310227423906326 -0.7120699286460876 -0.7012201547622681 0.035310227423906326 -0.7120699286460876 -0.6922338604927063 0.03804066777229309 -0.7206699848175049 -0.6922338604927063 0.03804066777229309 -0.7206699848175049 -0.6922338604927063 0.03804066777229309 -0.7206699848175049 0.5082149505615234 -0.6862415671348572 -0.5203749537467957 0.5082149505615234 -0.6862415671348572 -0.5203749537467957 0.5082149505615234 -0.6862415671348572 -0.5203749537467957 -0.40328800678253174 -0.8399531841278076 -0.3630940616130829 -0.40328800678253174 -0.8399531841278076 -0.3630940616130829 -0.40328800678253174 -0.8399531841278076 -0.3630940616130829 -0.7251602411270142 0.035546284168958664 0.6876620054244995 -0.7251602411270142 0.035546284168958664 0.6876620054244995 -0.7251602411270142 0.035546284168958664 0.6876620054244995 0.5460522174835205 -0.6570104360580444 0.5197733044624329 0.5460522174835205 -0.6570104360580444 0.5197733044624329 0.5460522174835205 -0.6570104360580444 0.5197733044624329 0.729212760925293 0.034712906926870346 0.6834061145782471 0.729212760925293 0.034712906926870346 0.6834061145782471 0.729212760925293 0.034712906926870346 0.6834061145782471 0.6936665177345276 0.038071680814027786 -0.7192894816398621 0.6936665177345276 0.038071680814027786 -0.7192894816398621 0.6936665177345276 0.038071680814027786 -0.7192894816398621 -0.42334380745887756 -0.832472026348114 0.35744962096214294 -0.42334380745887756 -0.832472026348114 0.35744962096214294 -0.42334380745887756 -0.832472026348114 0.35744962096214294 -0.7261294722557068 0.03522613272070885 0.6866548657417297 -0.7261294722557068 0.03522613272070885 0.6866548657417297 -0.7261294722557068 0.03522613272070885 0.6866548657417297 0.7266109585762024 0.035569943487644196 0.686127781867981 0.7266109585762024 0.035569943487644196 0.686127781867981 0.7266109585762024 0.035569943487644196 0.686127781867981</float_array>
<technique_common>
<accessor source="#id-mesh-4-normals-array" count="48" stride="3">
<param name="X" type="float"/>

View File

@ -1,6 +1,6 @@
[gd_resource type="ItemVisual" load_steps=46 format=2]
[ext_resource path="res://data/character_models/neck.dae" type="MeshDataResource" id=1]
[ext_resource path="res://data/character_models/huf_neck.dae" type="MeshDataResource" id=1]
[ext_resource path="res://data/character_models/huf_calf.dae" type="MeshDataResource" id=2]
[ext_resource path="res://data/character_models/huf_thigh_left.dae" type="MeshDataResource" id=3]
[ext_resource path="res://data/character_models/huf_pelvis.dae" type="MeshDataResource" id=4]

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1,72 +0,0 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://data/models/armature.dae" type="PackedScene" id=1]
[ext_resource path="res://data/materials/Character.material" type="Material" id=2]
[sub_resource type="Skin" id=1]
bind_count = 29
bind/0/bone = 0
bind/0/pose = Transform( 1, 0, 0, 0, 0, 1, 0, -1, 0, 3.23883e-05, -0.000216131, 0 )
bind/1/bone = 1
bind/1/pose = Transform( 1, 0, 0, 0, 4.71856e-07, 1, 0, -1, 4.71856e-07, 0, -3.6933e-07, 0.782716 )
bind/2/bone = 2
bind/2/pose = Transform( 0.999745, -0.00621639, 0.0217112, -0.0215977, 0.0177767, 0.999609, -0.00659991, -0.999823, 0.0176379, 0.0051749, -0.0147984, 0.832313 )
bind/3/bone = 3
bind/3/pose = Transform( 1, -9.35914e-10, 1.36474e-09, -3.07044e-09, -0.00336038, 0.999994, 1.03179e-11, -0.999994, -0.00336038, -0.00103352, 0.00608555, 0.989014 )
bind/4/bone = 4
bind/4/pose = Transform( 1, 6.39974e-07, -8.89245e-07, 8.80181e-07, 0.0113912, 0.999935, 6.50979e-07, -0.999935, 0.0113912, -0.00103425, -0.0106821, 1.13661 )
bind/5/bone = 5
bind/5/pose = Transform( 1, -0.000269678, 0.00012004, -9.65309e-05, 0.0855512, 0.996334, -0.000278958, -0.996334, 0.0855512, -0.000675752, -0.108904, 1.31976 )
bind/6/bone = 6
bind/6/pose = Transform( 1, 8.17762e-05, -0.000263342, 0.000258866, 0.0505959, 0.998719, 9.49964e-05, -0.998719, 0.0505959, -0.00116505, -0.0605734, 1.38071 )
bind/7/bone = 7
bind/7/pose = Transform( 0.0070114, 0.0774384, 0.996973, 0.0774383, 0.993961, -0.0777491, -0.996973, 0.077749, 0.000972474, -0.0888093, -1.27436, -0.0663258 )
bind/8/bone = 8
bind/8/pose = Transform( -0.0450563, 0.0440544, 0.998013, 0.0597335, 0.997358, -0.0413288, -0.997197, 0.0577527, -0.0475687, -0.0382999, -1.27552, 0.0819168 )
bind/9/bone = 9
bind/9/pose = Transform( 0.018514, 0.0309238, 0.999351, 0.0309247, 0.999026, -0.0314866, -0.99935, 0.0314876, 0.0175398, -0.0477363, -1.26588, 0.367749 )
bind/10/bone = 10
bind/10/pose = Transform( -0.0261653, 0.130666, -0.991081, 0.130703, -0.982463, -0.132981, -0.991077, -0.133017, 0.00862804, -0.14878, 1.14002, 0.808164 )
bind/11/bone = 11
bind/11/pose = Transform( -0.475656, 0.00430243, 0.879621, 0.00321754, 0.99999, -0.00315133, -0.879625, 0.00133117, -0.475665, 0.288726, -1.25067, 0.663522 )
bind/12/bone = 12
bind/12/pose = Transform( -0.000220652, -0.000277932, 1, -0.00033695, 1, 0.000277874, -1, -0.000336981, -0.000220243, -0.0736739, -1.24826, 0.755929 )
bind/13/bone = 13
bind/13/pose = Transform( 0.00944621, 0.00316354, 0.99995, 0.0031337, 0.99999, -0.00319319, -0.99995, 0.00316359, 0.00943633, -0.00736828, -1.26387, 0.752371 )
bind/14/bone = 14
bind/14/pose = Transform( -0.00970714, 0.0022499, 0.99995, 0.00216275, 0.999995, -0.00222893, -0.99995, 0.00214089, -0.00971184, 0.0090317, -1.2631, 0.793296 )
bind/15/bone = 15
bind/15/pose = Transform( 0.00658962, -0.0806899, -0.996717, -0.0806899, 0.993446, -0.0809585, 0.996717, 0.0809585, 3.55672e-05, 0.0929316, -1.27391, -0.0704344 )
bind/16/bone = 16
bind/16/pose = Transform( -0.0392234, -0.0752374, -0.996394, -0.0366487, 0.996599, -0.0738102, 0.998558, 0.0336215, -0.0418473, 0.0788543, -1.27095, 0.113026 )
bind/17/bone = 17
bind/17/pose = Transform( 0.0229175, -0.0602779, -0.997918, -0.0474641, 0.99699, -0.0613119, 0.99861, 0.0487704, 0.0199874, 0.0853213, -1.27585, 0.345435 )
bind/18/bone = 18
bind/18/pose = Transform( 0.0297753, 0.0829781, -0.996106, 0.0950469, 0.991797, 0.0854602, 0.995027, -0.0972214, 0.0216442, -0.0890907, -1.17633, 0.766162 )
bind/19/bone = 19
bind/19/pose = Transform( -0.487887, -0.0560933, -0.871102, -0.0378187, 0.998354, -0.043106, 0.872087, 0.0119131, -0.489205, -0.236206, -1.27171, 0.644798 )
bind/20/bone = 20
bind/20/pose = Transform( 0.0047264, -0.0569537, -0.998365, -0.043808, 0.997407, -0.0571064, 0.999029, 0.0440063, 0.00221903, 0.146303, -1.27405, 0.699947 )
bind/21/bone = 21
bind/21/pose = Transform( -0.00289687, -0.0125321, -0.999917, 0.000557556, 0.999921, -0.0125339, 0.999996, -0.00059382, -0.00288967, 0.00642652, -1.25875, 0.757343 )
bind/22/bone = 22
bind/22/pose = Transform( 0.00643235, -0.0318082, -0.999473, -0.0188087, 0.999313, -0.0319243, 0.999802, 0.0190041, 0.00582965, 0.0381318, -1.27355, 0.772322 )
bind/23/bone = 23
bind/23/pose = Transform( 0.997079, 0.0643905, 0.0415419, 0.0406052, 0.0156588, -0.999053, -0.0649775, 0.997802, 0.0129985, -0.124325, -0.0162939, -0.795408 )
bind/24/bone = 24
bind/24/pose = Transform( 0.998221, 0.051846, 0.0300808, 0.0276995, 0.0458923, -0.998563, -0.053149, 0.9976, 0.0443741, -0.118691, -0.0290485, -0.456133 )
bind/25/bone = 25
bind/25/pose = Transform( 0.998432, 0.0379936, -0.0415485, 0.0267438, -0.969472, -0.243743, -0.0495496, 0.242244, -0.968951, -0.119631, 0.0441252, -0.0300586 )
bind/26/bone = 26
bind/26/pose = Transform( 0.997517, -0.0648327, -0.0280861, -0.0272034, 0.0143568, -0.999527, 0.0652032, 0.997793, 0.0125575, 0.124711, -0.0142854, -0.795383 )
bind/27/bone = 27
bind/27/pose = Transform( 0.998496, -0.0523874, -0.0171451, -0.0147558, 0.0455334, -0.998855, 0.0531055, 0.997589, 0.0446915, 0.119101, -0.0275243, -0.456326 )
bind/28/bone = 28
bind/28/pose = Transform( 0.997795, 0.00782495, 0.066146, 0.0235858, -0.970258, -0.240925, 0.0623004, 0.241949, -0.968288, 0.117675, 0.0501108, -0.0285344 )
[node name="armature" instance=ExtResource( 1 )]
[node name="Male" parent="Armature/Skeleton" index="0"]
visible = false
skin = SubResource( 1 )
material/0 = ExtResource( 2 )

File diff suppressed because one or more lines are too long

View File

@ -48,6 +48,43 @@ var root_attach_point : CharacterSkeketonAttachPoint
export(Array, ItemVisual) var viss : Array
var bone_names = {
0: "root",
1: "pelvis",
2: "spine",
3: "spine_1",
4: "spine_2",
5: "neck",
6: "head",
7: "left_clavicle",
8: "left_upper_arm",
9: "left_forearm",
10: "left_hand",
11: "left_thunb_base",
12: "left_thumb_end",
13: "left_fingers_base",
14: "left_fingers_end",
15: "right_clavicle",
16: "right_upper_arm",
17: "right_forearm",
18: "right_hand",
19: "right_thumb_base",
20: "right_thumb_head",
21: "right_fingers_base",
22: "right_fingers_head",
23: "left_thigh",
24: "left_calf",
25: "left_foot",
26: "right_thigh",
27: "right_calf",
28: "right_foot",
}
var _texture_packer : TexturePacker
var _textures : Array
var _texture : Texture
@ -137,13 +174,21 @@ func build_mesh(data) -> void:
st.begin(Mesh.PRIMITIVE_TRIANGLES)
var vertex_count : int = 0
for bone_idx in range(EntityEnums.SKELETON_POINTS_MAX):
for j in range(get_model_entry_count(bone_idx)):
var entry : SkeletonModelEntry = get_model_entry(bone_idx, j)
for skele_point in range(EntityEnums.SKELETON_POINTS_MAX):
var bone_name : String = get_bone_name(skele_point)
if bone_name == "":
print("Bone name error")
continue
var bone_idx : int = skeleton.find_bone(bone_name)
for j in range(get_model_entry_count(skele_point)):
var entry : SkeletonModelEntry = get_model_entry(skele_point, j)
if entry.entry.get_mesh(gender) != null:
var bt : Transform = skeleton.get_bone_global_pose(bone_idx)
var arrays : Array = entry.entry.get_mesh(gender).array
var vertices : PoolVector3Array = arrays[ArrayMesh.ARRAY_VERTEX] as PoolVector3Array
@ -158,7 +203,7 @@ func build_mesh(data) -> void:
var weights_array : PoolRealArray = PoolRealArray()
weights_array.append(1.0)
var ta : AtlasTexture = _textures[bone_idx]
var ta : AtlasTexture = _textures[skele_point]
var tx : float = 0
var ty : float = 0
@ -275,3 +320,9 @@ func editor_build(val : bool) -> void:
_editor_built = false
refresh_in_editor = val
func get_bone_name(skele_point : int) -> String:
if bone_names.has(skele_point):
return bone_names[skele_point]
return ""