Jump to content

[SOLVED] Array parameter in 2.10 material file format


photo

Recommended Posts

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

Link to comment

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.

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment

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

Link to comment
  • silent changed the title to [SOLVED] Array parameter in 2.10 material file format
×
×
  • Create New...