I'm trying to produce a quaternion rotation from an entity's pan tilt roll parameters in a dll...this is what im trying so far... doesn't quite work as orientations are wrong. I need this for a D3DXMatrixTransformation matrix...

D3DXQuaternionRotationYawPitchRoll
(
&qrot,
D3DXToRadian(_FLOAT(ent->pan)),
D3DXToRadian(_FLOAT(ent->tilt)),
D3DXToRadian(_FLOAT(ent->roll))
);


Sphere Engine--the premier A6 graphics plugin.