Closed dmoisset closed 4 years ago
Note: If I use different layers for each label, this works as expected
Thanks for the big report. That is very odd because there are multiple labels in both the Lander and Flappy Bird demos. Possibly this is an issue with use of BaseVertex?
What OpenGL version do you get? (I think this is scene.ctx.version_code?) And what OS/Version?
This is ubuntu 18.04.3. I'm using the proprietary NVIDIA drivers for the builtin nvidia card on my laptop. glxinfo reports:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce MX150/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 390.116
OpenGL core profile shading language version string: 4.60 NVIDIA
I also see some issues (although different) in the Lander and flappy bird demos. The flappy bird label changed size and disappeared after a while; the lander hud labels sometimes are clipped, or some of the text disappears and appears later.
Ok, probably an index buffer allocation thing. This was something that was reworked hastily at PyCon UK to get it working under OpenGL 4.1. I'll investigate tomorrow.
Please can you try now with the master branch? Hoping it is fixed in a7c1d962584c17617e6e79bff12a0b7122ab97bd.
Works like a charm! thanks :)
I'm trying to add 2 labels into a layer, but the second one doesn't show (it seems to make the first one bolder. I.e., if I run:
I expect to see both "hello" and "world", but I only see "hello". If I comment the assignment to
text1
, then "World" shows up. I think some GL object/array is being cached and reused too aggressively, but I couldn't understand how wasabi manages its caches....