opengl visualization with grid and improved parameters