Quantcast
Channel: Questions in topic: "unitywebplayer"
Viewing all articles
Browse latest Browse all 452

ProjectionMatrix & worldtoCameraMatrix calculation

$
0
0
Hey guys, got curious on projection and worldtoCamera matrices. I know unity provides good function for converting world position to viewport point. But at this point, I do want to calculate it from very bottom. Assume there are only two vectors provided which is the world position of Camera and GameObject. C(a,b,c,) : Camera's world position G(d,e,f,) : GameObject's world position from these two information, how can I calculate projection matrix and worldtoCamera matrix?

Viewing all articles
Browse latest Browse all 452

Trending Articles