
Every k-th polygon missing
Posted Sunday, 9 September, 2012 - 18:02 by Vojta| Project: | The Open Toolkit library |
| Version: | 1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | minor |
| Assigned: | Vojta |
| Status: | open |
Jump to:
Description
Hi
I have a mysterious problem with GLcontrol. If you have any idea, please help:
I use GLcontrol with Windows Forms (C++/CLI) to visualize a large 2D grid of cells of possibly different colors. If there are few thousands of rectangles, there appears some regular series of them (the period differs each run of the program) which are not drawn on the screen. When the GLcontrol is redrawn, then the set of missing rectangles differs, but the interval remains.
My redrawing procedure:
void paint() { GL::Clear(ClearBufferMask::ColorBufferBit | ClearBufferMask::DepthBufferBit); GL::ClearColor(Color::White); for (...) for (...) { GL::Color3(*actualColor) GL::Begin(BeginMode::Polygon); GL::Vertex2(... , ...); GL::Vertex2(... , ...); GL::Vertex2(... , ...); GL::Vertex2(... , ...); GL::End(); } glControl->SwapBuffers(); }
I know nothing about insides of GL-stuff.
Please, help!
Vojta
PS: On the screenshot you can see an example of "missing line" of rectangles (they are four, small and white):



Comments
#11
I have found the Examples.exe in C:\...\OpenTK\1.0\Binaries\OpenTK\Release and run it. I found there a link "OpenAL diagnostics", clicked, and in Output panel appeared following.
I also tried to run some other links via Examples, but instead most of them an error dialog appeared: "System.EntryPointNotFoundException: Unable to find an entry point named glGenBuffers in DLL opengl32.dll at (........)"
PS: It all looks like bad joke.. a grid of 55x50 quads is ok, but grid of 54x50 is broken at every 8th paint.
Thank you.. Vojta