POV-Ray : Newsgroups : povray.general : No repeating pattern? Server Time
23 Dec 2024 12:23:57 EST (-0500)
  No repeating pattern? (Message 1 to 6 of 6)  
From: Mike Horvath
Subject: No repeating pattern?
Date: 18 Jan 2016 21:56:06
Message: <569da5c6$1@news.povray.org>
I'm using a gradient pattern for one of my scenes. How do I make it so 
that it doesn't repeat, and instead stays at the last value? Thanks!


Mike


Post a reply to this message

From: dick balaska
Subject: Re: No repeating pattern?
Date: 18 Jan 2016 22:35:24
Message: <569daefc$1@news.povray.org>
On 1/18/2016 9:56 PM, Mike Horvath wrote:
> I'm using a gradient pattern for one of my scenes. How do I make it so
> that it doesn't repeat, and instead stays at the last value? Thanks!

I would union two objects such that the value of the "outer" object is 1.0;

0    .3   .6   1
|----+----+----|
                |-----------------|
                1                 1


Post a reply to this message

From: Anthony D  Baye
Subject: Re: No repeating pattern?
Date: 19 Jan 2016 02:00:28
Message: <web.569dde3f1d6d59392aaea5cb0@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:
> I'm using a gradient pattern for one of my scenes. How do I make it so
> that it doesn't repeat, and instead stays at the last value? Thanks!
>
>
> Mike

Not quite sure what you're asking here, but if I understand correctly, you might
try:

create two pigment functions, one with your gradient and the other solid with
the value of the last pigment in the gradient, then

create another function that selects between the two based on a numeric value.
I think you should be able to do this with the select() function, but you'll
have to look it up.


Regards,
A.D.B.


Post a reply to this message

From: Bill Pragnell
Subject: Re: No repeating pattern?
Date: 19 Jan 2016 03:20:01
Message: <web.569df1631d6d59395b7d07940@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:
> I'm using a gradient pattern for one of my scenes. How do I make it so
> that it doesn't repeat, and instead stays at the last value? Thanks!

You could use a planar pattern instead:

http://www.povray.org/documentation/3.7.0/r3_4.html#r3_4_7_1_20

Bill


Post a reply to this message

From: Mike Horvath
Subject: Re: No repeating pattern?
Date: 19 Jan 2016 05:25:04
Message: <569e0f00@news.povray.org>
On 1/19/2016 3:18 AM, Bill Pragnell wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
>> I'm using a gradient pattern for one of my scenes. How do I make it so
>> that it doesn't repeat, and instead stays at the last value? Thanks!
>
> You could use a planar pattern instead:
>
> http://www.povray.org/documentation/3.7.0/r3_4.html#r3_4_7_1_20
>
> Bill
>
>

Unfortunately, my scene is not flat. But now that you mention it, I 
should really be using a spherical pattern for the ChromaDepth pattern, 
not a gradient. Thank you!


Mike


Post a reply to this message

From: clipka
Subject: Re: No repeating pattern?
Date: 19 Jan 2016 12:15:21
Message: <569e6f29$1@news.povray.org>
Am 19.01.2016 um 03:56 schrieb Mike Horvath:
> I'm using a gradient pattern for one of my scenes. How do I make it so
> that it doesn't repeat, and instead stays at the last value? Thanks!

Maybe use the "planar" pigment instead?

As a last resort, you can always use a function pattern.


Post a reply to this message

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