"An unhandled exception of type 'Microsoft.DirectX.Direct3D.Direct3DXException' occurred in Microsoft.DirectX.Direct3DX.dll" with additional information "error application"
public void drawMesh(Object3D objct, Matrix mat) { object1.scale=new Vector3(scalex,scaley,scalez); object1.translation= new Vector3(transx, transy, transz); SetupLights(100, -50, -100); _device.RenderState.CullMode = Cull.Clockwise; if (objct.extddMatrls != null) { _device.Transform.World = Matrix.RotationZ(rotz) * Matrix.RotationY(roty) * Matrix.RotationX(rotx) * Matrix.Scaling(object1.scale) * Matrix.Translation(object1.translation) * mat; for (int count = 0; count < objct.extddMatrls.Length; count++) { _device.Material = objct.matrls[count]; _device.SetTexture(0, objct.textre[count]); objct.mesh.DrawSubset(count);// here i got the error } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)