python-opengl
python-opengl copied to clipboard
An open access book on Python, OpenGL and Scientific Visualization, Nicolas P. Rougier, 2018
I didn't mean to be intrusive, but I was just wondering if you plan to continue working on the book to finish the rest of the chapters. I really enjoy...
It seems to draw nothing if points at [[10., 4.], [20., 4.], [15., 4.]] The code is in below. ``` uniform vec2 resolution; uniform float antialias, thickness, linelength; attribute vec4...
The second code snippet appears to be wrong. I believe it should be gl_FragColor = v_color.
In the second paragraph, might is spelled incorrectly and using is written twice.
In https://www.labri.fr/perso/nrougier/python-opengl/#bindings, the pyglet url return a 404, I found http://pyglet.org/ when searching.
Hi, In linestrip-3d.py, when I changed n=2048 to n=3, that is, two jointed segments spinning in 3D space, I get the following "faded", tapered ends.  Looking at...
Hi, When I copied the Star geometry from linestrip.py into linestrip-dotted.py, I get distorted dots like so:  Am I doing something wrong or is this a bug?...
Hi all, I think there is an error on the fragment shader program of section 3.2.6. It should be using the previously declared variable "v_color" not "color" 
In section 3.2.6, in the second code section the GLSL for the fragment shader: ``` varying vec4 v_color; void main() { gl_FragColor = color; } ``` I think it should...
Typo
known instead of know should be there. Just search for this(below in double courts) in your book and change 'know' to 'known' inside the brackets ''Of course, we also need...