function of Transfer3Dto2D

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
superpop
Posts: 21
Joined: Mon May 14, 2007 1:17 pm

function of Transfer3Dto2D

Post by superpop »

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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

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).
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Why do people say "i want to realise (something)". It kinda sounds weird..

Anyway I think you can times its transformation matrix by the inverted world matrix?
superpop
Posts: 21
Joined: Mon May 14, 2007 1:17 pm

Post by superpop »

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).
Thank you.
superpop
Posts: 21
Joined: Mon May 14, 2007 1:17 pm

Post by superpop »

BlindSide wrote:Why do people say "i want to realise (something)". It kinda sounds weird..

Anyway I think you can times its transformation matrix by the inverted world matrix?
BS u. :D
Post Reply