Cavewhere / cavewhere

3D Cave Mapping Software
https://cavewhere.com
GNU General Public License v3.0
34 stars 8 forks source link

cwQuickSceneView needs to draw to FBO #96

Open vpicaver opened 8 years ago

vpicaver commented 8 years ago

cwQuickSceneView needs to draw to FBO because the current code is unsafe. The QGraphicsScene is rendering in the render thread instead of the gui thread. A good example on how to do this is here: https://doc.qt.io/qt-5/qtquick-scenegraph-textureinthread-example.html

This probably creates QObject::killTimer warning and an infinite loop, that uses 100% CPU.

jedwards1211 commented 8 years ago

Plus it would allow us to implement multisampling in a platform-independent manner! :)

vpicaver commented 8 years ago

This for the export to image stuff only. I has nothing to do with mult sampling. I'm pretty sure there's could to enable multi sampling in the 3D view. It's probably just commented out. We need to have a settings page, that allows the user to enable multi sampling or not. I know it can cause problems if people's graphics cards don't support it.

On Thursday, January 7, 2016, Andy Edwards notifications@github.com wrote:

Plus it would allow us to implement multisampling in a platform-independent manner! :)

— Reply to this email directly or view it on GitHub https://github.com/Cavewhere/cavewhere/issues/96#issuecomment-169702506.

Phi|ip

Sent from Gmail Mobile