1

Is there is an easy way to draw a line from a 3D point, in this case, it's 0, 0, 0, to the center of the screen?

genpfault
  • 51,148
  • 11
  • 85
  • 139

1 Answers1

2

You could use gluUnProject to figure out the 3D coordinates of the screen center (at a given depth), then draw a line between two 3D points.

Stefan Haustein
  • 18,427
  • 3
  • 36
  • 51