HashLips / generative-art-opensource

Create generative art by using the canvas api and node js, feel free to contribute to this repo with new ideas.
MIT License
1.36k stars 692 forks source link

Not all layers are used when generating #65

Open yuea21 opened 3 years ago

yuea21 commented 3 years ago

Hi,

I inserted multiple PNG images into multiple folders. When I generate the images its only selecting 1 to 2 images in each folder and ignoring the rest. Anyone know how to fix? Example below

Notice how the first line it's only generating images from ID 3 and 4. I have five images in the first holder and 0 ,1 and 2 aren't being used. I played around with the weight percentages and it didn't help

Created edition: 1, Race: skull with DNA: 3,0,2,4,0,0,1,1,0,0 Created edition: 2, Race: skull with DNA: 3,0,2,4,0,0,0,1,0,0 DNA exists! Created edition: 3, Race: skull with DNA: 3,4,0,0,0,0,0,1,0,0 DNA exists! DNA exists! Created edition: 4, Race: skull with DNA: 3,0,2,0,0,0,0,1,0,0 Created edition: 5, Race: skull with DNA: 3,4,2,4,0,0,0,1,0,0 Created edition: 6, Race: skull with DNA: 4,0,2,4,0,0,0,1,0,0

Ponda1 commented 3 years ago

I was having the same issue with v3 so I just switched to the main branch and it works great

jayvi commented 3 years ago

agree same issue use 1 2 of layers

giacomochinellato commented 3 years ago

same problem, using just 2 layers per folder. How did you fix it @Ponda1 ? Can you explain better? Thanks

jayvi commented 3 years ago

same problem, using just 2 layers per folder. How did you fix it @Ponda1 ? Can you explain better? Thanks

ah mate watch this video https://youtu.be/qmpuvGdI0w4

will solve your problems (12:55 )

Skulletje commented 3 years ago

I still don't understand with the video. Can someone please explain to me in a simple way how to fix this please? Thanks in advance.

jayvi commented 3 years ago

watch it few times then mate lol

at least can give u advice set 10 20 30 100 for weight and test if u have 4 elements