POV-Ray : Newsgroups : povray.general : Trce in superpatch : Re: Trce in superpatch Server Time
12 Aug 2024 01:33:36 EDT (-0400)
  Re: Trce in superpatch  
From: Juha Leppälä
Date: 6 Apr 1999 17:10:09
Message: <370A6A36.F738CC88@kolumbus.fi>
Mick Hazelgrove wrote:
> 
> Thanks Ron
> 
> That does it
> 
> Now how can I use trace to test the height of a HF... Hmmmm
> 
> Mick

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.