开发者

Creating .obj files in Java

开发者 https://www.devze.com 2023-01-24 12:16 出处:网络
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开发者_StackOverflow中文版 do with creating

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开发者_StackOverflow中文版 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();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号