Changing a model's skin during play
Posted: Thu Jul 19, 2007 14:44
As the topic title says, I want to change a model's skin during play.
There are two cases I want to address:
#1 - Temporary switching for a specific animation purpose
Example: Adding highlights to the front of the model during a firing frame.
#2 - Permanent switching to show status
Example: Showing damage to the model when it reaches 1/2 health.
I thought about using modeldef's model index feature to accomplish #1, but forum research shows this feature doesn't work correctly (though to be honest, I did not try it). Does any feature exist with which to accomplish either of these cases?
It would be great to assign multiple skins to a model with a skin index number, and then reference which skin index should be used for each frame in the MODELDEF. Then, a complementary (ACS?) function could be used to reassign what images each skin index referenced. That would make both cases possible.
There are two cases I want to address:
#1 - Temporary switching for a specific animation purpose
Example: Adding highlights to the front of the model during a firing frame.
#2 - Permanent switching to show status
Example: Showing damage to the model when it reaches 1/2 health.
I thought about using modeldef's model index feature to accomplish #1, but forum research shows this feature doesn't work correctly (though to be honest, I did not try it). Does any feature exist with which to accomplish either of these cases?
It would be great to assign multiple skins to a model with a skin index number, and then reference which skin index should be used for each frame in the MODELDEF. Then, a complementary (ACS?) function could be used to reassign what images each skin index referenced. That would make both cases possible.