playMaker

Author Topic: Blending / morphing Geometry  (Read 2468 times)

Gida

  • Playmaker Newbie
  • *
  • Posts: 48
Blending / morphing Geometry
« 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

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Blending / morphing Geometry
« Reply #1 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-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Gida

  • Playmaker Newbie
  • *
  • Posts: 48
Re: Blending / morphing Geometry
« Reply #2 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 :)


mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Blending / morphing Geometry
« Reply #3 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
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Gida

  • Playmaker Newbie
  • *
  • Posts: 48
Re: Blending / morphing Geometry
« Reply #4 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
« Last Edit: January 29, 2016, 03:28:39 AM by Gida »

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Blending / morphing Geometry
« Reply #5 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  :)
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

Gida

  • Playmaker Newbie
  • *
  • Posts: 48
Re: Blending / morphing Geometry
« Reply #6 on: January 29, 2016, 04:13:20 AM »
Now this is what I call service and a useful answer.  8)

Thank you