POV-Ray : Newsgroups : povray.general : Feature addition to the Normal function ? : Re: Feature addition to the Normal function ? Server Time
12 Aug 2024 01:28:20 EDT (-0400)
  Re: Feature addition to the Normal function ?  
From: Jerry Anning
Date: 8 Apr 1999 14:38:49
Message: <370ce83f.3657779@news.povray.org>
On 8 Apr 1999 09:30:15 -0500, par### [at] my-dejanewscom (Ron Parker)
wrote:


>I'll bet someone here (maybe even me...) could work out a macro that takes 
>an ordered array of 2-d vectors in ([0..1],[0..1]) and calculates the 
>appropriate slopes for you.  It wouldn't be as versatile as the general 
>slope_map, but it might be easier for an artist to work with.

You can pull slopes out of an image (height field) by running it
through the diff function in hflab.  I posted a tutorial quite a while
ago about using this and some related tricks to generate slope
dependent textures in standard pov.  I think it was in
povray.binaries.tutorials.  Using it twice, of course, lets you
identify spots where the slope is changing (rim of a valley, etc.).
If anyone is interested and can't find the tutorial, let me know and
I'll dig up my file copy.

Jerry Anning
clem "at" dhol "dot" com


Post a reply to this message

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