nutti / Screencast-Keys

Blender Add-on: Screencast Keys
GNU General Public License v3.0
1.27k stars 112 forks source link

enabling screencast keys makes blender text overlays bounce all over the place #33

Closed 3d-illusions closed 3 years ago

3d-illusions commented 4 years ago

System Information Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38

Blender Version Broken: version: 2.91.0 Alpha, branch: master, commit date: 2020-10-13 22:29, hash: rB2cc7be3e4907

text info and statisctics overlays (to left) are bouncing around all over the place if screencast keys is enabled. Check out the attached video.

drawing bug.zip

nutti commented 4 years ago

@3diuk

Thanks, this bug is fixed now.

3d-illusions commented 4 years ago

awesome!

3d-illusions commented 4 years ago

Hi bug is still there if origin is window rather than region, and even if the origin is set to region, when you change to a different workspace the ovlerays start bouncing around again (even though your overlay isn't visible)

nutti commented 4 years ago

@3diuk

The main reason of this issue is a lack of API in blf module. If there is a way to get original font size, this issue will be fixed.

Do you have any ideas to realize this? I also posted the question to blender.stackexchange.com.

https://blender.stackexchange.com/questions/198727/get-font-size-of-blf-module

3d-illusions commented 4 years ago

I'm not sure. You might have more luck getting an answer at:

https://blender.chat/channel/python

or

https://devtalk.blender.org/c/other-topics/python/6

3d-illusions commented 4 years ago

unrelated question. Do you know how to get information about what the mouse is hovered over? I need to find the area, panel type, parameter/property id/name, or any other UI element identifiers.

nutti commented 4 years ago

@3diuk

Thanks. I will post the question later. If it is difficult to solve this issue, we will need to downgrade this add-on.

Do you know how to get information about what the mouse is hovered over? I need to find the area, panel type, parameter/property id/name, or any other UI element identifiers.

This should be discussed in other place. I think you can use area.x or area.width for finding area, as well as region.x or region.width for region to find area and region where mouse is placed. But I don't have any ideas to get parameter/prop_id/name.

nutti commented 4 years ago

BTW, this bug is also found in Shortcut VUr. Perhaps, we should report this to Blender developers. I doubt if this is a problem of Blender itself.

nutti commented 4 years ago

Reverted old commit. I think we should simple program which reproduces this phenomena, and direct to D.B.O.

Because Blender 2.91 is alpha, we can also wait official release.

nutti commented 4 years ago

@3diuk

I could easily reproduce this bug by below simple add-on.

https://gist.github.com/nutti/6d06ee1ab43cc9b6d02e14988f62ba3b

The point is here. If we change blf module font size, we can see same issue.

https://gist.github.com/nutti/6d06ee1ab43cc9b6d02e14988f62ba3b#file-blf_bug-py-L23-L25

3d-illusions commented 4 years ago

yes definitely, I think you should report the bug ASAP.

nutti commented 4 years ago

I posted the bug report to D.B.O.

https://developer.blender.org/T81757

If you have any additional information, feel free to comment there.

3d-illusions commented 4 years ago

caused by this perhaps?

https://developer.blender.org/D9107

nutti commented 4 years ago

@3diuk

Yeah, I also think this seems to cause the issue.

nutti commented 3 years ago

This issue now fixed in Blender 2.91 Beta (b0f34eee30c4), so I will close this issue. If the issue still exists, please reopen this issue again. Thanks.