Ok can you give me a little code snippet how i compute the distance to the camera?
Do i have to use the worldMatrix for each object?
D3DXVECTOR vObjPos = (D3DXVECTOR) *m_World.41; D3DXVECTOR3 vDistance = vObjPos - camera.vEye; float fDistance = length(vObjPos);
Isn´t this to inefficient for 100 leaves on a tree or 100 grass tufts?
EDIT: How can i do that with the LPD3DXMESH class?