Skip to main content
8 events
when toggle format what by license comment
Dec 20, 2020 at 18:23 comment added Никита Самоуков Now when you draw text last you see triangle over your text, and now its a depth test problem. For correct draw text(and other gui stuff) you should: 1)Draw gui last. 2) Disable depth test. 3) Enable blending.
Dec 20, 2020 at 4:24 comment added user146000 @НикитаСамоуков I try drawing my text last....My triangle draws over my text and now i cant see it
Dec 20, 2020 at 0:46 comment added Никита Самоуков Its not a depth test problem. Warch your draw order, you should draw text last.
Dec 18, 2020 at 23:12 comment added user146000 @НикитаСамоуков As you can see from the image i get this box around my text when i don't disable and reenable depth test..... I want to use the text as a UI like life left ect..... That doesn't interact with the world cords but just the window cords
Dec 18, 2020 at 22:45 comment added Никита Самоуков Its not a depth test problem. Depth test can complete hide glyph, but cant create rect.
Dec 18, 2020 at 22:41 comment added user146000 @a_donda I have enable alpha blending im still getting a box around my text
Dec 18, 2020 at 20:27 comment added user144188 That's a guess. It may suppress the symptom in your case, but if done right depth remains untouched. After the scene has been rendered the text is rendered with alpha blending enabled.
Dec 18, 2020 at 19:35 history answered user146000 CC BY-SA 4.0