JeremyBYU / bpyproj

A blender add-on for Map Projections
GNU General Public License v3.0
5 stars 1 forks source link

Projection is wrong #19

Open MartinGebske opened 2 years ago

MartinGebske commented 2 years ago

Hey guys. It's me. Again :) I tested the Projection Addon and I ran into an location issue. Let me break it down for you:

We're using MathWork's RoadRunner to create certain Roads. This is our reference file. (Plus we're using QGis... but currently not for this Blender Project..maybe later on) RoadRunner provides us with a custom projection String. From RR we're exporting an fbx file and import it to Blender. The idea is to use Blender OSM / Bpyproj (for the correct projection) to create the environment.

Now with both addons up and running I imported our Road fbx and imported the OSM data from the server and created a file. Both approaches gave me not the correct map. We checked the landmarks in QGis and the Blender coordinates weren't correct.

For example we have a turnaround on our map. The "green dot" of the blender file lies where the red mark is: d0104268-401e-44ec-a18b-ce5772717357

The rest of the map looks like this: projection

I hope that I'm missing something obvious here -.- When I rotate the map and scale it down to 0.988 it fits so far. But since we're looking for an automation, this is sadly not an option.

vvoovv commented 2 years ago

Hi @MartinGebske

You should import you FBX before OSM. You will need to know the coordinates of the origin of Blender's system of reference. Set them as custom attributes lat and lon of the active Blender's scene. Then import OSM with the related projection string paste in the bpyproj panel.

image