In article <36ac79eb.0@news.povray.org> , par### [at] my-dejanews com (Ron
Parker) wrote:
> I can't think of any way to
> detect a ray that is parallel to the bounding slab
Hmm, if I understand it right the heightfield is bounded by two parallel
planes, so all you need to test is if a ray is parallel one of the planes
(which is easy). Then you test is there is any intersection with this ray
and the heightfields within the first 2*sqrt(2) (for a heightfield scaled to
1 only) and you are done.
Thorsten
Post a reply to this message
|