|
|
Hi, everyone.
I have been spending time searching on the internet and reading your guys'
information. However, I realized almost all of them required "some mathematical
background", especially Voronoi Diagram being shown the most frequently. I try
my best to understand them but I can't due to the lack of Maths background(I
only know some integration/sequence and differentiation from classes :( ). I
then try to work with an external program but I don't how to make use of it
well. (I installed the pyvoro in Python) So, I just went back to the basic now.
( Damn, I am stupid! Just want to cry in a corner) So far I just wrote this one:
#declare Grain = array[10000] ;
#declare Nr = 0 ;
#declare Position = seed(100) ;
#declare Size = seed(123) ;
#while (Nr < 10000)
sphere{<rand(Position), rand(Position), rand(Position)>, rand(Size)*.1
pigment {color rgb<rand(Size), rand(Size), rand(Size)>} }
#declare Grain[Nr] = sphere{<rand(Position), rand(Position),
rand(Position)>, rand(Size)*.1
pigment {color rgb<rand(Size), rand(Size), rand(Size)>} }
#declare Nr = Nr + 1;
#end
I think I will then try to develop it a little bit further according to the
'distance test formula' from the 'Pebbles' example. My idea now is to test every
Grain[Nr] vs Grain[Nr-1] Grain[Nr-2]......Grain[0] if their distance between two
centers is smaller than their sum of radii. It's 3 a.m. now here guys. I think I
might just sleep and work it out tomorrow. Thank you guys for helping me at
first but I think I have to say I am too stupid to understand them :'(.
Post a reply to this message
|
|