opengl to read xyz data