|
![](/i/fill.gif) |
"Jaime Vives Piqueres" <jai### [at] ignorancia org> wrote in message
news:3BF### [at] ignorancia org...
> Slime wrote:
> >
> > Trace() shoots a ray. It's helpful if you have an object that's going to
> > move in a specific direction and you want to see how close the nearest
> > obstacle is in the direction it's moving. It doesn't really help you with
> > stationary objects.
>
>
> Well, it helps to place "stationary" objects... at least to me.
>
I just looked at the trace function. It seems to me it would be useful for
stacking stationary objects, but not randomly jumbling them around in space, as
my macro does.
What I'm trying to achieve is to place an object within the space that some
other object would occupy without intersecting previously placed objects. As an
example, imagine a simple snow-globe, a container with liquid and "snow"
particles. Shake it up. The particles roughly fill the space, but no two
intersect. This is what I want to do.
Michael
--
#macro M(D,J)text{ttf"cyrvetic.ttf"D 1,0translate-J}#end#macro N(E,K)#local A=
M(E,K)light_source{-z*30rgb 1projected_through{A}}#end N("Michael"<1.6,-.2,5>)
N("Johnson"<1.9.8,5>)sphere{z*9,4pigment{gradient x+y scale 10color_map{[0 rgb
x][1rgb x+y]}sine_wave}} // (c)2001 Michael D Johnson red### [at] wv adelphia net
Post a reply to this message
|
![](/i/fill.gif) |