• Advertisement


This topic is now archived and is closed to further replies.

[KeyFrameInterpolator] in Directx 9.0

This topic is 5325 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Next is just simple KeyFrameInterpolator initialization. It can't have any mistake on them. But, compiler throw error like that. [System.InvalidOperationException] Handle is not pinned. Does anyone help me? ================================================================ KeyQuaternion[] rotationKeys =new KeyQuaternion[2]; rotationKeys[0].Time = 0; rotationKeys[0].Value = new Quaternion(0,1,0,0); rotationKeys[1].Time = 1; rotationKeys[1].Value = new Quaternion(0,1,0,0); KeyVector3[] translationKeys =new KeyVector3[2]; translationKeys[0].Time = 0; translationKeys[0].Value = new Vector3(0,0,0); translationKeys[1].Time = 1; translationKeys[1].Value = new Vector3(0,0,0); KeyVector3[] scaleKeys =new KeyVector3[2]; scaleKeys[0].Time = 0; scaleKeys[0].Value = new Vector3(1,1,1); scaleKeys[1].Time = 1; scaleKeys[1].Value = new Vector3(1,1,1); double scaleInputTimeBy = 1; KeyFrameInterpolator[] myKeyFrameInterpolators = new KeyFrameInterpolator[1]; myKeyFrameInterpolators[0] = new KeyFrameInterpolator("Cube",scaleKeys,rotationKeys,translationKeys,scaleInputTimeBy); [edited by - kiplring on July 27, 2003 3:43:20 AM]

Share this post

Link to post
Share on other sites

  • Advertisement