[Mesa-users] VAO/VBO problem (possible Mesa bug?)

Asher Gordon AsDaGo at posteo.net
Wed Apr 22 20:14:40 UTC 2020


Hello,

I'm a beginner to OpenGL. I have been working on a game called
Berusky 2[1] (not written by me), and there is a problem I have been
trying to fix. The problem is, when some walls are looked at from a
certain camera angle, they appear to move. See the following screenshot
for an illustration of what I mean:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot.png
Type: image/png
Size: 58192 bytes
Desc: Screenshot of moving wall
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20200422/145c743a/attachment-0001.png>
-------------- next part --------------
The above is from level 200 (run 'berusky2 level200').

The problem persists even when I use the latest Mesa from git (currently
commit 9daeb50).

glDrawElements() is called in ber_kresli_mesh_array() in
src/komat/Berusky3d_render.cpp. The vertices are in
'p_mesh->p_vertex_pos'. However, I have found that the vertices are
always the same, even when the camera is positioned so that the wall
moves as described above. Could this possibly be a bug in Mesa?

The source code for Berusky 2 is available at
https://github.com/stransky/berusky2.

Thanks in advance,
Asher

P.S. Originally, I attached an animated GIF, but that caused my message
to be rejected because it was too large. Hopefully, you can still get
the idea from the screenshot.


Footnotes: 
[1]  https://anakreon.cz/?q=node/2

-- 
Steal this tagline.  I did.
                               --------
I prefer to send and receive mail encrypted. Please send me your
public key, and if you do not have my public key, please let me
know. Thanks.

GPG fingerprint: 38F3 975C D173 4037 B397  8095 D4C9 C4FC 5460 8E68
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20200422/145c743a/attachment-0001.sig>


More information about the mesa-users mailing list