POV-Ray : Newsgroups : povray.unofficial.patches : Any way to use a height field to position objects? : Re: Any way to use a height field to position objects? Server Time
1 Sep 2024 18:20:01 EDT (-0400)
  Re: Any way to use a height field to position objects?  
From: Chris Huff
Date: 8 Dec 2000 15:06:59
Message: <chrishuff-8F3864.15074808122000@news.povray.org>
It is possible in MegaPOV, but in the official version you would have to 
use an external program to get the data.

In MegaPOV: Use the trace() function, (assuming your height field is in 
the xz plane), use -y as the direction, and use a point well above the 
height field as the ray starting point. You may want to check the normal 
to see if the height field was really hit, the normal will be < 0, 0, 0> 
if no intersection was found.

It would also be possible to use the hf_height_at() function, but that 
would be a bad idea, because it isn't as versatile and will not be 
supported in the future.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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