Original Post
Hello to everyone! I have problem with mesh bounding box. The problem is when I translate the object in the scene bounding box has an offset so when I render the mesh and bounding box there is offset between them. If I don't translate the mesh and pos(0.0f, 0.0f, 0.0f) then bounding box is fine. When I exported the mesh from 3DMax the world and offset coordinates is 0.0 I just couldn't get it what is wrong whit it... The steps what I'm doing when I loding: 1) D3DXLoadMeshFromX 2) D3DXComputeNormals if necessary 3) Optimize mesh 4) D3DXComputeBoundingBox D3DXCreateBox Do I need to to any transformations or what? Thanks