Help! If i have an GL_QUAD...

Hello!

Im new on 3D,

if i have an example, maybe an GL_QUAD on 3D viewport on monitor screen,

how do i get to know, before/after the screen update what the QL_QUADs coordinates on screen are ??

where i can read these,

HELP !!

//----

thanks…

  1. Read the modelview matrix and the projection matrix from the GPU, where you have your glBegin.
  2. Feed the coordinates through the projection matrix and the modelview matrix
  3. Multiply resulting X,Y by viewport dimensions

A howto for each step is available on Google! :slight_smile: