Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Java中创建.obj文件_Java_Jogl_Wavefront_.obj - Fatal编程技术网

在Java中创建.obj文件

在Java中创建.obj文件,java,jogl,wavefront,.obj,Java,Jogl,Wavefront,.obj,是否存在用于创建.obj文件的Java库。有许多用于加载.obj文件以与JOGL等API一起使用的方法,但我找不到与创建.obj文件有关的任何方法。可能会有所帮助,它指的是一个类,使用示例如下: // Open the OBJ file "MyObject.obj" OBJWriter writer = new OBJWriter("MyObject.obj"); // Write one node or more if you want writer.writeNode(java3DN

是否存在用于创建.obj文件的Java库。有许多用于加载.obj文件以与JOGL等API一起使用的方法,但我找不到与创建.obj文件有关的任何方法。

可能会有所帮助,它指的是一个类,使用示例如下:

// 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();

什么是.obj文件?它是特殊应用程序的文件格式吗?如果是,请适当标记问题。obj文件是通用三维对象。