https://cdn.discordapp.com/attachments/579069920441008154/1299266725623107584/InUnity.mp4?ex=671c93ee&is=671b426e&hm=6f34d9c5dfbd909d94b434f8b73daaa476592c237176c97e08ae860b2fc9791f&
Friend inspire me to by sharing some of his abstract art work to me. So wanted to try it in unity. I think there probably a better way to do this using a particle system and offloading this to the GPU. Otherwise proud of making this in a couple of hours.
#Cube inside cube
11 messages · Page 1 of 1 (latest)
@oblique crest The gist of it is that I have a box collider define the boundaries. Then I find out how many smaller cubes can fit into this rectangular prism on each axis. Afterward I just spawn each cube at each position filling the prism. Then doing a simple for loop you can set the scale of each smaller cube based off the distance of your object you are referencing to. Currently at work I can go into more detail if you want later!
Also put on a outline toon shader at the end for fun
If you want more performance you can GPU Instance them
🙂