Jump to content

How to change part of character.


photo

Recommended Posts

Hi,

I want to change a part of the character's model in real time during the game.
This is the same function that replaces parts that are used in RPG game.
I do not know how to proceed.

I selected suface models in 3dsmax and output them as one mesh file.
I proceeded by changing the surface in the UnigineEngine, but this method does not work.

There is an 'addSurface'. but there is no 'remove surface' command.

Is there any way?

thanks.

Link to comment

Hi,

Unigine don't have function for remove surface, but there are 2 options to do it:

  1. Set disable on removed surface, but you must check count of disabled surfaces for better performance. The less surfaces, the better performance.
  2. Create new empty Mesh and add all showed surfaces, then you will have always only showed surfaces, so it have better performance, but it take always time to create new Mesh.

I do combine this two options, when remove surfaces i disable it with check, how much disabled surfaces i have on the model. If there are too much disabled surfaces, i create new clean model with only showed surfaces.

 

Honya

Link to comment
×
×
  • Create New...