com.jme.scene.model.XMLparser.Converters
Class ObjToJme
java.lang.Object
com.jme.scene.model.XMLparser.Converters.FormatConverter
com.jme.scene.model.XMLparser.Converters.ObjToJme
- public class ObjToJme
- extends FormatConverter
Started Date: Jul 17, 2004
Converts .obj files into .jme binary format. In order for ObjToJme to find the .mtl library, you must specify the
"mtllib" tag to the baseURL where the mtl libraries are to be found. Somewhat similar to this.setProperty("mtllib",objFile);
- Author:
- Jack Lindamood
|
Method Summary |
void |
convert(java.io.InputStream format,
java.io.OutputStream jMEFormat)
Converts an .obj file to .jme format. |
static void |
main(java.lang.String[] args)
Converts an Obj file to jME format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjToJme
public ObjToJme()
main
public static void main(java.lang.String[] args)
- Converts an Obj file to jME format. The syntax is: "ObjToJme file.obj outfile.jme".
- Parameters:
args - The array of parameters
convert
public void convert(java.io.InputStream format,
java.io.OutputStream jMEFormat)
throws java.io.IOException
- Converts an .obj file to .jme format. If you wish to use a .mtl to load the obj's material information please specify
the base url where the .mtl is located with setProperty("mtllib",new URL(baseURL))
- Specified by:
convert in class FormatConverter
- Parameters:
format - The .obj file's stream.jMEFormat - The .jme file's stream.
- Throws:
java.io.IOException - If anything bad happens.