r/generative • • Feb 10 '22

Perspective Packing

https://gfycat.com/naturalwhimsicalbittern
411 Upvotes

20 comments sorted by

18

u/Goober329 Feb 10 '22

Nice! Ive enjoyed watching these! Would be interesting to see it with the light source being constant so the shadows don't stay on the same part of the spheres.

6

u/tasty_plots Feb 10 '22

Nice! Ive enjoyed watching these! Would be interesting to see it with the light source being constant so the shadows don't stay on the same part of the spheres.

Thanks, I think you meant the light source not being constant since its still as it is. But its a good idea.

3

u/Goober329 Feb 10 '22

Yeah I think you're right. I guess what I was imagining was the cube rotating and the light source and camera view staying the same

11

u/tasty_plots Feb 10 '22

I guess I know what i'm rendering tonight then.

7

u/gliese946 Feb 11 '22

Hey, you did it in all 3 elevations, bravo! I wonder if there was a glitch in the pseudo-random generator you used though, because the spheres (seen in one elevation) form very regular bands (for example vertically along the left-hand side at 3 seconds into the video, and actually now that I look at it properly, all across the background behind the larger spheres).

1

u/tasty_plots Feb 11 '22

That's an intentional choice with the colouring, it looks random from one direction but from another it has the bands pattern.

2

u/gliese946 Feb 11 '22

Ok cool. I actually didn't notice it was just bands of colour at first, I thought the dark blue spheres were gaps. How come all the large spheres are bunched up to one side too?

1

u/tasty_plots Feb 11 '22

That's because the z isn't packed randomly. It places it in the first available spot instead

5

u/[deleted] Feb 10 '22 edited Feb 28 '24

sparkle normal ugly snobbish school dirty wild gullible theory glorious

This post was mass deleted and anonymized with Redact

8

u/tasty_plots Feb 10 '22

It's made in blender, using python to place the spheres.

2

u/totalsecretac Feb 11 '22

Hey man, if could tell the lib you used for packaging that would be reaaaally cool an helped me and maybe others a lot. Been trying to find a good one outside d3 for ages =)

2

u/tasty_plots Feb 11 '22

Hi, its custom code not using a library. Its based on the algorithm described here http://paulbourke.net/fractals/randomtile/

1

u/[deleted] Feb 10 '22

same question!

2

u/JohannesMP Feb 11 '22

Repeating what I said last time this (or one very like it) was posted: Would be neat to have a version that's packed for all three directions.

1

u/tasty_plots Feb 11 '22

This one is packed in all dimensions, the one I just posted might show it better though.

4

u/DearestRay Feb 10 '22

This has captured my imagination. It’s like a sudoku 😍

2

u/Nixavee Feb 10 '22

That’s it, we’ve reached peak circle packing

1

u/Igont Feb 11 '22

Great!! But how did you place these balls so that they are packed on each side?

1

u/k0wabunga Feb 11 '22

Love it! Now do the same with perspective projection 👌