POV-Ray : Newsgroups : povray.general : Trce in superpatch : Re: Trce in superpatch Server Time
12 Aug 2024 01:25:10 EDT (-0400)
  Re: Trce in superpatch  
From: Margus Ramst
Date: 6 Apr 1999 20:14:18
Message: <370a954a.0@news.povray.org>
Why not simply trace from below, e.g. trace(HF,<Px,-1,Pz>,y)

Margus


>
>It's quite simple actually
>
>#declare your heigtfield (eg. #declare HF=heightfield{...})
>#declare the maximum height of the heightfield (#declare MaxHeight=(the
>y-scale of the hf + 1)
>then when you want to know the heigth at point (x,z)
>just trace(HF,<x,MaxHeight,z>,<0,-1,0>)
>
>I did this straight from my memory so there might be some errors but
>hopefully you get the main idea
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.