4

is there a Java library in existence for creating .obj files. There are many for loading .obj files for use with APIs like JOGL but I can't find anything to do with creating an .obj file.

Josh Lee
  • 171,072
  • 38
  • 269
  • 275
Affian
  • 3,380
  • 5
  • 22
  • 26
  • 1
    What is an .obj file? Is it a file format for a special application? If so, please tag the question appropriately please. – Daniel Nov 12 '10 at 05:51
  • 1
    obj files are generic 3D objects. http://en.wikipedia.org/wiki/Obj – Affian Nov 12 '10 at 05:54

1 Answers1

4

Perhaps this could help, it's referring to a ObjWriter class, with usage example:

// Open the OBJ file "MyObject.obj" 
OBJWriter writer = new OBJWriter("MyObject.obj"); 

// Write one node or more if you want 
writer.writeNode(java3DNode1); 
writer.writeNode(java3DNode2); 
// ... 

// Close file. This will create the MTL file and texture files in same directory 
writer.close();