Archived

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

Question about the frustum points

This topic is 5744 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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