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

Compute bounding sphere problem .x models

This topic is 5435 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

Im getting my collision system off the ground - but im having some problems with computing the bounding spheres of microsoft .x format models. My function call look a little somthing like this.... LPDIRECT3DVERTEXBUFFER8 ppVB; instance->m_actor->m_pMesh->GetVertexBuffer(&ppVB); D3DXComputeBoundingSphere( ppVB, instance->m_actor->m_pMesh->GetNumVertices(), 0, ¢er, &this->m_coll_sphere_radius ) I think its that third param which is causing the problems im really not sure which flags to use. Got some lights in the scene - not much in the way of textures at the moment. The function does not return an error message but the value of this->m_coll_sphere_radius comes out as 1.#INFO Any idea what i need to do to get this blasted thing to work? Thanks in advance

Share this post

Link to post
Share on other sites