www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Pignic on September 12, 2014, 05:50:37 pm

Title: Export Object3D into a .obj file
Post by: Pignic on September 12, 2014, 05:50:37 pm
Hi,

Is it possile to create a .obj file and write some Object3D in it ?

Thanks.
Title: Re: Export Object3D into a .obj file
Post by: EgonOlsen on September 12, 2014, 08:40:11 pm
Yes, it is possible, but it's not built-in. You would have to use a PolygonManager and at least basic understanding of the OBJ-format to extract the data and write it into a file. If you want to tackle this, here's a thread that contains some example code to write a basic ASC format file based on an Object3D's data. It might help as a starting point: http://www.jpct.net/forum2/index.php/topic,1216.msg10649.html#msg10649 (http://www.jpct.net/forum2/index.php/topic,1216.msg10649.html#msg10649)