Archived

This topic is now archived and is closed to further replies.

Alload

Question about the frustum points

Recommended Posts

Are these points the correct coordinates of the frustum points? pParent->vPointsOfFrustum[0] = D3DXVECTOR3(-nNearZ * cosf(nFovX / 2) + x, -nNearZ * cosf(nFovY / 2) + y, nNearZ + z); pParent->vPointsOfFrustum[1] = D3DXVECTOR3(nNearZ * cosf(nFovX / 2) + x, -nNearZ * cosf(nFovY / 2) + y, nNearZ + z); pParent->vPointsOfFrustum[2] = D3DXVECTOR3(-nNearZ * cosf(nFovX / 2) + x, nNearZ * cosf(nFovY / 2) + y, nNearZ + z); pParent->vPointsOfFrustum[3] = D3DXVECTOR3(nNearZ * cosf(nFovX / 2) + x, nNearZ * cosf(nFovY / 2) + y, nNearZ + z); pParent->vPointsOfFrustum[4] = D3DXVECTOR3(-nFarZ * cosf(nFovX / 2) + x, -nFarZ * cosf(nFovY / 2) + y, nFarZ + z); pParent->vPointsOfFrustum[5] = D3DXVECTOR3(nFarZ * cosf(nFovX / 2) + x, -nFarZ * cosf(nFovY / 2) + y, nFarZ + z); pParent->vPointsOfFrustum[6] = D3DXVECTOR3(-nFarZ * cosf(nFovX / 2) + x, nFarZ * cosf(nFovY / 2) + y, nFarZ + z); pParent->vPointsOfFrustum[7] = D3DXVECTOR3(nFarZ * cosf(nFovX / 2) + x, nFarZ * cosf(nFovY / 2) + y, nFarZ + z); Edited by - Alload on March 23, 2002 5:21:59 PM

Share this post


Link to post
Share on other sites