• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Pic2Shape - Converting Images to 2D objects

Scheduled Pinned Locked Moved Plugins
20 Posts 6 Posters 8.7k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    fredo6
    last edited by 25 Apr 2021, 13:50

    Pic2Shape is a future extension dealing with the conversion of images to geometry.

    It will be available for SU2018 and above.

    Until it is published, I will use this thread to give some news.

    Fredo

    1 Reply Last reply Reply Quote 0
    • F Offline
      fredo6
      last edited by 25 Apr 2021, 13:54

      @Dekorte

      @dekorte said:

      Hello LibFredo6,

      I recieved your message showing me your Pic2Shape plugin.
      I tried it with a couple of images and it works great.
      However, I would like to use this for cutting out the contours of 2D trees, so i can cast a more realistic shadow.
      And here I ran into some troubles.
      For complex trees (with a lot of tiny holes between the branches) the plugin says he can't generate any contours.
      I wonder if you could help me with the right filter settings so that the plugin can still work ?

      I attached a tree (png) that doesn't generate a boundary when using the plugin.

      Dekorte - OAK tree.png

      All the png trees i'm using are available (for free) as high quality PNG’s with transparent background from this website : https://meye.dk/info/

      Many thanks in advance !

      Boris

      I used the oak tree image and could perform the contouring without problem.

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 25 Apr 2021, 14:44

        Looks like a much improved version of my olde 'ImageTrimmer' - which is now well past its prime !

        TIG

        1 Reply Last reply Reply Quote 0
        • D Offline
          Dekorte
          last edited by 25 Apr 2021, 15:11

          Some simple trees and bushes work perfectly fine for me.
          It's rather the more complex trees with a lot of holes in between the branches where the plugin doesn't find any contours ...
          It's very strange that the oak tree did work for you, but not for me.
          When the plugin is searching for contours I can see the loading bar;
          when the loading dots reach the end (after couple of seconds), the plugin says he couldn't generate any contours. Almost like he wanted a little bit more time to think 😆
          Could it have anything to do with the speed of my processor ?

          Boris

          1 Reply Last reply Reply Quote 0
          • F Offline
            fredo6
            last edited by 25 Apr 2021, 15:57

            @dekorte said:

            Could it have anything to do with the speed of my processor ?

            Did you make the image big enough.
            Pic2Shape works with pixels, so you need to have enough resolution to find meaningful contours.

            1 Reply Last reply Reply Quote 0
            • F Offline
              fredo6
              last edited by 25 Apr 2021, 15:59

              @tig said:

              Looks like a much improved version of my olde 'ImageTrimmer' - which is now well past its prime !

              Well, I use the ImageRep API available as of SU2018, so it's a lot easier. ImageTrimmer works for older versions of Sketchup and new ones.

              1 Reply Last reply Reply Quote 0
              • S Offline
                solo
                last edited by 25 Apr 2021, 16:47

                That looks cool, got an estimated date of release?

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • F Offline
                  fredo6
                  last edited by 25 Apr 2021, 17:24

                  @fredo6 said:

                  Did you make the image big enough.
                  Pic2Shape works with pixels, so you need to have enough resolution to find meaningful contours.

                  Not sure this is relevant however. Pic2Shape works with an internal scale of one inch per pixel, regardless of the actual size of the image. So this should be sufficient.

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    Dekorte
                    last edited by 25 Apr 2021, 17:31

                    @fredo6 said:

                    @dekorte said:

                    Could it have anything to do with the speed of my processor ?

                    Did you make the image big enough.
                    Pic2Shape works with pixels, so you need to have enough resolution to find meaningful contours.

                    Still no succes...
                    Simple contour png's working perfect.
                    Complex one just don't seem to work for me.

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Dekorte
                      last edited by 26 Apr 2021, 06:16

                      @fredo6 said:

                      Could you leave the Ruby Console opened, to see if there are error messages displayed.

                      Ruby console after "no contour generated" error :
                      I also attached the tree i tried it with.
                      In total i tried over 20 different trees. Only the realy simple ones work

                      "
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<NameError: uninitialized constant G6::G6B>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4871:in window_find_handle_by_title' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:413:in compute_window_handle'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:490:in wonload_sequence' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1732:in master_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog'
                      Error: #<TypeError: nil can't be coerced into Float>
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:506:in +' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:506:in height_from_inner_window'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1166:in adjust_size_execute' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1157:in adjust_size_execute_from_js'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1621:in j_callback' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in block in create_dialog' Error: #<NameError: uninitialized constant G6::G6B> /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6g6.rbe:4773:in mouse_left_down?'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1723:in master_callback' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1659:in j_action'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1623:in j_callback' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1609:in block in j_dispatch'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in each' /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1601:in j_dispatch'
                      /users/gebruiker/library/application support/sketchup 2019/sketchup/plugins/fredo6_!libfredo6/body_lib6chromiumwdlg.rbe:1035:in `block in create_dialog'
                      "


                      Eucalyptus tree.png

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        fredo6
                        last edited by 26 Apr 2021, 06:26

                        Could you leave the Ruby Console opened, to see if there are error messages displayed.

                        EDIT: I processed a few other trees, and it seems that they are too detailed (lot of holes and small branches), so that the algorithm does not complete the contouring in a reasonable amount of time. I will see if I can do something about it.

                        EDIT 2: I can do the contouring by reducing the resolution of the image by a factor 4 or 5 (here from 1726x2500 to 347x503)

                        Sapin.png

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          fredo6
                          last edited by 26 Apr 2021, 06:29

                          Did you install the latest version of LibFredo6?

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            Dekorte
                            last edited by 26 Apr 2021, 07:37

                            @fredo6 said:

                            Did you install the latest version of LibFredo6?

                            Yes latest version LibFredo6 is installed.
                            I think you've found the sollution !
                            Images are to big and have to much detail;
                            when you resize them in Photoshop with a factor of 5, the extension works perfectly.
                            However when you resize this much, a lot of detail is lost in the image.
                            Is there a way to fix this problem you think ?

                            Many thanks !

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fredo6
                              last edited by 26 Apr 2021, 07:45

                              Depending on the tree, a reduction by 30% to 50% should be OK.

                              Do you still get the errors in the Ruby console?

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                Dekorte
                                last edited by 26 Apr 2021, 09:48

                                @fredo6 said:

                                Depending on the tree, a reduction by 30% to 50% should be OK.

                                Do you still get the errors in the Ruby console?

                                Yes, the ruby console still shows errors.
                                But only when I'm starting the plugin, not when i'm generating boundaries.
                                I think it has something to do with this :

                                When i start the plugin (see image 1) ,
                                at first i don't see the tree in the plugin-window (white "canvas")

                                This is the moment when ruby console starts showing script

                                After i click on the "x" (clear all filters in the plugin), the tree shows up at my plugin window (image 2)

                                Downsizing 30-50 % realy works, all the trees i'm testing so far are working via this method.
                                Only downside is the quality of the tree , that's a petty.
                                Maybe it's an idea to make the time for generating a boundary a bit longer ?


                                1.png


                                2.png

                                1 Reply Last reply Reply Quote 0
                                • Didier BurD Offline
                                  Didier Bur
                                  last edited by 26 Apr 2021, 11:04

                                  Hi all,

                                  Where can I download this new gem ?
                                  I cannot find it in the Plugin Store...

                                  DB

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TIG Moderator
                                    last edited by 26 Apr 2021, 12:18

                                    It's a new tool - it's still under development.
                                    This is its 'Preview' thread...
                                    Knowing Fredo it won't be long before a version becomes available...

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • andybotA Offline
                                      andybot
                                      last edited by 26 Apr 2021, 12:30

                                      Glad to see this plugin get redeveloped, thanks Fredo6!

                                      @dekorte said:

                                      Downsizing 30-50 % realy works, all the trees i'm testing so far are working via this method.
                                      Only downside is the quality of the tree , that's a petty.
                                      Maybe it's an idea to make the time for generating a boundary a bit longer ?

                                      Couldn't you just re-link the original full res image after generating the contours? I would think one wouldn't want an outline that has too many segments, this being SketchUp and all.

                                      http://charlottesvillearchitecturalrendering.com/

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        Dekorte
                                        last edited by 26 Apr 2021, 13:40

                                        @andybot said:

                                        Glad to see this plugin get redeveloped, thanks Fredo6!

                                        @dekorte said:

                                        Downsizing 30-50 % realy works, all the trees i'm testing so far are working via this method.
                                        Only downside is the quality of the tree , that's a petty.
                                        Maybe it's an idea to make the time for generating a boundary a bit longer ?

                                        Couldn't you just re-link the original full res image after generating the contours? I would think one wouldn't want an outline that has too many segments, this being SketchUp and all.

                                        Yes, ofcourse. But that's again an extra step (not trying to be lazy, just stating the facts)
                                        Anyhow, i tried this and it worked.
                                        So I used the plugin to trace the edge of the low resolution tree
                                        Afterwards, I put the high resolition png of the same tree as a texture on the created face.
                                        Just out of curiousity, I don't think this is the best way to do it.
                                        How would you "re-link" the original full res image after generating the contours ?

                                        Like I said, not trying to be lazy. All I'm trying to say is that it would be great if the plugin could also trace high res png's.

                                        Boris

                                        1 Reply Last reply Reply Quote 0
                                        • andybotA Offline
                                          andybot
                                          last edited by 26 Apr 2021, 18:45

                                          True, it would be a nice feature if the plugin had a way to resize the image to an optimal size "behind the scenes" to use just for the tracing, while leaving the original intact.

                                          http://charlottesvillearchitecturalrendering.com/

                                          1 Reply Last reply Reply Quote 0
                                          • 1 / 1
                                          1 / 1
                                          • First post
                                            1/20
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement