learnopengl-qt3d icon indicating copy to clipboard operation
learnopengl-qt3d copied to clipboard

Outline selection example not working

Open Simi4 opened this issue 6 years ago • 6 comments

default

Tested with: Intel HD 4400 OpenGL 4.3 CoreProfile Qt 5.10

the log is empty

Simi4 avatar Jun 26 '18 13:06 Simi4

http://lists.qt-project.org/pipermail/interest/2017-September/028069.html stencil-mask.zip

Simi4 avatar Jul 09 '18 18:07 Simi4

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.

florianblume avatar May 16 '22 13:05 florianblume

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. 😇

MidoriYakumo avatar Jul 11 '22 08:07 MidoriYakumo

I saw Sean Harmer replied you in maillist, does LayerFilter works?

MidoriYakumo avatar Jul 11 '22 08:07 MidoriYakumo

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 avatar Jul 11 '22 11:07 florianblume

@florianblume All assets from https://learnopengl.com/

I'm happy to receive PR if it can be fixed

Stencil-testing

MidoriYakumo avatar Jul 15 '22 08:07 MidoriYakumo