Author Topic: Export Object3D into a .obj file  (Read 934 times)

Offline Pignic

  • byte
  • *
  • Posts: 10
    • View Profile
Export Object3D into a .obj file
« on: September 12, 2014, 05:50:37 pm »
Hi,

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

Thanks.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11980
    • View Profile
    • http://www.jpct.net
Re: Export Object3D into a .obj file
« Reply #1 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