|
|
In article <3c813859$1@news.povray.org>,
"Kevin Loney" <klo### [at] pt2mcom> wrote:
> I've considered that method which is by far the easiest but it won't work
> very well for a cloth because I need to find the exact point of collision so
> I can calculate accurate bounce.
If you mean to find the point the side first hit the object, there is no
way to do that exactly. You would have to use infinitely many steps.
However, you could do the tracing from both ends of the side, and pick a
point in the middle of the two intersections for a slightly more
accurate approximation. Or take the last position of the edge and the
current position, and perform several samples to get a better result. I
think the best solution is just a higher resolution cloth and smaller
step values though.
--
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/
Post a reply to this message
|
|