Advertisement

How to get the planes of the View FRUSTRUM

Started by August 06, 2002 04:36 PM
0 comments, last by aminouch 22 years, 6 months ago
Hi, I''m programming with dx8, and I would like to know how to get the planes of the view frustrum to cull my octree nodes. I''ve seen the tut on gametutorials.com for accessing the view frustrum but it was an OPENGL sample and I can''t do the same thing with dx8. plz help, amine http://aminouch.tripod.com
mine from morocco
You can acces projection and viewing matrix with GetTransform()
example.

  D3DXMATRIX Matrix, matProj, matView;//get projection and viewg_pD3DDevice->GetTransform(D3DTS_PROJECTION, &matProj);g_pD3DDevice->GetTransform(D3DTS_VIEW, &matView);//then multiply themD3DXMatrixMultiply(&Matrix, &matView, &matProj);  


You can then form the six planes of frusrum from multiplied matrix, but sorry for not remembering how to calculate it. But maybe this helped bit.

This topic is closed to new replies.

Advertisement