namal.bambarasinghe_ Posted October 2, 2014 Share Posted October 2, 2014 Hi all, I have multiple Players rendering the scene. I need to set a value of a post material parameter depending on the player. I tried callig a user defined function from post material parameter expression and select the correct parameter depending on the engine.game.getPlayer(). Howerver follwing error appears, memory:1: Interpreter::parse_expression(): unknown token "setXXXParameter" in "setXXXParameter()" expression Is it possible to call a user defined function from material parameter expression or is there another way tho achieve this. Thanks Link to comment
frustum Posted October 3, 2014 Share Posted October 3, 2014 You can write a generic function in the world script and call it from material expressions via engine.world.call() function. Link to comment
Recommended Posts