Talk:OpenGL Programming/Scientific OpenGL Tutorial 04

= A few comments :) =


 * First exercice: chances are that the user will get a segfault probably due to exploding the stack (especially if not under a GNU/Linux desktop), before she get to the graphic card's memory limit. I get a segfault at N=2901, though a few values display strangely distorted graphs (N=2882, N=2883, N=2891...).
 * Possibly the distorted values are due to mod(N, 4) != 0 - cf. glPixelStore(GL_UNPACK_ALIGNMENT, 1). Beuc (discuss • contribs) 20:38, 25 September 2011 (UTC)

graph_coord.z = texture2D(mytexture, graph_coord.xy / 2.0 + 0.5).r; could be simplified as: graph_coord.z = texture2D(mytexture, graph_coord.xy).r; (and same for gl_FragColor)
 * In the vertex shader, maybe we could change the projection matrix so that


 * In  I find that   is confusing.