I have tried the three implementations.wmayer wrote: ↑Wed Dec 05, 2018 2:40 pm The thumbnail function uses View3DInventorViewer::imageFromFramebuffer which actually works well for me under Windows and Linux.
The Save picture function uses View3DInventorViewer::savePicture which internally can be controlled with a user parameter to either use:
- imageFromFramebuffer
- Coin's implementation of the off-screen renderer (SoFCOffscreenRenderer)
- FreeCAD's implementation of the off-screen renderer (SoQtOffscreenRenderer) which e.g. supports anti-aliasing. For Qt4 it can also be set to either use FBO or pixel buffers.
1) imageFromFramebuffer produces a black image of the required size, no matter which format is used.
2) 'CoinOffscreenRenderer'. I get an exception at:
https://github.com/FreeCAD/FreeCAD/blob ... .cpp#L1115
3) 'PixelBuffer'
In report window:
QOpenGLFramebufferObject: Framebuffer incomplete attachment.
I have no clue what else to try.