Hi, i know, i'm at the beginning of the learn progress on basic4gl, but, there's something i want to know. Later, i want to write an obj exporter, just like the integrated exporter in Blender. I looked at the code of the obj file - there are the vertex coordinates and so on. But is it hard to write something like that? Thanks in advance
Last Edit: Nov 17, 2017 7:05:42 GMT -5 by argandos
Over the years many people have written different .obj loaders and exporters in Basic4GL. The main problem with them however is that if the model contains 1,000s of polygons then Basic4GL can be a little slow.
There's a thread here which contains information on how you'd go about dealing with the .obj format. Code for an .obj loader can be found in this thread too.
Another loader can be found here. Code for an .obj viewer can be found here.