I don't understand why but see my rendered monsters ...
( replaced images by error )
a skeleton :
why do they render so ugly ??? =(
see my code, I tried to follow what's done in zoneconverter :
Code:
float off_x = shift_x;
float off_y = shift_y;
float off_z = shift_z;
RotateX( parent->rot_x, off_x, off_y, off_z );
RotateY( parent->rot_y, off_x, off_y, off_z );
RotateZ( parent->rot_z, off_x, off_y, off_z );
pos_x = parent->pos_x + off_x;
pos_y = parent->pos_y + off_y;
pos_z = parent->pos_z + off_z;
rot_x = parent->rot_x + rota_x;
rot_y = parent->rot_y + rota_y;
rot_z = parent->rot_z + rota_z;
D3DXMatrixTranslation(&matTranslation, pos_x, pos_z, pos_y );
D3DXMatrixRotationYawPitchRoll(&matRotation, -rot_z, rot_x, rot_y );
matWorld = matRotation * matTranslation;
do you see something wrong ? =(