vsgExamples icon indicating copy to clipboard operation
vsgExamples copied to clipboard

vsgscreenshot can produce strange output

Open rainergericke opened this issue 2 years ago • 2 comments

Sometimes vsgscreenshot produces suboptimal output. The model shown on the screen looks good, but the saved color file can be suboptimal. Screen output (Mac but Windows and Linux look the same: vsgcreenshot models/lz.vsgt --cf theShot.png mac_screen_copy The trees look strange in the png file: mac_shot_lz Png file produced on Winows looks like this: windows_shot_lz Similar does Linux: linux_shot_lz

rainergericke avatar Dec 08 '23 08:12 rainergericke

I have seen the same visuals, I suspect there is something about way the blending is done in the lz.vsgt model, it's setting the color and alpha value of the framebuffer in a way doesn't cause obvious problems when rendering on screen, but when saving to file and then using a texture the blending causes problems.

The lz.vsgt model was converted from OpnSceneGraph-Data/lz.osgt using osg2vsg which needs rewriting, the rewrite will lead to a different set of state that lz.vsgt would apply and might fix this issue,

It would be worth trying out other non OSG related models to see if they exhibit the same artifact.

robertosfield avatar Dec 08 '23 09:12 robertosfield

lz.vsgt was the only problematic model file I found so far. So maybe this is a very special problem.

rainergericke avatar Dec 08 '23 10:12 rainergericke