문제

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.

도움이 되었습니까?

해결책

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();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top