playMaker

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

Gida

  • Playmaker Newbie
  • *
  • Posts: 48
    • View Profile
Blending / morphing Geometry
« on: January 27, 2016, 07: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: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Blending / morphing Geometry
« Reply #1 on: January 28, 2016, 01: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
    • View Profile
Re: Blending / morphing Geometry
« Reply #2 on: January 29, 2016, 12: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: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Blending / morphing Geometry
« Reply #3 on: January 29, 2016, 12: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
    • View Profile
Re: Blending / morphing Geometry
« Reply #4 on: January 29, 2016, 01: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, 01:28:39 AM by Gida »

mdotstrange

  • Hero Member
  • *****
  • Posts: 551
    • View Profile
    • Can't code? Who cares! Make games anyway!
Re: Blending / morphing Geometry
« Reply #5 on: January 29, 2016, 01: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
    • View Profile
Re: Blending / morphing Geometry
« Reply #6 on: January 29, 2016, 02:13:20 AM »
Now this is what I call service and a useful answer.  8)

Thank you