|
|
David Buck wrote:
> Yet another interesting case is when you have two barriers that form an X shape
> and you drop the particle into the top of the X. It should come to rest just
> above the center of the X. It's very hard to prevent the particle from falling
> through.
>
> (If anyone has a good solution for that, I'd love to see it. The only good
> solution I've seen involves solving sets of linear equations inside a triple
> nested loop).
Yep, ran into that problem myself. My solution was to avoid it completely. Maybe
everyone trying to get a particle system running should post examples like this,
that is, difficult situations, so that we can work together on solutions.
MJL
--
light_source{12*(y-z)rgb 2fade_distance 9fade_power 2area_light x,z,5,5}#macro A
(H,B,R,T)prism{0,1H+4,0u*9,9v*9,0#local I=1;#while(I<H)#local V=asc(substr(B,I,1
))-33;<div(V,10)mod(V,10)>#local I=I+1;#end pigment{red 1}rotate-<90,R>translate
-T}#end A(16"/.@VZno=<PLA89/"0,5*x)A(14",6;MWmhryXN3,"60<15,0,8>)camera{location
25*(y-z)look_at 0}A(8"6hiAG=6"-60,-10*x)box{-99(x+z)*99 pigment{rgb 1}} // MJL
Post a reply to this message
|
|