learnopengl-qt3d
learnopengl-qt3d copied to clipboard
Outline selection example not working
Tested with: Intel HD 4400 OpenGL 4.3 CoreProfile Qt 5.10
the log is empty
http://lists.qt-project.org/pipermail/interest/2017-September/028069.html stencil-mask.zip
I know this is a rather old issue but looking at the framegraph this is actually exactly the image I would expect. In the code, first the objects are all drawn and then in line 60 both the depth AND the color buffer are cleared. I can't get the whole project to run at the moment but I suspect that if you change that part to depth buffer only you should get the correct result.
Thank you nice fellows found this problem in this repo. My answer is YES, what you see now is what I saw the moment I write these codes, and I think there are BUGs on QT side and I cannot fix it at the moment(tried several parameter combinations, reading and debugging QT codes), if there is anyway to fix it now, I'm very appreciated to receive such a PR. 😇
I saw Sean Harmer replied you in maillist, does LayerFilter works?
I cannot recall which e-mail by him you mean but LayerFitler does work, for me the reason when it didn't work was that I forgot to set recursive
to true ;)
Unfortunately, I don't get where you got the assets from that's why I cannot launch it but like I said I think your clear buffers are wrong:
In file stencil_testing.qml
line 60 should not clear the color buffer, only the depth buffer (and not also stencil like I first said). This part of the code will be executed after the first render surface selector which will clear the buffer after the objects have been drawn.
@florianblume All assets from https://learnopengl.com/
I'm happy to receive PR if it can be fixed