openframeworks / openframeworks/openFrameworks
depth test auto-disabling for larger windows
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
I've been modeling 3D fractals using Marching Cubes and came across a weird issue. When rendering in a small window, everything works as expected, but at larger resolutions my model would suddenly glitch out with weird stripes and wrong lighting. After a bit of tinkering I found the cutoff point to be a horizontal size of 640, vertical size doesn't seem to matter. When opening or resizing a window bigger than this, everything is fine for about 10 seconds, then the depth test suddenly disables and the artifacts appear, every time. I fixed it in my app by moving ofEnableDepthTest from setup to draw, but definitely seems like a bug somewhere. I'm using 0.9.0 on a Radeon 7670M with latest drivers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with Marching Cubes in a window wider than 640, then compare the depth-test state after setup and during draw, where ofEnableDepthTest is currently used. Confirm the cause of the delayed disable and verify that depth testing remains enabled without requiring an application workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100