firemodels / fds

Fire Dynamics Simulator
https://pages.nist.gov/fds-smv/
Other
631 stars 612 forks source link

Smokeview: Right-click context menu does not open when eye point was moved into/through geometry #12848

Open FireResearch-BK opened 2 months ago

FireResearch-BK commented 2 months ago

Smokeview release: SMV-6.9.1-0-gd0b04d0-release

Issue: When moving the eye point into and at least after having moved it through a room made of obstructions, Smokeview's right click menu stops working, i.e. will not open.

Reproduction:

With more complex rooms, I've had this happen when inside of them as well.

Expected behavior:

gforney commented 2 months ago

sorry, I can't reproduce the error.

gforney commented 2 months ago

try smokeview posted here. when you encounter the problem, click on the scene then press the 'P' key. see if the menus are then accessible with a right mouse click

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

FireResearch-BK commented 2 months ago

try smokeview posted here. when you encounter the problem, click on the scene then press the 'P' key. see if the menus are then accessible with a right mouse click

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

Same issue and no, pressing "P" and right clicking does not bring the menu back.

Tested with SMV-6.9.2 on:

Is SMV maybe applying some condition regarding when the menu is available or not? Maybe it's not detecting or resetting them properly when inside or having moved outside of geometry.

gforney commented 2 months ago

make sure you use the test smokeview at following url NOT smokeview 6.9.2 . I justed uploaded a new test smokview adding some debug print outputting menu state - whether menu is attached or detached to right mouse button. https://github.com/firemodels/test_bundles/releases/tag/SMOKEVIEW_TEST2

FireResearch-BK commented 2 months ago

I justed uploaded a new test smokview adding some debug print outputting menu state - whether menu is attached or detached to right mouse button. https://github.com/firemodels/test_bundles/releases/tag/SMOKEVIEW_TEST2

Your latest 6.9.2-52 testing release seems to fix the issue (tested in both scenarios), but I did not see any debug info in the console that I ran Smokeview from.

gforney commented 2 months ago

you won't' see any debug output until you press the P key. each time you press the P key a signal is sent to smokeview to attach the menu - even if it is already attached. the P key also toggles on and off menu status debug print (indicating whether menus are attached - ie whether the last call was to attach a menu or to detach it)

On Mon, Apr 29, 2024 at 11:17 AM FireResearch-BK @.***> wrote:

I justed uploaded a new test smokview adding some debug print outputting menu state - whether menu is attached or detached to right mouse button. https://github.com/firemodels/test_bundles/releases/tag/SMOKEVIEW_TEST2

Your latest 6.9.2-52 testing release seems to fix the issue (tested in both scenarios https://github.com/firemodels/fds/issues/12848#issuecomment-2082068361), but I did not see any debug info in the console that I ran Smokeview from.

— Reply to this email directly, view it on GitHub https://github.com/firemodels/fds/issues/12848#issuecomment-2083015309, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6UCRREQOW6JQDRWMQJR4TY7ZP7PAVCNFSM6AAAAABGZHL3WKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGAYTKMZQHE . You are receiving this because you commented.Message ID: @.***>

-- Glenn Forney

FireResearch-BK commented 2 months ago

Ah, I missed that part. If I press "P" and move the camera around in the test case above, each and every interaction with the SMV window such as rotating the view via mouse triggers the menu status log message. In around 700 interactions, I never saw anything but "menu attached" and the menu worked each and every time I wanted to open it.

Are there any changes the menu handling code in SMV 6.9.2-52 compared to SMV 6.9.2?

gforney commented 2 months ago

No changes except adding debug print code. Is it working in this test version?

On Mon, Apr 29, 2024, 12:09 PM FireResearch-BK @.***> wrote:

Ah, I missed that part. If I press "P" and move the camera around in the test case above, each and every interaction with the SMV window such as rotating the view via mouse triggers the menu status log message. In around 700 interactions, I never saw anything but "menu attached" and the menu worked each and every time I wanted to open it.

Are there any changes the menu handling code in SMV 6.9.2-52 compared to SMV 6.9.2?

— Reply to this email directly, view it on GitHub https://github.com/firemodels/fds/issues/12848#issuecomment-2083133048, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC6UCRWGLP3SUEMOFILHDJTY7ZWD5AVCNFSM6AAAAABGZHL3WKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGEZTGMBUHA . You are receiving this because you commented.Message ID: @.***>

FireResearch-BK commented 2 months ago

Is it working in this test version?

Yes, it is. Oddly enough... (This is why I've asked regarding any code changes.)

gforney commented 2 months ago

I'll close the case. Let me know if it happens again

gforney commented 2 months ago

it was just luck that the smokeview you were using started working. I found a problem that was causing menus to not work right. I was incrementing an index variable twice instead of once . smokeview with fix is posted at link below. let me know if you continue to see a problem https://github.com/firemodels/test_bundles/releases/tag/SMOKEVIEW_TEST2