TanukiDigital Posted April 26, 2025 Posted April 26, 2025 (edited) I want to adjust a float / float3 parameter that many many different materials can access globally, rather than using SetParameterFloat (for example) on individual materials. I've looked through the docs but have not seen a mention of this. Is this a possibility in Unigine? Edited April 26, 2025 by TanukiDigital
silent Posted April 28, 2025 Posted April 28, 2025 TanukiDigital There is no such functionality available, I'm afraid. You can inherit all the materials from the base one and change the desired parameter here, but internally it would anyway do the SetParameterFloat for each child material. Thanks. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Amerio.Stephane Posted April 28, 2025 Posted April 28, 2025 I agree with OP, it would be great to have something similar to Unreal Material Collection Parameters, to be able to adjust multiple attributes common to a variety of unrelated materials. 2
silent Posted April 28, 2025 Posted April 28, 2025 Yes, that would definitely be a great feature to have :) From a technical standpoint, however, it’s a bit of a challenging task to implement. I’ve added your request to our internal tracker; currently, it’s in the review stage, and we’re still gathering additional feedback. Thanks! 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
TanukiDigital Posted April 28, 2025 Author Posted April 28, 2025 (edited) That's great to hear, it would surely be a useful feature if able to be implemented. I've tested out your suggestion using material inheritance and it's working well enough for my current needs. Thanks! Edited April 28, 2025 by TanukiDigital
dmitrij.shevchenko Posted April 29, 2025 Posted April 29, 2025 On 4/28/2025 at 10:34 AM, silent said: TanukiDigital There is no such functionality available, I'm afraid. You can inherit all the materials from the base one and change the desired parameter here, but internally it would anyway do the SetParameterFloat for each child material. Thanks. I think they can also use Sub Graph Node. Any variable in this Node is something like a global variable if the Sub Graph Node is used in different materials. 1
TanukiDigital Posted May 3, 2025 Author Posted May 3, 2025 On 4/29/2025 at 3:49 AM, dmitrij.shevchenko said: Any variable in this Node is something like a global variable if the Sub Graph Node is used in different materials. This is an interesting solution and sounds like it could work quite well. I'll try it out, thanks!
Recommended Posts