So why do somethings work great in normal graphics but run it in d3d9. They don't work? for instance in regular graphics the lander from the Endurance space system has a rotating chair. but in d3d9 the chair doesn't animate. Same code.
I can see the anim change but the anim_PILOTCHAIR isn't moving in d3d9
Code:
if (chairrot == 1) {
VECTOR3 weight_v;
GetWeightVector(weight_v);
double const current_g = MAGNETUDE(weight_v) / GetMass();
double const angle = ((current_g < 0.98) ? PI : atan2(weight_v.x, weight_v.y));
double const radians = (angle / PI);
{
double const anim = 1 - abs(((radians < 0) ? -0.5 : 0.5) + abs(radians / 2));
SetAnimation(anim_PILOTCHAIR, anim);
SetAnimation(anim_COPILOTCHAIR, anim);
sprintf(oapiDebugString(), "chairrot %d; anim %lf;", chairrot, anim);
}
}