Try with D3DXComputeNormals, like code below:

Code:
function on_n_event()
{ 
	while (key_n){wait (1);}
	
	LPD3DXMESH Mesh = ent_getmesh(ent, 0, 0);

	D3DXComputeNormals(Mesh, 0);

	ent_setmesh(ent, Mesh, 0, 0);
}




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P