Jump to content

How to create a character creation system like Saint Row game !!


pichayuth
 Share

Recommended Posts

Dear, All experts

I want to create a character creation system like Saint Row game. The Saint Row system allow me to adjust size of each part of the body,
such as chest size, arm muscle, legs and arms length. I did some research and the internet said about "Morph" technique. but I still don't understand about
what this technique is about, how to do it? how to apply to be used in Babylon? Some said I have to use Blender or 3ds.
The information that I got seem to be overwhelming ,but it is like a jigsaw that I don't know where should i begin first.

***Sorry,if i post in the wrong forum or category


Thank you in advance
 

Link to comment
Share on other sites

I haven't played SR, but by the looks of it(Google searches), you might be able to use morph targets and different meshes for hair styles. Then different textures as well as skin colors for variation.

Look at this example for bone deformation: http://playground.babylonjs.com/#94EHM5

I chose to scale on all axis, although you can scale one at a time. There's an issue with keeping the scale when playing an animation, though.

Hmm. Maybe @Deltakosh or @adam know why starting animations reset the scaling on bones. Maybe it's simply not possible?

Link to comment
Share on other sites

On 11/8/2017 at 11:03 PM, JCPalmer said:

Here is the BJS morph target doc.  Gotta say though, that this is a very advanced topic for someone who needs to morph in quotes.  Not only do you need make max & min targets for each body area, but you need to create the original mesh vertex data.

I have read the doc and from what I understand is, if i want to have 3 races in my game (dwarf, human, Orc) which dwarf has a smallest body size and Orc has a biggest one. I have to define a min state as dwarf size and max as Orc size separately for every body part (head, arm, hand, leg, etc) NOT!! The whole body together and the process of defining min and max will be done in modeling program such as Blender

Link to comment
Share on other sites

  • 7 months later...
5 hours ago, natewallis said:

Any ideas why this demo isn't working anymore? 

http://playground.babylonjs.com/#94EHM5#1

I hit "bigger head" and it caves the head into the body... 

At some point, the setScale function was changed to require a vector3 instead of 3 separate parameters.

This works. I removed the initial scaling of the bones, as it happens in the loop anyway.

http://playground.babylonjs.com/#94EHM5#2

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...