Vojta's picture

Every k-th polygon missing

Project:The Open Toolkit library
Version:1.x-dev
Component:Code
Category:support request
Priority:minor
Assigned:Vojta
Status:closed
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):
missing rectangles


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Vojta's picture

#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.

Launching sample: "OpenAL diagnostics"
 
This application is currently running as x86
--- Device related errors ---
--- Device related analysis ---
Default playback device: Generic Software on Speakers (Realtek High Definition Audio)
All known playback devices:
Generic Software on Speakers (Realtek High Definition Audio)
Default recording device: Microphone (Realtek High Defini
All known recording devices:
Microphone (Realtek High Defini
--- Alc related errors ---
--- Alc related analysis ---
Alc Version: 1.1
Efx Version: 1.0
Efx max. Auxiliary sends: 1
Alc Extension string: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_EFX
Confirmed Alc Extensions:
ALC_ENUMERATE_ALL_EXT: True
ALC_ENUMERATION_EXT: True
ALC_EXT_ASA: True
ALC_EXT_ASA_DISTORTION: True
ALC_EXT_ASA_ROGER_BEEP: True
ALC_EXT_BRS_GAME_LICENSE_REQUIRED: True
ALC_EXT_capture: True
ALC_EXT_DEDICATED: True
ALC_EXT_EFX: True
--- AL related errors ---
--- AL related analysis ---
Used Device: Generic Software
AL Renderer: Software
AL Vendor: Creative Labs Inc.
AL Version: 1.1
AL Speed of sound: 343,3
AL Distance Model: InverseDistanceClamped
AL Maximum simultanous Sources: 128
AL Extension string: EAX EAX2.0 EAX3.0 EAX4.0 EAX5.0 EAX3.0EMULATED EAX4.0EMULATED AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE
Confirmed AL Extensions:
AL_EXT_ALAW: False
AL_EXT_BFORMAT: False
AL_EXT_double: False
AL_EXT_EXPONENT_DISTANCE: True
AL_EXT_float32: False
AL_EXT_FOLDBACK: False
AL_EXT_IMA4: False
AL_EXT_LINEAR_DISTANCE: True
AL_EXT_MCFORMATS: False
AL_EXT_mp3: False
AL_EXT_MULAW: False
AL_EXT_OFFSET: True
AL_EXT_vorbis: False
AL_LOKI_quadriphonic: False
EAX-RAM: False
EAX: True
EAX1.0: False
EAX2.0: True
EAX3.0: False
EAX3.0EMULATED: True
EAX4.0: False
EAX4.0EMULATED: True
EAX5.0: False
--- Efx related errors ---
--- Efx related analysis ---
Efx Effects supported:
Autowah: False
Chorus: False
Compressor: False
Distortion: False
EaxReverb: True
Echo: False
Equalizer: False
Flanger: False
FrequencyShifter: False
PitchShifter: False
Reverb: True
RingModulator: False
VocalMorpher: False
Efx Filters supported:
Bandpass: False
Highpass: False
Lowpass: True
Efx max. Auxiliary Effect Slots: 1
--- X-RAM related errors ---
--- X-RAM related analysis ---
X-RAM extension is not available, skipping test.
--- AudioCapture related errors ---
--- AudioCapture related analysis ---
Using capture device: Microphone (Realtek High Defini
Buffer contents after capture was all 0's: False
Sample min/max in recorded data: -19 / 1

Thank you.. Vojta

the Fiddler's picture

#12

Status:open» closed

If this issue is reproducible on OpenTK 1.1 beta4, please file a bug report at https://github.com/opentk/opentk/issues