OpenCTM importer for Ardor3D
This project uses Daniel Heinrich's JOpenCTM library to read OpenCTM files and use them as meshes in Ardor3D.
It is basically just a single wrapper class. The hard work was done by Daniel Heinrich who ported the OpenCTM reader from C to Java.
Why OpenCTM?
Well, it's damn fast! On my machine it takes ~2-3s to load an 8 MiB Wavefront (.obj) file and ~130ms to load the same mesh as OpenCTM file (3.3 MiB in RAW mode).
How to use
-
Include the following in your pom:
<dependency> <groupId>com.github.neothemachine</groupId> <artifactId>ardor3d-openctm</artifactId> <version>0.1.0</version> </dependency>
-
Load models as usual:
Mesh mesh = new OpenCtmImporter().load("..."); root.attachChild(mesh);