PDA

Click to See Complete Forum and Search --> : External Error


RohanWest
Jul 27th, 2000, 05:06 PM
Hi there i have a problem with my code, i do not know what, but is causes an external error with both of the code sections listed below....

D3DUtil_SetViewMatrix &



D3DVECTOR view_loc;
view_loc.y = elevation;
view_loc.x = sinf(rotAngle) * ORBIT;
view_loc.z = cosf(rotAngle) * ORBIT;

D3DMATRIX view_matrix;

D3DUtil_SetViewMatrix(view_matrix,view_loc,D3DVECTOR(0.0f,0.0f,0.0f),
D3DVECTOR(0.0f,1.0f,0.0f));
lpDevice -> SetTransform(D3DTRANSFORMSTATE_VIEW, &view_matrix);

D3DMATRIX proj_m;

/*********************************************************/

D3DUtil_SetProjectionMatrix(proj_m,0.785f,1.333f,10.0f,2000.0f);
lpDevice -> SetTransform(D3DTRANSFORMSTATE_PROJECTION,&proj_m);


If you have any ideas how to resolve the errors could you let me know... Rohan

Thanks