书法字典:https://www.shufadict.com

D3DXComputeBoundingSphere

要注意这个函数

HRESULT D3DXComputeBoundingSphere(
  CONST D3DXVECTOR3 * pFirstPosition,
  DWORD NumVertices,
  DWORD dwStride,
  D3DXVECTOR3 * pCenter,
  FLOAT * pRadius
);

这个函数返回的pCenter是模型Local坐标系中的位置,如果用这个函数来做Intersection Test则需要将pCenter转换到世界坐标系中

posted on 2010-07-11 13:01  翰墨小生  阅读(315)  评论(0编辑  收藏  举报

导航

书法字典:https://www.shufadict.com