rougier on master
"Open GL" -> "OpenGL" in docs. Merge pull request #196 from se… (compare)
view.camera.transform.matrix
[[ 1. 0. 0. 0. ]
[ 0. 1. 0. 0. ]
[ 0. -0. 1. 0. ]
[-474.40224 -308.97636 923.01759 1. ]]
view.camera._projection.matrix
[[ 0.00011 0. 0. 0. ]
[ 0. 0.0001 0. 0. ]
[ 0. 0. -0. 0. ]
[-0. -0. -0. 1. ]]
vertex = """
attribute vec3 position;
vec4 rotation;
vec4 translation;
void main()
{
rotation = vec4( <rotate(position)>, 1.0);
translation = <translate>;
gl_Position = <transform>;
}
"""
cube["rotate"] = Rotate(angle=30)
cube["translate"] = Translate("rotation", translate=(0.5,0,0))
cube["transform"] = PVMProjection("translation")
Hi,
I'm trying to use glumpy to display some figures using transparency, and I am wondering about one thing that I discovered using one of the examples :
I'm currently using the cube example (solid-cube.py), and I wanted to change the alpha of its color. However, doing so makes the faces sometimes look different according to the rotation angle, like on this image :
Would anyone have an idea about why this does happen ?
Hard to say without manipulating the actual program
Note you have some exemples of OIT (order independant transparency) implementation there: https://github.com/glumpy/glumpy/tree/master/examples/transparency