DEV Community

Cover image for Making a Multiplayer WEB RPG - Part 10: Customizing Characters
Orion3D
Orion3D

Posted on • Edited on

Making a Multiplayer WEB RPG - Part 10: Customizing Characters

Hi All,

I've been working on character customization systems. It is nearly complete and includes a big performance boost compare to previous method.


I have 2 types of items (I’m sure none of this is new to you guys, but sharing is caring :slight_smile: ):

  • dynamic items that I attached via code to the relevant bone (weapon, hat, shields, etc…)
  • embedded items which are rigged item in blender (head & armor currently), not much choice there as a skirt for example needs to move with the legs (not possible with the dynamic method)

So I now have one single VAT running that is used by all my “humanoid” characters.

Currently, I can mix and match the following very easily:

  • 20 materials,
  • 6 heads,
  • 3 dynamic items (weapon/shield/helm,head)
  • 2 embedded items (white robe, purple robe)

Next step is being able to customize the material for the “embedded” items, currently I apply one material to the full mesh (including the embedded items).

Performance are still good (50-60fps / 40 draw calls approx)

Here are a few shots:

Image description

Image description

Image description

Image description

Top comments (0)