Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Armature (skeleton) with blend shapes #2

Open
pionl opened this issue Jan 19, 2018 · 3 comments
Open

Armature (skeleton) with blend shapes #2

pionl opened this issue Jan 19, 2018 · 3 comments

Comments

@pionl
Copy link

pionl commented Jan 19, 2018

Hi,

thank you for the tool, works perfectly until I tried to use model which uses skeleton. instance_controller references the armature, not the geometry where morph are set (with my model it's last controller). SceneKit will not load blend shapes. After I fixed the url value all works well.

Best regards,
Martin

@enzyme69
Copy link

Hi, I think I have similar issue, but not quite sure how to fix. So if I just have a head with shapekeys, it works. But with armature, it does not modify the correct node.

Can you explain what url you change? How?

@pionl
Copy link
Author

pionl commented Jan 29, 2018

The armature must link to morph controller, currently it connects to geometry.
Change the <skin id attribute to reference a controller with morph.

snimek obrazovky 2018-01-22 v 14 41 37

@workhardupc
Copy link

workhardupc commented Oct 18, 2019

I has the same problem, skeleton has no problem. There has blend shapes, but has no effect when set one of the blend shape.

According to @pionl , the setting is right.

Anyone kown how to fix this?

<controller id="morph218"> <morph source="#geometry44" method="NORMALIZED"> <source id="morph218-targets"> <IDREF_array id="morph218-targets-array" count="42">geometry50 geometry54 geometry58 geometry62 geometry66 geometry70 geometry74 geometry78 geometry82 geometry86 geometry90 geometry94 geometry98 geometry102 geometry106 geometry110 geometry114 geometry118 geometry122 geometry126 geometry130 geometry134 geometry138 geometry142 geometry146 geometry150 geometry154 geometry158 geometry162 geometry166 geometry170 geometry174 geometry178 geometry182 geometry186 geometry190 geometry194 geometry198 geometry202 geometry206 geometry210 geometry214 </IDREF_array> <technique_common> <accessor source="#morph218-targets-array" count="42" stride="1"> <param name="MORPH_TARGET" type="IDREF"/> </accessor> </technique_common> </source> <source id="id-morph-9-morph-weights"> <float_array id="ID219-array" count="42">0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.541667 0 0 0 0 0 0 0 0 0 0 0 </float_array> <technique_common> <accessor source="#ID219-array" count="42" stride="1"> <param name="A" type="float"/> </accessor> </technique_common> </source> <targets> <input semantic="MORPH_TARGET" source="#morph218-targets"/> <input semantic="MORPH_WEIGHT" source="#id-morph-9-morph-weights"/> </targets> </morph> </controller> <controller id="Basis" name="Basis"> <skin source="#morph218"> <bind_shape_matrix>1 0 0 4.410744e-08 0 1 0 -4.231929e-08 0 0 1 1.430512e-08 0 0 0 1 </bind_shape_matrix> <source id="ID220"> <Name_array id="ID220-array" count="6">SID_8 SID_9 SID_10 SID_11 SID_12 SID_13 </Name_array> <technique_common> <accessor source="#ID220-array" count="6" stride="1"> <param name="JOINT" type="name"/> </accessor> </technique_common> </source>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants