Skip to main content

All Questions

0 votes
0 answers
44 views

Python and OpenGL: Texture Not Filling Polygon Correctly in Koch Snowflake Rendering [duplicate]

Question: I’m working on rendering a Koch snowflake with a sinus-plasma texture using PYTHON and OpenGL. The initial polygon is star-shaped, evolving into the Koch snowflake. My goal is to fill this ...
User's user avatar
  • 19
1 vote
1 answer
94 views

PyOpenGL code with vbos for rendering tile-based game creating blank screen

I have been, with pygame and pyopengl (oh and obviously Python), been trying to make a little tile-based 2D game, but I'm having trouble with the rendering using VBOs and glMultiDrawArray(). The ...
redpenguiney2's user avatar
2 votes
1 answer
2k views

Tile rendering with opengl

Let's start by considering this simple snippet: import ctypes import textwrap import time import glfw import numpy as np from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * ...
BPL's user avatar
  • 9,883
1 vote
2 answers
292 views

PyOpenGL - update triangles array when some of the scene elements need to disappear

I have a scene that I need to render quickly. So I successfully generate the vertices of the triangles as numpy, upload to GPU and render it very fast. So far so good. The problem starts when some of ...
user972014's user avatar
  • 3,866