Cleanup Map Tiles Fast Using Blender 3.6+

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 109

  • @Nicko16
    @Nicko16  5 หลายเดือนก่อน +14

    UPDATE - June 2024 - The script was broken but is now working with Blender 4.1

    • @mtscott44
      @mtscott44 4 หลายเดือนก่อน +1

      Epic. Thanks again!

    • @JasonBorejszo
      @JasonBorejszo หลายเดือนก่อน

      Script is super helpful, worked well one my 6.4 million vert import. Afterwards I did a merge by distance and brought it down to 800k. The only problem I am stuck on at the moment is the filling of holes. Every time I try use the fill holes from the "clean" option it freezes up my Blender and I have to end task. Can you recomend way forward for me? Thank you for your awesome contribution to the Blender commmunity!

    • @paulharris7660
      @paulharris7660 หลายเดือนก่อน

      hello is the repaired script on the same link? thank you

  • @bartgelin
    @bartgelin 6 วันที่ผ่านมา

    Thanks for this. It was the final step and has saved me a large headache :)

  • @APEX.86
    @APEX.86 10 หลายเดือนก่อน +3

    Awesome video and script! Any tips on how to further clean up the model for a nice 3D printable STL?

  • @tonymarch8611
    @tonymarch8611 หลายเดือนก่อน

    Very happy with the results, does it work on multiple collections, and treat each collection as a separate combined mesh? I guess I should try it.

  • @ang_oose
    @ang_oose 9 วันที่ผ่านมา

    thank you so much!

  • @fosseli
    @fosseli 28 วันที่ผ่านมา +2

    hmmm.. tried using this with Blosm import and the baked texture result is black? Any ideer?

    • @ang_oose
      @ang_oose 9 วันที่ผ่านมา

      in blosm select all objects then hit make materials export ready and then try the script again

  • @Viktorr87
    @Viktorr87 11 หลายเดือนก่อน +7

    This is exactly what I'm looking for in order to export the textured mesh to Rhino. Unfortunately, I get the following error after hitting the Play Button:
    Python: Traceback (most recent call last):
    File "/Users/viktor/Downloads/231205_Hafenstrasse_3D_Blender.blend/Text", line 102, in
    IndexError: bpy_prop_collection[index]: index 0 out of range, size 0
    Any hints for a solution?

    • @APEX.86
      @APEX.86 10 หลายเดือนก่อน +2

      After a successful run of the script on 3.6.7, I started over and tried again, but I keep getting a similar error:
      Step 2 | 369 / 0 | 100.0 % | Removed material.
      Error: Python: Traceback (most recent call last):
      File "\Text", line 159, in
      IndexError: bpy_prop_collection[index]: index 0 out of range, size 0

    • @u_lab
      @u_lab 7 หลายเดือนก่อน

      same here @@APEX.86

    • @judyliu9042
      @judyliu9042 5 หลายเดือนก่อน +3

      @@APEX.86 I had the same issue before, and it solved by selecting the collection on the layer (not in the view)

    • @RemiLeRigolo
      @RemiLeRigolo 2 หลายเดือนก่อน +1

      @@judyliu9042Thanks a million !

    • @yantingye1677
      @yantingye1677 หลายเดือนก่อน

      @@judyliu9042 love you

  • @theblackvenom1840
    @theblackvenom1840 หลายเดือนก่อน +1

    Hi. I'm using the blosm addon and the map comes in as a single mesh.
    I just want to do the material cleanup, will your script work?

  • @mtscott44
    @mtscott44 4 หลายเดือนก่อน

    Bloody amazing, thank you sir!

  • @Alopin
    @Alopin 11 หลายเดือนก่อน

    There's only one word describing you.... "Genius..."

  • @hectorgonzalez6287
    @hectorgonzalez6287 8 หลายเดือนก่อน +1

    Hello, Followed your Tut and found it excellent and very helpful. . I was wondering if you can explain a process for trimming/clipping a model brought in via the BLOSM Blender method. In other words to clip our unwanted areas so it more clearly defines only your desired space on a map model. You can IM me if you like. THX!

    • @rando8841
      @rando8841 7 หลายเดือนก่อน +1

      Looking for the same info. Any attempts to cut the model results in a huge mess.

  • @lvivjanen
    @lvivjanen 9 หลายเดือนก่อน +7

    The script did not work in Blender 4

  • @jamesriley5057
    @jamesriley5057 3 หลายเดือนก่อน

    Very well done video. Sub'd. I would also love to cleanup the mesh into quads - even if it took a whole weekend of processing.

    • @Nicko16
      @Nicko16  3 หลายเดือนก่อน +1

      Yeah clean quad topology from photogrammetry is a bit of a holy grail, maybe AI will crack it someday...

  • @aeonbreak4728
    @aeonbreak4728 ปีที่แล้ว +2

    can you make that into an addon button for the N panel? would be helpful instead of having to copy paste that every time :)

  • @yantingye1677
    @yantingye1677 หลายเดือนก่อน +1

    My map is 2.0x2.0km, which is quite large. If I only generate one 16K texture, the texture accuracy of the model will be relatively low. Is there a way to modify the number of baked textures?

    • @ang_oose
      @ang_oose 9 วันที่ผ่านมา

      split into different collections

    • @yantingye1677
      @yantingye1677 9 วันที่ผ่านมา

      @@ang_oose Thanks for your reply, but I am not familiar with Blender and don't quite understand how to operate your method.

  • @salyiohh
    @salyiohh 5 หลายเดือนก่อน +1

    What if you zoom in to approach the road does it distort the mesh

  • @xrayessay
    @xrayessay ปีที่แล้ว

    Wow this is pretty cool. Will definitely try this out!

  • @zucchinilaboratory
    @zucchinilaboratory ปีที่แล้ว +3

    Hello, may I please ask why is it that after running the script, my texture is all black?

    • @markrussell67
      @markrussell67 ปีที่แล้ว +10

      change this line in the script from 'DIFFUSE' to 'EMIT' (if you want to know why, look at the materials that came from google, they all use emission nodes)
      bpy.ops.object.bake(type='EMIT')
      this only works in Blender 3.6, running the script in Blender 4.0 has other problems

    • @philhighfield4741
      @philhighfield4741 9 หลายเดือนก่อน +1

      @@markrussell67 you beauty. works a charm

  • @Nicko16
    @Nicko16  ปีที่แล้ว

    See here for information about capturing Google Maps 3D data:
    th-cam.com/video/F_XsmoZJmG8/w-d-xo.html

    • @huseyinalan95
      @huseyinalan95 ปีที่แล้ว +6

      Hey, Nicko. I import google 3D model using the Blosm Addon then when i bake it with your code the whole model becomes black. Do you have any idea why this is happening?

    • @pantelispargas2693
      @pantelispargas2693 7 หลายเดือนก่อน +4

      This error occurs:
      Python: Traceback (most recent call last):
      File "\Text", line 167, in
      ValueError: bpy_struct: item.attr = val: sequence expected at dimension 1, not 'int'

    • @sbrusse
      @sbrusse 5 หลายเดือนก่อน

      @@pantelispargas2693 I have the same problem, any idea ?

    • @byronmardas9464
      @byronmardas9464 4 หลายเดือนก่อน

      @@huseyinalan95 same for me. Using Blender 4.1

  • @smyrkphace
    @smyrkphace ปีที่แล้ว +1

    should this work in blender 4? I just got error expecting 1

  • @Thomas-ep9sd
    @Thomas-ep9sd 11 หลายเดือนก่อน +3

    I am getting a python error when i run the script on line 102:
    # set an active object
    py.context.view_layer.objects.active = comb_coll.objects[0]
    Error: Python: Traceback (most recent call last):
    File "C:\Desktop\Working\Blender\Blosm\Downloaded 3D Tiles\testfile.blend\Text", line 102, in
    IndexError: bpy_prop_collection[index]: index 0 out of range, size 0

    • @MrJstrong74
      @MrJstrong74 10 หลายเดือนก่อน +1

      i had the same error when using blender 4.0. switched to 3.6 and it worked

    • @semshimla
      @semshimla 9 หลายเดือนก่อน +4

      this is because you need to select the collection in the viewlayer window

    • @Alopin
      @Alopin 7 หลายเดือนก่อน

      @@semshimla it works for me.... Thanks a lottttttttttttttttttt!

  • @pillantechvideo
    @pillantechvideo ปีที่แล้ว

    Wow resource, very impressive result, thanks for sharing us

  • @AxelHue-yq7nu
    @AxelHue-yq7nu 7 หลายเดือนก่อน

    Hi Nicko16, do you even work out a little hillside city near to frankfurt in order to 3d print ? ;) (b-day presend) - for sure against beer creates ? forgett coffee;)
    Or maybe you havev ~10 scrips which will do this :) Blender & Co are to powerfull for one usecase to learn......

  • @mattheweogrichardson1051
    @mattheweogrichardson1051 7 หลายเดือนก่อน +7

    Anyone else still getting black materials? I am using 3.6 and also modifed the script ot incluede bpy.ops.object.bake(type='EMIT'), but not having any luck/

    • @farcfoxguerrilha
      @farcfoxguerrilha 2 หลายเดือนก่อน +1

      Increase the extrusion value in bake, set it to high values, for me it worked with 18 because I have large objects in the scene, such as mountains.

  • @JaimeFriasJr
    @JaimeFriasJr 2 หลายเดือนก่อน

    Do you happen to know if you get the max resolution out of the tiles when you run the script?

  • @Jan-po2vw
    @Jan-po2vw 6 หลายเดือนก่อน

    hey! All the meshes join which is great, but but the texture doesn't save, they all get dropped and there is no image for me to save. do you have any advice? thanks :)

  • @콘트라베이스치는황보
    @콘트라베이스치는황보 8 หลายเดือนก่อน +1

    102 error T.T File "/text", line 102, in

  • @fosseli
    @fosseli 5 หลายเดือนก่อน

    Brilliant! 😘

  • @thedarkking4814
    @thedarkking4814 5 หลายเดือนก่อน

    it has an error on the 102 line bpy.context.view_layer.objects.active = comb_coll.objects[0] this one chat gpt cant fix it

  • @jonsofresh101
    @jonsofresh101 ปีที่แล้ว

    huge thanks mate!!!!

  • @sbrusse
    @sbrusse 5 หลายเดือนก่อน +1

    Python: Traceback (most recent call last):
    File "Y:\GMap\Google 3D Tiles_001.blend\Text", line 167, in
    ValueError: bpy_struct: item.attr = val: sequence expected at dimension 1, not 'int'
    Blender 4.1, any ideas ?

  • @dadlilikoi112
    @dadlilikoi112 7 หลายเดือนก่อน

    Hello @Nicko16, can you make a tutorial how to convert ply file to obj file using blender. I am having a hard time converting to obj files. I can convert but there is no color included. Thank you

  • @ile5607
    @ile5607 7 หลายเดือนก่อน

    How can i adapt this to batch all objects in the scene without joining them?

  • @yundaz
    @yundaz 6 หลายเดือนก่อน

    Error: Python: Traceback (most recent call last):
    ValueError: bpy_struct: item.attr = val: sequence expected at dimension 1, not 'int'
    Keep getting this error in Blender with blender 4 unfortunately

  • @pitervoznjak6197
    @pitervoznjak6197 ปีที่แล้ว +2

    Hi, after cleanup and unwrapping script is finished, combined baked texture appears black , how to fix it?

    • @yanngylf1049
      @yanngylf1049 ปีที่แล้ว +2

      same here :(

    • @brendonv101
      @brendonv101 ปีที่แล้ว +1

      same here too. Any fix?

    • @pitervoznjak6197
      @pitervoznjak6197 ปีที่แล้ว +1

      @@brendonv101 yes, the fix is to change Bake type to Combined

    • @brendonv101
      @brendonv101 ปีที่แล้ว +1

      @@pitervoznjak6197tried bake type as combined and still black. I am using osm to port the google tiles api in, i'll try the addon that is shown in this video. Although pulls data from the same api so unsure why it would change.

    • @ScottValentine
      @ScottValentine ปีที่แล้ว

      I had the same issue@@brendonv101
      Did you manage to resolve it?

  • @webguru1638
    @webguru1638 ปีที่แล้ว +2

    For me also everything came black, please help us to fix that

    • @markrussell67
      @markrussell67 ปีที่แล้ว

      change this line in the script from 'DIFFUSE' to 'EMIT' (if you want to know why, look at the materials that came from google, they all use emission nodes)
      bpy.ops.object.bake(type='EMIT')
      this only works in Blender 3.6, running the script in Blender 4.0 has other problems

    • @joehawkins3078
      @joehawkins3078 5 หลายเดือนก่อน

      @@markrussell67 -> Update: followed this advice, still had black textures. Upon further inspection, I realized I had unpacked and exported materials from the test model I used due to problems I was having importing into TwinMotion. Tried a version before unpacking/exporting step and I can confirm it worked.

  • @mayaalias
    @mayaalias ปีที่แล้ว

    life saver!!!

  • @mtscott44
    @mtscott44 4 หลายเดือนก่อน

    I've tried twice now, but I get a grey texture at the end...and it's not called "collection_texture". Any clues?

    • @Nicko16
      @Nicko16  4 หลายเดือนก่อน

      I looked at the code and your texture should have the same name as the collection that was active when you started the script, so confusingly, it may not have the same name as in the tutorial.

    • @hoganlee
      @hoganlee 3 หลายเดือนก่อน +2

      Same. I got black tiles. Not colored as expected. I have tried Blender 3.6 and 4.1 got the same result.

    • @yantingye1677
      @yantingye1677 หลายเดือนก่อน

      @@hoganlee me too,blender 4.1

  • @daz7960
    @daz7960 ปีที่แล้ว

    Крутое видео , спасибо )

  • @ViensVite
    @ViensVite ปีที่แล้ว

    For me, while importing a kinda huge model the script worked until the step 4 where it just stays forever and nothing happens.
    Any idea why?

    • @joshuadebruin
      @joshuadebruin ปีที่แล้ว

      have you upgraded to blender 3.6? mine also got stuck at step for while working on blender 3.4

    • @ViensVite
      @ViensVite ปีที่แล้ว +1

      @@joshuadebruin you were right, now i got a black result after the script process. any idea?

  • @DavidWozniak-g7d
    @DavidWozniak-g7d 3 หลายเดือนก่อน

    I get Error: Python: Traceback (most recent call last):
    File “\Text.01”, line 159, in
    IndexError: bpy_prop_collection[index]: index 0 out of range, size 0

    • @raoufdjema
      @raoufdjema 2 หลายเดือนก่อน

      sae here any help ?

    • @raoufdjema
      @raoufdjema 2 หลายเดือนก่อน

      solved, you just need to NOT select the tiles and run the script regardless

    • @tonymarch8611
      @tonymarch8611 หลายเดือนก่อน

      Just click on the Collection, and do not right click 'select objects'

  • @steiner42
    @steiner42 11 หลายเดือนก่อน +1

    has anyone tested this with blosm?

  • @kanesilks6102
    @kanesilks6102 ปีที่แล้ว +1

    Turns the image file Black.... so disappointing .... Has anybody got around this?

    • @samyseffadj5203
      @samyseffadj5203 11 หลายเดือนก่อน

      @markrussell67 found the solution ! just " change this line in the script from 'DIFFUSE' to 'EMIT' (if you want to know why, look at the materials that came from google, they all use emission nodes)
      bpy.ops.object.bake(type='EMIT')" .
      it worked for me !

  • @eniskirim8982
    @eniskirim8982 ปีที่แล้ว

    is there any way to contact you ? maybe discord or smthing similar ?
    greetings

  • @nerosetsfire
    @nerosetsfire 11 หลายเดือนก่อน +3

    doesn't work for me, I get this error: Step 2 | 283 / 1 | 95.93 % | Removed material.
    Step 2 | 284 / 1 | 96.27 % | Removed material.
    Step 2 | 285 / 1 | 96.61 % | Removed material.
    Step 2 | 286 / 1 | 96.95 % | Removed material.
    Step 2 | 287 / 1 | 97.29 % | Removed material.
    Step 2 | 288 / 1 | 97.63 % | Removed material.
    Step 2 | 289 / 1 | 97.97 % | Removed material.
    Step 2 | 290 / 1 | 98.31 % | Removed material.
    Step 2 | 291 / 1 | 98.64 % | Removed material.
    Step 2 | 292 / 1 | 98.98 % | Removed material.
    Step 2 | 293 / 1 | 99.32 % | Removed material.
    Step 2 | 294 / 1 | 99.66 % | Removed material.
    Step 2 | 295 / 1 | 100.0 % | Removed material.
    Step 3 | Creating new material.
    Error: Python: Traceback (most recent call last):
    File "C:\Users\info\Desktop\Blender test\000scripted clean up.blend\Text", line 167, in
    ValueError: bpy_struct: item.attr = val: sequence expected at dimension 1, not 'int'

    • @nicola4815
      @nicola4815 10 หลายเดือนก่อน +4

      hey, sorry, have you managed to find a solution? i'm having the very same issue

    • @philhighfield4741
      @philhighfield4741 9 หลายเดือนก่อน

      I have this same error.. but I am trying with blosm and blender 4.0. Thinking the blender version might be an issue

    • @nerosetsfire
      @nerosetsfire 9 หลายเดือนก่อน

      @@philhighfield4741 try downloading the newest version of Blosm they fixed it as best as they could.

    • @SwedishObjects
      @SwedishObjects 9 หลายเดือนก่อน +2

      Had the same error when I tried using geometry created in Blender 4.0 in a Blender 3.6.9 file. Then tried creating a new blend file in Blender 3.6.9 and use Blosm there, import new google maps tiles in this older blender version and run the script, then it worked. But got black textures and had to change the DIFFUSE to EMIT like a comment below suggests. Then it worked perfectly.

    • @nn84zz
      @nn84zz 8 หลายเดือนก่อน

      I am having the exact same issue on Blender 4.0. Please update the script.

  • @yantingye1677
    @yantingye1677 หลายเดือนก่อน

    my blender 4.1 not work:
    TBBmalloc: skip allocation functions replacement in ucrtbase.dll: unknown prologue for function _msize
    Read prefs: "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.1\config\userpref.blend"
    Read blend: "C:\Users\Administrator\Desktop\mytest05.blend"
    Cleanup started at 2024-10-23 19:30:57.502699
    Error: Python: Traceback (most recent call last):
    File "C:\Users\Administrator\Desktop\mytest05.blend\Text", line 102, in
    IndexError: bpy_prop_collection[index]: index 0 out of range, size 0

    • @yantingye1677
      @yantingye1677 หลายเดือนก่อน

      it solved by selecting the collection on the layer (not in the view)😋