Pic2Shape - Converting Images to 2D objects

Pic2Shape - Converting Images to 2D objects

Postby fredo6 » Sun Apr 25, 2021 2:50 pm

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
4
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Pic2Shape - Converting Images to 2D objects

Postby fredo6 » Sun Apr 25, 2021 2:54 pm

@Dekorte

Dekorte wrote: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
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Pic2Shape - Converting Images to 2D objects

Postby TIG » Sun Apr 25, 2021 3:44 pm

Looks like a much improved version of my olde 'ImageTrimmer' - which is now well past its prime !
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Pic2Shape - Converting Images to 2D objects

Postby Dekorte » Sun Apr 25, 2021 4:11 pm

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 :lol:
Could it have anything to do with the speed of my processor ?

Boris
0

Dekorte 
 

Re: Pic2Shape - Converting Images to 2D objects

Postby fredo6 » Sun Apr 25, 2021 4:57 pm

Dekorte wrote: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.
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Pic2Shape - Converting Images to 2D objects

Postby fredo6 » Sun Apr 25, 2021 4:59 pm

TIG wrote: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.
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Pic2Shape - Converting Images to 2D objects

Postby solo » Sun Apr 25, 2021 5:47 pm

That looks cool, got an estimated date of release?
0
http://www.solos-art.com

If you see a toilet in your dreams do not use it.
User avatar
solo 
Global Moderator
 

Re: Pic2Shape - Converting Images to 2D objects

Postby fredo6 » Sun Apr 25, 2021 6:24 pm

fredo6 wrote: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.
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Pic2Shape - Converting Images to 2D objects

Postby Dekorte » Sun Apr 25, 2021 6:31 pm

fredo6 wrote:
Dekorte wrote: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.
0

Dekorte 
 

Re: Pic2Shape - Converting Images to 2D objects

Postby fredo6 » Mon Apr 26, 2021 6:41 am

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
Last edited by fredo6 on Mon Apr 26, 2021 7:26 am, edited 2 times in total.
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Pic2Shape - Converting Images to 2D objects

Postby Dekorte » Mon Apr 26, 2021 7:16 am

fredo6 wrote: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'
"
0

Dekorte 
 

Re: Pic2Shape - Converting Images to 2D objects

Postby fredo6 » Mon Apr 26, 2021 7:29 am

Did you install the latest version of LibFredo6?
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Pic2Shape - Converting Images to 2D objects

Postby Dekorte » Mon Apr 26, 2021 8:37 am

fredo6 wrote: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 !
0

Dekorte 
 

Re: Pic2Shape - Converting Images to 2D objects

Postby fredo6 » Mon Apr 26, 2021 8:45 am

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

Do you still get the errors in the Ruby console?
0
User avatar
fredo6 
PluginStore Author
PluginStore Author
 

Re: Pic2Shape - Converting Images to 2D objects

Postby Dekorte » Mon Apr 26, 2021 10:48 am

fredo6 wrote: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 ?
0

Dekorte 
 

Re: Pic2Shape - Converting Images to 2D objects

Postby Didier Bur » Mon Apr 26, 2021 12:04 pm

Hi all,

Where can I download this new gem ?
I cannot find it in the Plugin Store...
0
Didier Bur
Ecole Nationale Supérieure d'Architecture de Nancy (F)
User avatar
Didier Bur 
 

Re: Pic2Shape - Converting Images to 2D objects

Postby TIG » Mon Apr 26, 2021 1:18 pm

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...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: Pic2Shape - Converting Images to 2D objects

Postby andybot » Mon Apr 26, 2021 1:30 pm

Glad to see this plugin get redeveloped, thanks Fredo6!

Dekorte wrote: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.
0
my blog featuring recent projects
User avatar
andybot 
Premium Member
Premium Member
 

Re: Pic2Shape - Converting Images to 2D objects

Postby Dekorte » Mon Apr 26, 2021 2:40 pm

andybot wrote:Glad to see this plugin get redeveloped, thanks Fredo6!

Dekorte wrote: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
0

Dekorte 
 

Re: Pic2Shape - Converting Images to 2D objects

Postby andybot » Mon Apr 26, 2021 7:45 pm

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.
0
my blog featuring recent projects
User avatar
andybot 
Premium Member
Premium Member
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: arwon, creystl, liakooo12, Susenth and 22 guests

Visit our sponsors: