Hello,
I noticed a strange behavior of overlays when I tried to draw a huge amount of quads (text) as an overlay, and I only have around 409 quads shown on the screen. I tried to change the order of drawing if ever it was my mistake but the last quads to be drawn are always the ones omitted, so I was thinking if there was a limit to that :/
Well, what i need to know really is if there's a way to bypass that limit (since it's not documented at all, maybe it's a bug), and if yes, how?
thank you!
EDIT:
I did some tests about it, running this code in the example material :
Code:
inline float ovRel(float coord) { return coord / 1080; }
//..
for (int x = 0; x < 30; ++x) {
for (int y = 0; y < 30; ++y) {
// A small overlay test
const float ovQuad[] = {
ovRel(x*12.f),ovRel(y*12.f), 0.f, 1.f,
ovRel(x*12.f), ovRel(y*12.f+10.f), 0.f, 0.f,
ovRel(x*12.f+10.f), ovRel(y*12.f+10.f), 1.f, 0.f,
ovRel(x*12.f+10.f), ovRel(y*12.f), 1.f, 1.f
};
h3dShowOverlays(ovQuad, 4, 1.f, 1.f, 1.f, 0.5f, whiteRes, 0);
}
}
Shows exactly 512 quad. Not enough for me