Auto-spacing random circles with random size and random position

Next
 From:  amur (STEFAN)
9812.1 
Hi Michael and all other programmers,

would it be possible that someone of you considers a scipt which could equally
space hand drawn circle primitives, with various sizes and positions?

I ask, because I have seen software which can create circle packing, in color,
of an image but the output is bitmap and when trying to convert this with software
to vector images it misses lot of colored circles, hence I would like to re-build such
computed images entirely with MoI, but have difficulties to properly evenly space
the hand drawn circles.

Regards
Stefan
Signal: +4915172173279 https://keybase.io/stefan_claas
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9812.2 In reply to 9812.1 
Hi Stefan, there is not any mechanism already existing in MoI for doing that. So making a script to do it would involve the script implementing some algorithm.

That's likely to be quite a lot of work, the first steps would be to do some research and look for any published technical papers that describe the algorithm.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9812.3 
Like this ? (the big image) Not really random ;)
Have you an image of what do you want ?

But that you ask seems perfect for Elephant no? (but i am not entierely sure of what is wished! :)
+ this sort of thing
You have a collection of object that you random spread ?


EDITED: 19 May 2020 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9812.4 In reply to 9812.3 
Hi Pilou, from what I understood no not like that. That one does not have a uniform spacing between circles. Your small circles have more space around them than the large circles. The large circles touch their neighboring circles, the small circles do not touch their neighboring circles.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  wayne hill (WAYNEHILL5202)
9812.5 
Something like this?
https://moi3d.com/forum/index.php?webtag=MOI&msg=9581.165

It is a work in process. It does create vector graphic circle packing from picture in colors with MOI.

Wayne
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
9812.6 
Hi Michael,

thanks for the reply and I do not want that you waste your time with that, because
v4 is much much more important.


Hi Wayne,

exactly, I don't mind if there would be not enough colors, because I could manually
re-create the addional colors needed.

Regards
Stefan

EDITED: 19 May 2020 by STEFAN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  wayne hill (WAYNEHILL5202)
9812.7 In reply to 9812.6 
Hi Stefan,

Colors are set limited by a javascript library. Having said that, the number of colors (styles / layers) can easily expand to how many styles you feel is necessary. This sample has 24 additional styles. The colors on the picture has been quantized using this library within the Node Editor:

https://github.com/leeoniya/RgbQuant.js/


Post or PM me a sample for what you are looking to convert.

Thank you,

Wayne


EDITED: 17 Jan 2021 by WAYNEHILL5202

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9812.8 
Mandelbrot set ?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  wayne hill (WAYNEHILL5202)
9812.9 In reply to 9812.8 
Pilou,
A picture I found on the internet that looked like an interesting sample to test.

Wayne
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
9812.10 
Hi Wayne,

these examples would be portrait fotos of family members, friends or collegues,
so I think you can take any copyright free image from Wikipedea etc, like a polititian,
movie actor etc.

As an example Germany's chancellor Angela Merkel.

Best regards
Stefan
Signal: +4915172173279 https://keybase.io/stefan_claas
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  wayne hill (WAYNEHILL5202)
9812.11 In reply to 9812.10 
Stefan,

Is this close to what you are looking for?
The 3dm file is 15 mb and would not download to this forum.

https://drive.google.com/open?id=1pLXE35iyCZ7fbzYjkJO5ZSTupSU8AKNg


Thank you,
Wayne


EDITED: 17 Jan 2021 by WAYNEHILL5202

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
9812.12 
Hi Wayne,

looks fantastic, however the circles are all equal in size and not like circle packing,
with various sizes.

Regards
Stefan
Signal: +4915172173279 https://keybase.io/stefan_claas
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Phiro
9812.13 
Hi Stefan,

Have you a sample image to see what you really want as result ?

It's more easy to find a way when you know where you want to go...

Regards
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  AlexPolo
9812.14 
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
9812.15 
@Phiro Hi,

Wayne has posted a link, in this thread. Like his ABC or like the Mona Lisa:

https://moi3d.com/forum/index.php?webtag=MOI&msg=9581.165

@AlexPolo Hi,

yes, I remember stipplegen, but I like to have circle packing and not stippling.

Regards
Stefan
Signal: +4915172173279 https://keybase.io/stefan_claas
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
9812.16 
Hi Phiro and AlexPolo,

here is an example.



Regards
Stefan
Signal: +4915172173279 https://keybase.io/stefan_claas
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  wayne hill (WAYNEHILL5202)
9812.17 
Hi All,

Vector graphics work well with the pointillism routine on this node. Pictures do not work as well at this moment.
Circle packing is one of the item being investigated for this node. The stipple generator is a favorite to work on as well.



Wayne




EDITED: 17 Jan 2021 by WAYNEHILL5202

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  amur (STEFAN)
9812.18 
Hi Wayne,

nice update!

I send you also a PM.

Regards
Stefan
Signal: +4915172173279 https://keybase.io/stefan_claas
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Frenchy Pilou (PILOU)
9812.19 
Remember a cool one free 2D Physics !

http://www.algodoo.com
first seconds! ;)

EDITED: 21 May 2020 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All