POV-Ray : Newsgroups : povray.general : area highlights : Re: area highlights Server Time
19 Nov 2024 22:31:37 EST (-0500)
  Re: area highlights  
From:
Date: 20 Dec 2001 10:29:15
Message: <7uv32u02nosul1q59a818bs9kluhgo08tj@4ax.com>
On Thu, 20 Dec 2001 15:53:05 +0100, "Simon Adameit" <gom### [at] gmxde> wrote:
> I don't get any normals from the slope pattern when I use it in a function
> that I use in an other function. Just something like <1,1,1> or <0,0,0>.

And what you expected when you have no surface ? AFAIK only slope at
texture/pigment/normal level has right behaviour. When you call it within
function then there is no internal intesection entry and therefore no normal.
And that's probably why there is no f_slope() function in "functions.inc"

> Is there another way to get the normals or should I just make a thing that only
> works for spheres?

I'm affraid no.

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

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