Jump to content
  • Advertisement


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


Compute bounding sphere problem .x models

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!