# Horde3D

Next-Generation Graphics Engine
 It is currently 24.02.2024, 14:18

 All times are UTC + 1 hour

 Page 1 of 1 [ 2 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: Overlays : a limit to what you can draw?Posted: 10.09.2012, 13:24

Joined: 06.09.2012, 14:18
Posts: 5
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
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

Top

 Post subject: Re: Overlays : a limit to what you can draw?Posted: 10.09.2012, 15:36

Joined: 06.09.2012, 14:18
Posts: 5
Fixed!

I had to change the value of "MaxNumOverlayVerts" in egRenderer.h and recompile the library, that fixed it but by setting it to a higher value (20460) I made my app a bit more memory hungry, nothing to complain about in a video game

Still, I wish something about this limit was in the documentation, it left me anxious for a while and pushed me to look at Horde3D's source for the first time...

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 2 posts ]

 All times are UTC + 1 hour

#### Who is online

Users browsing this forum: No registered users and 1 guest

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ Horde3D Usage    General Discussion    Support    Bug Reports    Asset Creation    Showcase    Advanced Rendering Techniques    Tools    Free Discussion Horde3D Development    Developer Discussion