Click or drag to resize
Reader3dsGetFrame Method
Gets the Model3DGroup for frameNo
Overload List
  NameDescription
Public methodCode exampleGetFrame(Double)
Gets the Model3DGroup for frameNo. The frameNo can also be a not integer value to display model between frames - for example frameNo = 1.5 will get the model as it it in the middle between 2st and 3nd frame.
Public methodCode exampleGetFrame(Int32)
Gets the Model3DGroup for frame. No The frameNo can also be a not integer value to display model between frames - for example frameNo = 1.5 will get the model as it it in the middle between 2st and 3nd frame.
Public methodCode exampleGetFrame(Double, Viewport3D)
Gets the Model3DGroup for frameNo. No The frameNo can also be a not integer value to display model between frames - for example frameNo = 1.5 will get the model as it it in the middle between 2st and 3nd frame.
Public methodCode exampleGetFrame(Int32, Viewport3D)
Gets the Model3DGroup for frameNo
Public methodCode exampleGetFrame(Double, Viewport3D, Int32)
Gets the Model3DGroup for frameNo. No The frameNo can also be a not integer value to display model between frames - for example frameNo = 1.5 will get the model as it it in the middle between 2st and 3nd frame.
Public methodCode exampleGetFrame(Int32, Viewport3D, Int32)
Gets the Model3DGroup for frameNo. No The frameNo can also be a not integer value to display model between frames - for example frameNo = 1.5 will get the model as it it in the middle between 2st and 3nd frame.
Top
Remarks
The Reader3ds can also read the animation data from a 3ds file. It is possible to get the Model3DGroup object for each frame.
Examples
First you have to create a new instance of Reader3ds, read the file and than you can use the GetFrame method:
Reader3ds newReader3ds;
newReader3ds = new Reader3ds();
newReader3ds.ReadFile("c:\\models\\simple_animation.3ds");

for (int frameNo=0; frameNo<newReader3ds.FramesCount; frameNo++)
{
    newReader3ds.GetFrame(frameNo, Viewport1);
    System.Threading.Thread.Sleep(250); // 4 frames per second
}
See Also