PDA

View Full Version : about projection matrix calculation



suhu
12-22-2002, 05:25 PM
Hi~

I want to implement 3-channels display(left,center,right,the total size of screens is 3*1024*768).These 3-channels will be rendered by 3 PCs.The viewpoints of 3 channels will be at the same position and three projection planes need to be coplanar. The total horizontal view angle is 145 degree and projection is perspectively.

I think projection matrices of left channel and right channel need to be calculate by myself. But I don't know to calculate.

Can you give me some ideas?

Thank you very much!

Sorry for my poor English.


[This message has been edited by suhu (edited 12-23-2002).]

Tom Nuydens
12-22-2002, 11:27 PM
You don't need to do it yourself. Just adjust the "left" and "right" arguments of glFrustum(), e.g.



glFrustum(-3, -1, ...);
glFrustm(-1, 1, ...);
glFrustum(1, 3, ...);

-- Tom

suhu
12-23-2002, 02:21 PM
Thanx!

Merry Christmas!