Archived

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

steg

D3DXComputeBoundingSphere

Recommended Posts

Hi all, Who uses this for computing a bounding sphere ? And do you store the D3DXVECTOR3 you get back within your ''objects'' structure (objects being entities such as polygons in your game). Kind Regards, sTeVe

Share this post


Link to post
Share on other sites
1: I do
2: Yes - if you don''t your sphere may be weighted in a given direction. ie if (1,1,1) is returned and you ignore it then your sphere will be out by (-1,-1,-1) (if i''ve remembered correctly).
Hence it would be inaccurate.

Neil

WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?!

Share this post


Link to post
Share on other sites