tofarley 10 Posted March 21, 2015 Hey all. I was wondering if it is possible to update the rvmat at runtime, or if there is another trick that would allow me to adjust the transparency of a model on the fly. I've successfully imported my custom model into A3 (thanks to Al's Blender Toolbox, Maczer's Rig script, and BI's reference files) but I'd like for this particular model to "fade out", rather than simply disappear when de-spawned. It seems that the way lighting is interpreted is handled in the rvmats, so if I could access those properties during runtime, I could achieve this effect. A friend of mine recommended "swapping out" the models with another model in a various state of transparency, but in addition to sounding terribly clunky and resource intensive, I'm not even sure the engine would swap the models fast enough to create the illusion of something fading out of existence. Thanks for any help you can provide. Share this post Link to post Share on other sites
warlord554 2065 Posted March 21, 2015 You can view "ingame" data in O2 buldozer viewer (such as rvmat changes, etc). Get you close for actual ingame testing. Share this post Link to post Share on other sites
tofarley 10 Posted March 22, 2015 Thanks for the reply WarLord554, but since the rvmat is specified by model, is there any way to actually adjust those settings in-game in real-time? Thanks. Share this post Link to post Share on other sites
x3kj 1247 Posted March 22, 2015 You can swap a material on a model for a different (already defined) one. Other then that, i can't think of any other way. Share this post Link to post Share on other sites
tofarley 10 Posted March 23, 2015 That sounds like it might do the trick. Any tips on how to accomplish that? I haven't seen anything about changing the rvmat through scripting or anything. Share this post Link to post Share on other sites
John Spartan 89 Posted March 23, 2015 That sounds like it might do the trick. Any tips on how to accomplish that? I haven't seen anything about changing the rvmat through scripting or anything. There is recently added scripting command - setObjectMaterial, that might do the trick. Same rules as setObjectTexture apply thou. Share this post Link to post Share on other sites
tofarley 10 Posted March 25, 2015 That looks perfect. I thought I had combed the depths of the scripting reference. Thanks! Share this post Link to post Share on other sites