vvoovv / blosm

Blosm addon for Blender. A few clicks import of Google 3D cities, OpenStreetMap, terrain. Global coverage. Source code is in the branch 'release'.
1.59k stars 187 forks source link

Google 3D Tile: Settings #362

Closed victorluv closed 1 year ago

victorluv commented 1 year ago

Hi I would like to check if there is any possibility for adding more setting to the Google 3D Tiles: Combine textures or material in blender, or change material assignment on import, textures size or create atlas etc.

I'm trying to pull the highest data quality from their source while the data is fine, it would generate crazy amount of material and textures, I'm looking for the way to manage that Could this be a feature request for the premium version?

vvoovv commented 1 year ago

Hi @victorluv

The first feature will be a button to replace the materials in the selected object with export-ready material or custom materials.

The other features will require more time to consider and implement.

victorluv commented 1 year ago

that sounds wonderful thank you very much :) @vvoovv looking forward to it, not try to rush but when you do you think you will put the replace the materials in the selected object with export-ready material or custom materials button?

vvoovv commented 1 year ago

I hope that feature should be ready the next week.

vvoovv commented 1 year ago

Materials of Google 3D Tiles can now be automatically replaced with export-ready or custom ones. Details are in the documentation.

Please install the latest version of the addon (currently 2.7.2).

victorluv commented 1 year ago

Mate Thank you so much, that's awesome I got a few more questions about the tool I'll shoot you an email :) image

Klammetostie commented 1 year ago

Hi Vvoovv, thank you very much for your recent updates!. I had some great results already this week trying various areas. Exporting the imported Google 3d tiles to fbx format works, however when I press "replace materials" in the menu, the tile grid becomes visible (with the join 3d tiles enabled), also in the rendering showing clearly black stripes where the tiles are not seamlessly merged. Google 3d tiles imported: G3D_mountains_lv districs_normal After 'replacing materials': G3D_mountains_lv districs_replaced mat Wireframe: G3D_mountains_lv districs_replaced wireframe

Any idea what can cause this and how to fix it? I've used the Google Model Importer plugin with the LilyTexturePacker plugin before, to merge the imported tiles into one mesh and then merge all seperate materials/textures into one .jpeg, and it worked flawlessly somehow, not showing any seam between the tiles. Any suggestions would be welcome.

vvoovv commented 1 year ago

Hi @Klammetostie

The addon relies on the built-in glTF importer to import 3D Tiles. The coordinates in a 3D Tile are in meters relative to the center of the Earth. That means millions of meters on each axis. The glTF addon imports them as-is. The Blosm addon applies geometrical transformations to bring the 3D Tiles to the center of Blender's system of reference.

I think those huge original coordinates is the reason for the gaps. They can't be fixed without changing the code of the glTF addon.

garylzimmer commented 1 year ago

Hi @Klammetostie

The addon relies on the built-in glTF importer to import 3D Tiles. The coordinates in a 3D Tile are in meters relative to the center of the Earth. That means millions of meters on each axis. The glTF addon imports them as-is. The Blosm addon applies geometrical transformations to bring the 3D Tiles to the center of Blender's system of reference.

I think those huge original coordinates is the reason for the gaps. They can't be fixed without changing the code of the glTF addon.

Would it help anything if you "stitched" the tiles together prior to the transformation process?

vvoovv commented 1 year ago

@garylzimmer

Stitching is performed before applying the geometrical transformations.

HIBOULEDUC commented 1 year ago

cette application est géniale, mais en effet la liaison entre les dalles serait un plus, je n'ai pour ma part pas réussi à lancer LilyTexturePacker, que j'utilise depuis un peu plus de deux ans. le seul problème avec LilyTexturePacker est qu il est impossible d'importer dans sketchup une seule texture.

vvoovv commented 10 months ago

@Klammetostie

The tile grid becomes visible (with the join 3d tiles enabled), also in the rendering showing clearly black stripes where the tiles are not seamlessly merged.

See also #430.

DiBop commented 6 months ago

Is there any way to make the meshes and UVs not so crazy? I am trying to replace a couple of things and trying to work with the UVs are driving me bananas!

Here is my issue: 2024-04-12_14-53-01

IT's crazy looking!

Any help is appreciated!

vvoovv commented 6 months ago

Hi @DiBop

I can't see from your screenshot how it's related to the Blosm addon.