Search found 14 matches

by rjinman
Wed Apr 03, 2019 1:38 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

ONEEYEMAN wrote:
Tue Apr 02, 2019 3:46 pm
Hi,
What type of card do you have? What driver version?

Thank you.
Intel(R) UHD Graphics 620
Driver version: 24.20.100.6170
by rjinman
Fri Mar 22, 2019 2:06 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

Manolo wrote:
Fri Mar 22, 2019 2:00 pm
glProvokingVertex is used internally by OGL to from primitives. So, it has nothing to do with your issue. Or it's a really rare weird driver bug.
I suspect the latter. If I comment out the lines in the Pyramid sample, I observe the problem - but only on this machine.
by rjinman
Fri Mar 22, 2019 12:57 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

OK, by systematically deleting stuff from the pyramid sample until it exhibited the problem I've found the one line that fixes it - and I have no idea why.

Here it is:

Code: Select all

glProvokingVertex(GL_FIRST_VERTEX_CONVENTION);
If I call that before doing any rendering, the problem goes away.
by rjinman
Fri Mar 22, 2019 12:13 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

ONEEYEMAN wrote:
Thu Mar 21, 2019 8:03 pm
Hi,
Which video card/driver do you have?
Maybe its just a timing bug with the driver?

Thank you.
Intel(R) UHD Graphics 620
Driver version: 24.20.100.6170
by rjinman
Thu Mar 21, 2019 11:05 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

It's strange that I didn't see the problem on that machine with the Pyramid sample when I modified it to do a single render on click. I could tell it was always showing the latest render by how the pyramid rotated in response to where I clicked.
by rjinman
Thu Mar 21, 2019 10:58 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

Just tried it on a different Windows machine and didn't observe the problem, so I guess it's a problem with the OGL implementation on that machine. I'll have to wait till tomorrow to tell you the specs as it's a work machine and I'm at home now.
by rjinman
Thu Mar 21, 2019 7:47 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

If you run it from the console, and look at what's printed you'll see it's always showing the previous render. i.e. it looks black when it should look white, and vice versa.
by rjinman
Thu Mar 21, 2019 6:28 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

Thanks for your help so far. Here is a fairly minimal example. It requires GLEW. #include <stdexcept> #include <sstream> #include <wx/wx.h> #include <GL/glew.h> #include <wx/glcanvas.h> const int WINDOW_W = 1000; const int WINDOW_H = 600; const int GL_VERSION_MAJOR = 3; const int GL_VERSION_MINOR = ...
by rjinman
Tue Mar 19, 2019 1:47 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

I've simplified the code in an attempt to isolate the problem. You can see the code in the screenshot. As before, it's always displaying the last result.

Image
by rjinman
Thu Mar 14, 2019 4:11 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

Re: wxGLCanvas always displaying previous render on Windows 10

Hi, yes, I do do that. Here is the relevant part of the code. void Canvas::onLeftMouseBtnDown(wxMouseEvent& e) { e.Skip(); SetFocus(); SetCurrent(*m_context); m_mouseDown = true; m_selectionRect = wxRect(e.GetPosition(), wxSize(0, 0)); } void Canvas::onLeftMouseBtnUp(wxMouseEvent& e) { e.Skip(); m_m...
by rjinman
Thu Mar 14, 2019 3:29 pm
Forum: Platform Related Issues
Topic: wxGLCanvas always displaying previous render on Windows 10
Replies: 18
Views: 629

wxGLCanvas always displaying previous render on Windows 10

I've studied the pyramid sample, which doesn't exhibit the problem, so it's likely I'm doing something wrong, but I can't for the life of me see what I'm doing differently. I'm making a fractal renderer, so I'm not rendering in a loop, like in a game; I'm rendering only when I want to redraw the fra...
by rjinman
Thu Mar 14, 2019 12:44 pm
Forum: Platform Related Issues
Topic: wxStaticBox appearance on Windows 10
Replies: 5
Views: 286

Re: wxStaticBox appearance on Windows 10

Thanks, that works. I'd tried using a wxStaticBoxSizer before with no luck, but I was adding the static box's sizer to the static box itself rather than to the wxStaticBoxSizer. For example: auto page = new wxNotebookPage(parent, wxID_ANY); auto pageSizer = new wxBoxSizer(wxVERTICAL); page->SetSizer...
by rjinman
Wed Mar 13, 2019 6:14 pm
Forum: Platform Related Issues
Topic: wxStaticBox appearance on Windows 10
Replies: 5
Views: 286

Re: wxStaticBox appearance on Windows 10

I just realised I was wrong that the spacers have no effect. I've "fixed" the problem by being extremely liberal with my use of padding. If I were to remove the spacers completely, it would look very broken.

This is Windows 10 Enterprise, Version 10.0.17134 Build 17134.
by rjinman
Wed Mar 13, 2019 5:18 pm
Forum: Platform Related Issues
Topic: wxStaticBox appearance on Windows 10
Replies: 5
Views: 286

wxStaticBox appearance on Windows 10

The image is fairly self-explanatory. https://i.imgur.com/OPlpZWg.png As you can see, the labels on the static box have a white background, which looks pretty terrible, but the main problem is that they are overlapped by the box's contents. This is despite adding spacers to the sizer, which seems to...