Maniphest T71941

Gizmos doesn't work correctly on multiple windows
Closed, ResolvedBUG

Assigned To
Ivan Perevala (ivpe)
Authored By
Ivan Perevala (ivpe)
Nov 26 2019, 8:20 PM
Tags
  • BF Blender
  • User Interface
Subscribers
Campbell Barton (campbellbarton)
Germano Cavalcante (mano-wii)
Ivan Perevala (ivpe)
Julian Eisel (Severin)
Julian S (julian)
Maciej Jutrzenka (Kramon)
Richard Antalik (ISS)
Vlad Kuzmin (Ssh4)

Description

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.97

Blender Version
Broken: version: 2.82 (sub 1), branch: master, commit date: 2019-11-15 20:45, hash: rBe5b788bad8bc
Worked: (optional)

Short description of error
https://youtu.be/wQHv90TlpBc

Exact steps for others to reproduce the error

  1. New File
  2. Create script from template - gizmo_custom_geometry.py
  3. Run script and select lamp
  4. Window > New Window
  5. Also,

in the second window gizmo select test is not correct, you can see it in my short video

Event Timeline

Ivan Perevala (ivpe) created this task.Nov 26 2019, 8:20 PM
Ivan Perevala (ivpe) updated the task description.Nov 26 2019, 9:11 PM
Ivan Perevala (ivpe) assigned this task to Campbell Barton (campbellbarton).Nov 26 2019, 9:14 PM
Maciej Jutrzenka (Kramon) removed Campbell Barton (campbellbarton) as the assignee of this task.Nov 26 2019, 9:28 PM
Maciej Jutrzenka (Kramon) added a subscriber: Campbell Barton (campbellbarton).
Maciej Jutrzenka (Kramon) added a subscriber: Maciej Jutrzenka (Kramon).

plz wait for developers to assign them self to bug report.

Ivan Perevala (ivpe) added a comment.Nov 26 2019, 9:38 PM
In T71941#818584, @Maciej Jutrzenka (Kramon) wrote:

plz wait for developers to assign them self to bug report.

Okay)

Vlad Kuzmin (Ssh4) added a subscriber: Vlad Kuzmin (Ssh4).Nov 27 2019, 4:46 AM
Germano Cavalcante (mano-wii) added a subscriber: Germano Cavalcante (mano-wii).Nov 28 2019, 4:39 PM

A similar bug is being handled in T66491

Ivan Perevala (ivpe) added a comment.Nov 28 2019, 5:31 PM

In my purposes, I need to make multiple window support for texture paint mode addon. Simplificated it looks like that:


In the attached *.blend file I tried make similar operations as in Blender source code

I tried to add gpu.matrix.push_pop() and enable GL_BLEND, GL_DEPTH_TEST, clear GL_DEPTH_BUFFER_BIT before drawing custom shape (and disable after self.draw_custom_shape)
As a result, in object mode everything works only if any other 3d gizmo is drawn(in my video bellow it was move gizmo) / in texture paint mode it works normal only in "main" window, in the second one if mouse is over gizmo, selection is not stable, as you can see, gizmo blinked.

https://youtu.be/1tEX2qkzXgA

Maybe I skipped something important?
I write addon to work with photoscanned objects and multiple window support is very usefull.

Julian Eisel (Severin) changed the task status from Needs Triage to Needs Information from User.Jan 7 2020, 7:02 PM
Julian Eisel (Severin) added a subscriber: Julian Eisel (Severin).

I'm not too sure what the issue is to be honest, I can't recreate any glitches by creating multiple windows. Videos are generally not that useful to communicate such things and we tell people to use text instead. In this case I'm also slightly confused about what I'm seeing in the video.

So could you give a more precise description of the error? Or is it just the blinking?

Richard Antalik (ISS) closed this task as Archived.Jan 16 2020, 12:13 PM
Richard Antalik (ISS) claimed this task.
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).

Since last asking for information it has been 7 or more days, due to the policy of our bug tracker we will have to close the report.

Julian Eisel (Severin) reopened this task as Confirmed.EditedJan 16 2020, 1:09 PM

Even though we're waiting on more information, at least there is a blinking/flickering that should be considered a bug. I'm just not sure from the videos/description if that's all.
In other words, I can confirm one issue, I'm just not sure if there is more to it.

So keeping this report open as confirmed, assuming that it relates to the flickering. This may in fact still be the same issue as T66491, but that needs to be investigated.

Ivan Perevala (ivpe) added a subscriber: Julian S (julian).EditedJan 16 2020, 3:16 PM

@Julian Eisel (Severin), thank you for confirming the task, today I will describe the problem in more detail.

Ivan Perevala (ivpe) added a comment.EditedJan 16 2020, 8:33 PM

@Julian Eisel (Severin), @Richard Antalik (ISS), I prepared some files to show that it does not work as it should. They have an object in the texture drawing mode and the camera around it. The script in each of the files adds a gizmo near each of the cameras. In one file, I used a custom gizmo (just a dot is drawn) and in the other, the standard GIZMO_GT_primitive_3d. So, in the first file in one of the windows, the selection of gizmo goes well, and in the second it blinks (however, here I have the opportunity to use GL_DEPTH_TEST so that the gizmo is not selected through the object, as in the second file).

File with GIZMO_GT_primitive_3d

File with custom gizmo geometry

Bastien Montagne (mont29) changed the subtype of this task from "Report" to "Bug".Jan 20 2020, 8:35 PM
Bastien Montagne (mont29) added a project: User Interface.
Richard Antalik (ISS) removed Richard Antalik (ISS) as the assignee of this task.Feb 27 2020, 2:48 PM
Ivan Perevala (ivpe) added a comment.Mar 29 2020, 2:49 PM

@Julian Eisel (Severin), I want to ask you about the status of the task, at the moment it is not assigned to anyone.

Julian Eisel (Severin) moved this task from Backlog to Bugs on the User Interface board.Jun 26 2020, 5:56 PM
Ivan Perevala (ivpe) closed this task as Resolved.Sep 24 2020, 1:55 PM
Ivan Perevala (ivpe) claimed this task.

@Julian Eisel (Severin) , looks like everything works good in new releases. So I change task status to resolved. Thank you!