100k Particle system using Python OpenGL

preview_player
Показать описание
Small demo of a particle system showcasing geometry shaders vectorized math in numpy. Sourcecode available here:
Рекомендации по теме
Комментарии
Автор

@taggrat I thought as much. Thanks for the reply!

Darfk
Автор

Very nice !

Work now under Linux (Mint) with PyOpenGL (3.0.2)

To run the script sprites.py under linux,
i've added few imports (help to manage geometry shaders):
from import *
from import *

- Comments the defines:
#These three defines exist in OpenGL.GL, but does not correspond to those used here
# GL_GEOMETRY_SHADER_EXT       = 0x8DD9
# GL_GEOMETRY_INPUT_TYPE_EXT   = 0x8DDB
# GL_GEOMETRY_OUTPUT_TYPE_EXT  = 0x8DDC
# GL_GEOMETRY_VERTICES_OUT_EXT = 0x8DDA

- Change the define of missing methods:
# 1:
glProgramParameteri = gl.glProgramParameteri
# ...

# 2:
glCreateShaderObject = gl.glCreateShader
# ...

And that's it ^^

yoyonel
Автор

I can't test it myself, but you can try to remove the local glProgramParameteri and glCreateShaderObject functions. If that still doesn't work you need to replace the ctypes.windll with a matching Linux call.

Dr.O
Автор

Witch power of you pc use? Can i know your hardware?

paololobello
visit shbcf.ru