|
![](/i/fill.gif) |
Tekno Frannansa wrote:
>
> > Do some testing :) It should be a little bit faster because the caps
> > are ray-shape-intersection-tested separately (if the cylinder is not
> > open).
>
> But surely in the end of the cylinder is limited by a plane, which has
> to be checked in either case (as the cylinder isn't infinitely long)?
> And if you can't see the ends then it shouldn't do any more processing
> beyond that.
>
> Still, it can't hurt to try :)
The plane clipping test is different from a ray-plane intersection test.
Due to the automatic bounding of objects, there will probably be little
gain; if the bound check shows a miss, the whole cylinder is skipped,
and therefore the ends aren't checked anyway.
Regards,
John
Post a reply to this message
|
![](/i/fill.gif) |