Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#2339 closed defect (fixed)

wxGUI.Nviz flickering

Reported by: hcho Owned by: grass-dev@…
Priority: major Milestone: 7.2.0
Component: wxGUI Version: svn-trunk
Keywords: Nviz Cc:
CPU: x86-64 Platform: Linux

Description

Hopefully, it's not just me. Today, I tried wxGUI.Nviz for the first time in GRASS 7 trunk. Rendering is OK when I don't move the image, but whenever I change the view port, the image flickers. Also, when the display window is sent back and brought to the front, it flickers again. Maybe, I'm missing some settings somewhere?

Change History (9)

comment:1 by neteler, 10 years ago

I have the same flickering issue (Fedora 20, 64bit).

comment:2 by hcho, 10 years ago

Fixed in r61053. Please test it on Windows and Mac.

in reply to:  2 comment:3 by annakrat, 10 years ago

Replying to hcho:

Fixed in r61053. Please test it on Windows and Mac.

Works here on Ubuntu. For whatever reason I thought that it is by default double buffered but apparently not. Just quoting from the documentation to have it here explained:

If the attribute list is not specified at all, i.e. if this parameter is NULL, the default attributes including WX_GL_RGBA and WX_GL_DOUBLEBUFFER are used. But notice that if you do specify some attributes you also need to explicitly include these two default attributes in the list if you need them.

I will test on Windows but the change for Windows platform (and Mac) was not necessary because there was no such problem (double buffering was used by default).

comment:4 by hcho, 10 years ago

On Windows and Darwin, the attribute list was not specified at all, but on other platforms including Linux, only WX_GL_DEPTH_SIZE was specified in the list. Now, WX_GL_DOUBLEBUFFER and WX_GL_DEPTH_SIZE are specified for all platforms and, effectively, Windows and Darwin are missing WX_GL_RGBA now according to the above quote. I will test WX_GL_RGBA on Linux and add it.

comment:5 by hcho, 10 years ago

WX_GL_RGBA is added back in r61063.

comment:6 by annakrat, 10 years ago

No change on Windows, which is good. Could you backport it? And then we can close the ticket.

comment:7 by hcho, 10 years ago

Resolution: fixed
Status: newclosed

Backported in r61081.

comment:8 by annakrat, 10 years ago

I was running nviz on Ubuntu in virtualbox (Windows host) and interestingly, double buffering causes pretty bad flickering. When I comment it out in the code, it runs fine. When 3D acceleration is set (in virtual box), the flickering disappears. But double buffering also causes that saving image and rendering legend in 3D view produces just black screen (with or without 3D acceleration). I might add an option to settings to disable double buffering (at least on Linux).

comment:9 by neteler, 9 years ago

Milestone: 7.1.07.2.0

Milestone renamed

Note: See TracTickets for help on using tickets.