I am working with Direct3X 9. In order to improve performance during runtime, I have been working to create progressive meshes using D3DXGeneratePMesh().
So far so good, the mesh was created and there were no errors throughout the application. HOWEVER, the model was not displaying on the screen. After a long debug process, I found the error to be in the D3DXFrameCalculateBoundingSphere function. If I remove the convertion into a progressive mesh, it works fine, but after converting, the function returns a 0 center and 0 radius but returns S_OK.
This to me assumes that it does not find any meshes whilst traversing the frame structure. Does anybody know why this would be?. Any meshes converted to PMesh has the meshData.Type set to D3DXMESHTYPE_PMESH so there should be no confusions.
If there is need to see source code, let me know which bits you need. Thanks,
Dipun