|
mri.v3ds v0.1 |
|||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
3D Studio 3ds-file loader package.
Scene3ds
is the toplevel class in this package. It has constructors that takes an
input 3ds-file as parameter. The Scene3ds class parses the data chunks in the
input file and builds a memory representation of the various parameters using the
helper classes;
Vertex3ds
,
Face3ds
,
Mesh3ds
,
Camera3ds
, etc. After the file has
been parsed and the Scene3ds object created successfully, the object can be passed
to a 3D engine for further processing and visualization.
import mri.v3ds.*;
import java.io.*;
...
Scene3ds scene;
try {
scene = new Scene3ds(new File("animation.3ds"));
}
catch(Exception3ds e) {
// Something went wrong!
}
The Scene3ds
class has a set of constructors that takes a TextDecode3ds
object as parameter. By using
these constructors, text decode of the 3ds-file can be
extracted. The parser will generate text as each data chunk is parsed. The text is
stored in the TextDecode3ds object. This feature is useful during 3D engine debugging.
|
mri.v3ds v0.1 |
|||||||
PREV NEXT | FRAMES NO FRAMES |