How to transfer 3D to 2d ,I want to define the function like
Transfer3Dto2D(float x[],float y[],float z[],int num,int zprp,CPoint& ptr2d[])
in opengl the function gluProject can realize the function.
i want to konw the detial of the realization of the funcion of gluProject.
gluProject uses the model/world/projection matrix to project a 3d object to 2d coords. Simply use the matrices and transform the object.
What's the purpose of doing this (and not let the engine do it as it happens all the time during rendering).
hybrid wrote:gluProject uses the model/world/projection matrix to project a 3d object to 2d coords. Simply use the matrices and transform the object.
What's the purpose of doing this (and not let the engine do it as it happens all the time during rendering).