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

Keyboard shortcut for anti-aliasing still in popup help #1569

Closed
obscureed opened this issue May 5, 2023 · 5 comments
Closed

Keyboard shortcut for anti-aliasing still in popup help #1569

obscureed opened this issue May 5, 2023 · 5 comments
Assignees

Comments

@obscureed
Copy link

In smokeview 6.8.0, the keyboard shortcut to toggle anti-aliasing has been removed. The keyboard shortcut used to be '&', but now this toggles something else, HVAC metro view mode. Looking in callbacks.c, I see that there is no longer any keyboard shortcut to toggle anti-aliasing. I calmed down about this when I realised that the new default setting is for nicer-looking lines anyway. (Is this still achieved with antialiasflag/SMOOTHLINES, or has something else changed?)

Anyway, my only comment is that in menus.c, '&' (or actually '&&') is still promised as a shortcut for anti-aliasing in the popup from rightclick...Help...Shortcuts. This can be removed now. This is a very minor tweak -- I don't think it needs a patched version etc.

Thanks for your efforts.
Ed

@gforney
Copy link
Contributor

gforney commented May 5, 2023

I added the & shortcut back (and changed HVAC metro view shortcut to ALT & ). try smokeview posted here (mac smokeview not updated yet, mac is currently offline)

the default value for this parameter is 1 - ie to smooth or antialias lines

https://github.com/firemodels/test_bundles/releases/tag/SMOKEVIEW_TEST

@obscureed
Copy link
Author

Ah, OK, I've remembered what's happening: I want to turn antialiasing off every time -- It smooths out the lines by adding some background color to borderline pixels, and sometimes (often) it gets the background color wrong (understandably, because this is a complex depth calculation for every pixel). See the attached images. Really, I should set it up in ~/.smokeview.ini, and then I shouldn't need the shortcut -- but thanks for putting it back. (I have not tested the patch yet, but I will.)
Antialias on:
antialias_on
Antialias off:
antialias_off

@obscureed
Copy link
Author

Sorry, that was a bad comparison, because the second image was double-resolution. Here's a different view:
wider_antialias_on
wider_antialias_off

@obscureed
Copy link
Author

In the patched version of smokeview (SMV-6.8.0-110-gab3231e6d-master):
• The '&' keyboard shortcut is back to toggling antialiasflag -- thanks!
• The ALT-) keyboard shortcut does not seem to do anything.
— I tried it on a case with some HVAC elements -- see clip-vectors_with-hvac.fds.txt, clip-vectors_with-hvac.fds.txt in #1563 -- and a case with no HVAC elements. At least it did not crash the latter.
— I have not yet had time to learn what HVAC metro view mode should look like, but I was expecting a message about HVAC metro view mode to the bash terminal window.
• This issue was about the '&' shortcut, so I can close it. Thanks!

@gforney
Copy link
Contributor

gforney commented May 11, 2023

in the regular hvac network view ducts go directly from one node another that they are connected too. in metro view the ducts go horizontally and/or vertically NOT diagonaly to get from one hvac node to another as if the ducts were going along city streets.

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