co-01: spent a good two days trying to…

Written: 2023-01-01
Categories: Cohost Archive
Tags: Gamedev, Gamemaker, Threebee

Original tags were: gamedev, threebee, gamemaker

spent a good two days trying to fix a bug that i was swearing up and down SHOULD be impossible because it didn’t make sense, only to finally identify the cause as something incredibly trivial and fix it in a minute.


to cut a very long story short, things rendered in the gui event were appearing “underneath” anything i rendered in the post-draw event, which “didn’t make sense” because the gui event happens afterwards.

the cause ended up being that while I needed to enable depthbuffer testing when rendering the scene in 3D I wasn’t disabling it afterwards so it was still enabled when it was time to draw the gui and thus the gui wasn’t appearing on any pixels that’d already had something drawn to them

honestly “stuff i’m rendering is being obscured by stuff already on the screen” should’ve clued me into the fact it was depth buffer related, but i got there in the end so thats what matters

what if a bug had a website

emily/chloe
it/its/she/her
occasional maker of things and poster of thoughts