oscarfh
12-13-2008, 04:43 AM
Hi,
Its me again with my newbie questions. I have to generate a projector matrix.
I've googled and found this article: http://developer.nvidia.com/attach/6549
And I think my solution is in the "Eye Linear Texgen" section.
Where I should calculate
To= |1/2 0 0 1/2| Pp Vp Ve-1
| 0 1/2 0 1/2|
|0 0 1/2 1/2|
|0 0 0 1/2|
Where Vp is the view matrix for the projector, Pp is the projection matrix for the projector and Ve-1 is the inverse of camera view matrix.
The information that I have is:
vector for eye,target,up;
floats for znear,zfar,fovy,aspect;
How can I build these 3 matrixes? I am (again) stuck. I've done some exercises by myself (google) after my last question, but in this one I am really stuck.
Thank you,
Oscar
Its me again with my newbie questions. I have to generate a projector matrix.
I've googled and found this article: http://developer.nvidia.com/attach/6549
And I think my solution is in the "Eye Linear Texgen" section.
Where I should calculate
To= |1/2 0 0 1/2| Pp Vp Ve-1
| 0 1/2 0 1/2|
|0 0 1/2 1/2|
|0 0 0 1/2|
Where Vp is the view matrix for the projector, Pp is the projection matrix for the projector and Ve-1 is the inverse of camera view matrix.
The information that I have is:
vector for eye,target,up;
floats for znear,zfar,fovy,aspect;
How can I build these 3 matrixes? I am (again) stuck. I've done some exercises by myself (google) after my last question, but in this one I am really stuck.
Thank you,
Oscar