Functions

 Using Functions


I used function on top of another function to create this structure.


First, this function is for creating spheres with random translate and scale values.


Continuation of the above function. Adjust the translate and scale values with random numbers.


This function is for creating shaders of the spheres. I put on the color orange and blue to the spheres.





This is the function to complete the structure and connecting the spheres and pipes together. At the end, I created 100 spheres so that the sturcture looks like that in the image.

Comments