Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Gida on January 27, 2016, 09:22:10 AM

Title: Blending / morphing Geometry
Post by: Gida on January 27, 2016, 09:22:10 AM
Hi,

searching for the posibility of blending meshes I found this:

http://hutonggames.com/playmakerforum/index.php?topic=5793.0

Problem: Its nearly not Documented what to do here.
Is there anyone who can tell me how to get Blendshapes to work? What does this "Get Blend Shape Index " stuff do and the Rest. Is the a better way to morph a mesh with a slider?

Thanx in advance
Title: Re: Blending / morphing Geometry
Post by: mdotstrange on January 28, 2016, 03:47:00 AM
Each blendshape has an index- first one is 0- next is 1 etc

So all you have to do is set the weight for the blendshape index you want to affect using "Set BlendShape Weight" 

A weight of 0 has no effect- 100 is the full blendshape/morph applied

Just drive the weight with a float set by a slider-
Title: Re: Blending / morphing Geometry
Post by: Gida on January 29, 2016, 02:16:19 AM
Thanx,

this index thing I wasnt sure about.

And what is the "Get Blend Shape Name / Count" action good for?

Do you know?

Thank you very much :)

Title: Re: Blending / morphing Geometry
Post by: mdotstrange on January 29, 2016, 02:52:10 AM
Get blendshape name will return the string for whatever you named the blendshape in your 3d application-

Get count will get the number of blendshapes on the object
Title: Re: Blending / morphing Geometry
Post by: Gida on January 29, 2016, 03:22:51 AM
AH! So the "Get" Actions are just to identify the Sum and Names of the Blendshapes in the "Skinned Mesh". And "Set Blend Shape Weight" is the Assignment plus weighting for a single Blend Shape. Did I get it correctly?

Cheers mate!

Umm, but its not necessary? I did just a set weight action and modified the name by hand. This works too.

Greetings
Title: Re: Blending / morphing Geometry
Post by: mdotstrange on January 29, 2016, 03:51:44 AM
Yeh the only one I ever use is "Set Blendshape weight" nice to have options with the others though  :)
Title: Re: Blending / morphing Geometry
Post by: Gida on January 29, 2016, 04:13:20 AM
Now this is what I call service and a useful answer.  8)

Thank you