Пример #1
0
 public void convert(InputStream format, OutputStream jMEFormat) throws IOException {
   file = new BinaryFileReader(format);
   readHeader();
   readFrames();
   readTags();
   readSurfaces();
   BinaryExporter.getInstance().save(constructMesh(), jMEFormat);
 }
Пример #2
0
 /**
  * Converts a .3ds file (represented by the InputStream) to jME format.
  *
  * @param max The .3ds file as an InputStream
  * @param bin The place to put the jME format
  * @throws IOException If read/write goes wrong.
  */
 public void convert(InputStream max, OutputStream bin) throws IOException {
   myIn = new LittleEndien(max);
   chunkedTDS = new TDSFile(myIn, this);
   Node toReturn = chunkedTDS.buildScene();
   chunkedTDS = null;
   myIn = null;
   BinaryExporter.getInstance().save(toReturn, bin);
 }