Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vsgscreenshot can produce strange output #282

Open
rainergericke opened this issue Dec 8, 2023 · 2 comments
Open

vsgscreenshot can produce strange output #282

rainergericke opened this issue Dec 8, 2023 · 2 comments

Comments

@rainergericke
Copy link

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

@robertosfield
Copy link
Collaborator

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.

@rainergericke
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants