helmut.bressler Posted January 29, 2020 Posted January 29, 2020 Hello, I'm about to port a custom material from 2.7.3 to 2.10 and I noticed that the material file format has changed. Specifically I couldn't find in the docs how to describe a array parameter, i.e. something like this in Unigine 2.7. and earlier: <parameter name="my_array_parameter" type="array" shared="1"/> The material class seems to support arrays of any float or int vector type so I guess the relevant info is either not in the docs or I have just missed it. Many thanks Helmut
silent Posted January 29, 2020 Posted January 29, 2020 Hi Helmut, Yep, it was removed in 2.10 and as far as I remember it wasn't documented. Right now arrays support (but not exactly the same) are preset in a new ULON format. You can check the example usage in <SDK>/data/editor2/brushes/brush.basebrush material.a Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
helmut.bressler Posted January 29, 2020 Author Posted January 29, 2020 Hello Silent, thank you for the quick response! The material I am porting is based on mesh_base.basemat, so porting it to then ULON format seems to be a quite significant effort (and error prone, given that I have no experience with the new material system so far). I think its simpler to replace the array parameter by a 1D texture instead. Thanks Helmut
silent Posted January 29, 2020 Posted January 29, 2020 Yep, that might be the easiest option. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts