r/generative • u/tasty_plots • Feb 08 '22
Perspective Packing
https://gfycat.com/sardonicdirtyemu7
u/Jillesoom Feb 08 '22
Are there spheres hiding behind others on some Rotation, or can you see all of them at every Plane?
8
u/tasty_plots Feb 09 '22
There will be some behind as it rotates but when its squared up you can see all the spheres
5
u/adamthebread Feb 09 '22
NOW DO IT WITH A PERSPECTIVE CAMERA
4
1
u/Heban Feb 09 '22
Hmm.. To appear as spheres in perspective, could they even be true spheres anymore?
5
u/adamthebread Feb 09 '22
why wouldn't they?
1
u/Heban Feb 09 '22
Well I was thinking about how objects in games sometimes look distorted the further from the center of your screen they are. And how objects closer to your eye appear bigger than distant objects of the same size.
If you want the objects to appear as spheres POST distortion then they would need to be warped in a way to offset that distortion.
I don’t know enough to confidently say that is an inherent property of perspective though. Just pondering your challenge.
0
5
u/CFDMoFo Feb 08 '22
Damn that's black magic. How did you do it? Answer, or it'll be burning at the stake for you ;)
17
u/tasty_plots Feb 08 '22
I packed circles with the same radius twice. In the xy and yz planes. Then you rotate around the xyz spheres with an isographic camera
4
u/AngryGrenades Feb 09 '22
So so you do your first packing with two degrees of freedom per circle and your second with only one?
1
u/tasty_plots Feb 09 '22
Yes
2
u/Tomycj Feb 09 '22 edited Feb 09 '22
Did you place and ordered them by hand? Was it made in blender? edit: nevermind, its "Made in TouchDesigner with GLSL / Compute Shader"
1
u/tasty_plots Feb 09 '22
No, it's blender and they are positioned by python code. That touchdesigner one was someone recreating it
1
u/Tomycj Feb 09 '22
Oh really? Nice, thanks for correcting me. Are the spheres positioned so that there's a circumscribed cube around each one of them, where no other sphere pertrudes?
1
2
u/gibl3t Feb 09 '22
this is amazing. I wish reddit didnt compress the ever loving crap out of it, because im sure it would look even better
1
u/tasty_plots Feb 09 '22
You can see it in full resolution uncompressed here https://objkt.com/asset/hicetnunc/665037
2
18
6
1
u/mutsuto Feb 09 '22
repost?
3
3
1
u/all_is_love6667 Feb 09 '22
I think I can understand how the algorithm would work, but it's pretty neat!
1
17
u/gliese946 Feb 08 '22
It looks amazing. Would it be possible to pack them in the XZ plane too, so you could rotate the whole thing around a horizontal axis as well? I can't figure out how you would generate a set of coordinates that worked but it feels like it should be possible.