I’m X-Plane (flight simulator) add-on developer and I’m facing a problem that I would like to present to the community, so maybe someone has an answer.
I’m using blender (latest) with respective import/export script to X-Plane’s own .obj format file (proprietary format - different from wavefront).
Let me describe you a bit my workflow and then the problem, you might find somewhere what it cause it. Note, doing the same with sketchup… I get no problem!
What I’m trying to do is to edit the mesh (the ground) of an airport, to add some missing features, like basins, underpasses, etc. There is a utility that you take the part you want to edit. This utility converts this part to an X-Plane .obj file. Next step is to import it in blender. Here is a problem. Since the newer script have omitted the import function, I have to use the older combination of blender/script (blender 2.49b).
So, I’m importing it into blender 2.49b, saving it and open it with the latest blender to be edited. I’m exporting it from the latest blender back to X-Plane .obj file, and using the utility I’ve mentioned above, I’m injecting the edited part back to airport mesh (ground).
The problem: I’m getting small gaps around the edited part. That’s why the vertices on the perimeter of the edited part do not align correctly with the rest vertices of the mesh. Let me give you an example.
Here is what a vertex coordinates should look like (it’s actual geographical coordinates, longitude/altitude/latitude):
VT -8792170.6912 202.4374 -4197249.3706
Here is what is exported from blender:
VT -8794056.00000000 201.81651306 -4197771.50000000.
As you see the exported vertex has its coordinates rounded to the closest 0.0 or 0.5. This kind of rounding is happening to all vertices in the exported file.
Now, the questions: Is this a blender’s design limitation? I mean that’s the kind of accuracy blender is providing? Probably a Python limitation? The use of the older blender (2.49b - 32bit)? Or this can be happened due to export script? (Here is the export script in github: https://github.com/der-On/XPlane2Blender/blob/master/blender_25/io_xplane2blender/xplane_export.py)
Thanks you in advance for your answers!