|
![](/i/fill.gif) |
On Fri, 30 Jun 2000 13:59:58 -0700, SamuelT wrote:
>Chris Huff wrote:
>
>> It might work better if you added the objects to an array intead of
>> using a deeply nested union.
>
>Darn, haven't learned arrays yet. What would I do with the array?
Put your spheres in it and loop over the ones you have so far looking for
a hit with trace(). Then take the closest hit you found. The nested unions
are probably faster, if you can get them to work.
>> Oh, and why did you use "#object"?
>
>I thought I had to encase Obj inside it....
You're looking for "object" rather than "#object". "#object" is bad syntax,
but the parser treats it like "object" for now.
--
Ron Parker http://www2.fwi.com/~parkerr/traces.html
My opinions. Mine. Not anyone else's.
Post a reply to this message
|
![](/i/fill.gif) |