Piglet vertex list not displayed (AMD driver?)

My machine, apparently, will not draw lists of vertices in a piglet. The following code displays two identical shapes in different positions of the window, one of which uses a list of vertices, and the other uses a straight draw() . The one that is drawn directly displays perfectly, while the list of vertices is not displayed at all.

 import pyglet window = pyglet.window.Window() w, h = window.get_size() vl = pyglet.graphics.vertex_list( 4, ('v2i', (100,0, 100,h, 200,h, 200,0)), ('c3B', (255,255,255, 255,0,0, 0,255,0, 0,0,255)) ) @window.event def on_draw(): window.clear() vl.draw( pyglet.gl.GL_QUADS ) pyglet.graphics.draw( 4, pyglet.gl.GL_QUADS, ('v2i', (300,0, 300,h, 400,h, 400,0)), ('c3B', (255,255,255, 255,0,0, 0,255,0, 0,0,255)) ) pyglet.app.run() 

This is pyglet 1.1.2 on Ubuntu Lucid using an AMD Radeon HD 6450 card with the latest Catalyst 12.1 driver. I believe that this should be something to do with drivers, etc., because this code worked three years ago on several NVIDIA cards and almost directly from the pyglet documentation. Does anyone know what settings I need for futz, or if a specific version of the driver works correctly?

+1
source share
1 answer

It seems that I have the same problem with running Catalyst 12.2 on Windows 7 with Radeon HD 4870. Some earlier code name partially stopped working after I switched to this card from my old GeForce 8800 GTX, in particular, fps_counter and label picture still working, no batch drawing.

After I downgraded the video driver to Catalyst 11.5, the problems went away (both with your snippet above and with my earlier code).

Later versions of Catalyst may work. At first I tried this because it is referred to as working somewhat correctly: http://groups.google.com/group/pyglet-users/msg/ae317c37ce54c107

Update: Tested Catalyst 11.12 (latest version 11.x, video driver version 8.920.0.0000) and the problem returned.

Update 2:. A few more tests later, it seems that this problem started with Catalyst 11.9 (video driver 8.892.0.0000). Catalyst 11.8 (8.881.0.0000 video driver) worked as expected.

The v2f is to use v2f instead of v2i according to this comment on the tracker about problems with the piglet.

Last update: This issue seems to be fixed with Catalyst 12.4 (video driver 8.961.0.0).

+1
source

Source: https://habr.com/ru/post/1401273/


All Articles