Is there a way to increase this limit?
The material tag could not be registered since the maximum number of material tags (32) has been reached
Not currently no.
Internally it’s a 32bit bitfield, and I’m currently unsure of the implications of increasing it to 64 bits.
Please consider increasing this up. This is very serious limitation with absolutely no workaround.
Added feature request here:
So when? The fourth month and nothing done.
Correct. Nothing done on that specific issue as we have been working on other issues which we have considered more urgent or for other reasons have aligned better with other work we have done. That said, the issue is still on our radar and is kept in the planned tasks these last couple of sprints, in case we have time to spare to pick up more tasks.
I’ve finally started this task, and I’d love to know more about your use case.
Looking at our code, increasing to a 64 bit value (it’s a bitmask, corresponding to 64 unique material tags), would be easy.
A more generic solution to support >64 tags is trickier (i.e. moving away from the bitmask solution), and will require some more thought to make the code work efficiently.
So I guess that’s the first question:
How many material tags do you anticipate using?
Use case is simple: to draw things. For example, scene on video above uses 21 tags only to draw lights & shadows (10 light sources). Besides obvious things like text, gui, tiles, etc, I also want use masking for sprites, another kind of water, mirrors on walls, more post effects, and (probably) implement normal mapping.
For that, I need more than 32 tags. 64, I think, is enough for now.
Looks amazing by the way!
Ten different light sources? Do you use individual tag for each?
And I agree, scene looks gorgeous!
Sorry for the off topic but this is really awesome. I think I’ve seen this game on twitter (or maybe not) and didn’t know it was using Defold.
Edit: I’m confused.
@dmitriy We have now merged a fix to the alpha branch if you’d like to try it out.
We have removed the limit of max 32 global material tags.
You can now have as many as you want (still max 32 tags per material though).
Wow! Looks (and sounds) gorgeous.
That a good news! Thanks.