POV-Ray : Newsgroups : povray.general : Slope ptoblem Server Time
6 Nov 2024 14:24:39 EST (-0500)
  Slope ptoblem (Message 1 to 4 of 4)  
From: Peter Popov
Subject: Slope ptoblem
Date: 6 Aug 2002 16:56:12
Message: <dod0luoojen02g427icu02vo0idrtcdb13@4ax.com>
I can't get the extended slope syntax to work. This code generates an
error:

#version 3.5;

#declare Foo = pigment {
  slope <0,-1,0>, 0, 0.5
  color_map {
    [0 Green]
    [0.16 Brown]
    [0.33 Black]
    [0.5 White]
  }
}

I think I remember someone mention this or before the beta or before
the beta period, but I can't remember who nor what. It's just that the
docs say it should work and it does not.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Tim Nikias
Subject: Re: Slope ptoblem
Date: 6 Aug 2002 17:50:12
Message: <3d504494@news.povray.org>
AFAIK, when modifying the range of the slope

>   slope <0,-1,0>, 0, 0.5

like this, you still need a colormap which ranges from
0 to 1, not

>   color_map {
>     [0 Green]
>     [0.16 Brown]
>     [0.33 Black]
>     [0.5 White]
>   }

cause you ain't declared the section from .5 to 1.

The slopemap will still use the entire colormap, but
spread the colormap across a smaller scale of slopes...

You should read the docs again, it is in there, though
not mentioning "unfinished colormaps", but this
spreading... Here's a quote:

Lo_slope and Hi_slope specifies which range of slopes are used,
so you can control which slope values return which pattern values.
Lo_slope is the slope value that returns 0.0 and Hi_slope is the
 slope value that returns 1.0.

Quote end.

Regards,

Tim


--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Slime
Subject: Re: Slope ptoblem
Date: 6 Aug 2002 21:15:08
Message: <3d50749c@news.povray.org>
You're forgetting brackets, try:

slope {<0,-1,0>, 0, 0.5}
...

And as Tim pointed out, if you specify 0 and .5, then you should have a
color map from 0 to 1, unless you want everything above .5 to be one solid
color.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

From: Peter Popov
Subject: Re: Slope ptoblem
Date: 7 Aug 2002 13:01:21
Message: <mfk2lu08o7li8jn41pil7q735mc2qqeqv5@4ax.com>
On Tue, 6 Aug 2002 21:07:58 -0400, "Slime" <slm### [at] slimelandcom> wrote:

>You're forgetting brackets, try:
>
>slope {<0,-1,0>, 0, 0.5}

I must be blind or something. Thanks!


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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