Original Post
Hello, I'm using OpenGL to visualize 2D arrays of data... (scientific app) A texture mapped onto a quad is quite natural for that (the actual data is mapped into the luminance channel of a 2D texture...) This part went ok, but there is also the need to see the same data in the form of regular 2D curves... if my data is 500x500 array of floats, first option is a 500x500 texture, second is 500 lines composed of 500 points... The actual array is much bigger, and the transfer of data to the GPU is a critical point... (but also the size of the VRAM) The data is there on the form of a texture, would be a shame to send it again (and costly), but I can't figure out how to reuse these data to draw lines for example on top of my quads... It would be ever nice if I could draw the lines using a Pixel Shader...(still using the texture of data), but it's even more unclear how to proceed...if somebody has a clue, or good reference, that would be appreciated! Thanks for any answer :)