ghostkg Posted September 17, 2017 Share Posted September 17, 2017 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
honya Posted September 17, 2017 Share Posted September 17, 2017 Hi, Unigine don't have function for remove surface, but there are 2 options to do it: Set disable on removed surface, but you must check count of disabled surfaces for better performance. The less surfaces, the better performance. 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
xyz678 Posted September 17, 2017 Share Posted September 17, 2017 Is there anything other than this? During the game, the parts are replaced frequently, but the data is not removed and accumulates. thank you. Link to comment
cryunreal Posted September 18, 2017 Share Posted September 18, 2017 (edited) Hi! Why do you use surfaces for this? Did you try to use separate child nodes? For example you can look at the Soldier Demo. Edited September 18, 2017 by cryunreal Link to comment
Recommended Posts