POV-Ray : Newsgroups : povray.binaries.images : Cylindrical pattern animation - how to get the circles/dots overlap Server Time
15 Jun 2026 10:41:13 EDT (-0400)
  Cylindrical pattern animation - how to get the circles/dots overlap (Message 4 to 13 of 13)  
<<< Previous 3 Messages Goto Initial 10 Messages
From: Jörg "Yadgar" Bleimann
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 12 Jun 2026 18:00:18
Message: <6a2c8172$1@news.povray.org>
Hi(gh)!

Am 12.06.26 um 21:29 schrieb Bald Eagle:

> plane {z, 0 pigment {function {select (Dots (x, y, z) - Radius, 0, 1)} } }

Just for better understandig: what do the second and third parameters of 
select() represent? Are they just compressed rgb vectors, i. e. black 
and white?

See you in Khyberspace!

Yadgar

-- 
VBI BENE, IBI BACTRIA!


Post a reply to this message

From: Bald Eagle
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 12 Jun 2026 21:05:00
Message: <web.6a2cac74a47dc4ffd1d09a9825979125@news.povray.org>
> Just for better understandig: what do the second and third parameters of
> select() represent? Are they just compressed rgb vectors, i. e. black
> and white?

Yes.  0 gets vector-promoted to rgb <0, 0, 0>, and 1 gets vector-promoted to rgb
<1, 1, 1>.


Post a reply to this message

From: Jörg "Yadgar" Bleimann
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 13 Jun 2026 07:40:02
Message: <6a2d4192$1@news.povray.org>
Hi(gh)!

Am 13.06.26 um 03:03 schrieb Bald Eagle:
> 
>> Just for better understandig: what do the second and third parameters of
>> select() represent? Are they just compressed rgb vectors, i. e. black
>> and white?
> 
> Yes.  0 gets vector-promoted to rgb <0, 0, 0>, and 1 gets vector-promoted to rgb
> <1, 1, 1>
Are you sure? If I replace them with actual color vectors, I get the 
error message "Parse Error: Expected 'operand', color
  keyword 'rgb' found instead"! How can I use real colors instead?

See you in Khyberspace!

Yadgar


-- 
VBI BENE, IBI BACTRIA!


Post a reply to this message

From: Bald Eagle
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 13 Jun 2026 08:00:00
Message: <web.6a2d459ca47dc4ffd1d09a9825979125@news.povray.org>
> Are you sure? If I replace them with actual color vectors, I get the
> error message "Parse Error: Expected 'operand', color
>   keyword 'rgb' found instead"!

Absolutely.

You are trying to shove a keyword and a vector into a scalar-only function that
gets parsed by the function VM.


> How can I use real colors instead?

Use a pigment_map. or a color_map.

In that case, you can even get rid of the select() statement.

The _maps do exactly that:  they map the output values of your function to
colors, pigments, textures, normals, or materials.

color_map {
  [ 0.0  rgb <0, 0, 0>]
  [ 0.5  rgb <0, 0, 0>]
  [ 0.5  rgb <1 ,1 ,1>]
  [ 1.0  rgb <1 ,1 ,1>]
}

Double entries at 0.5 give a hard transition.
Now any value below 0.5 will be black, and any value above 0.5 will be white.

- BE


Post a reply to this message

From: Jörg "Yadgar" Bleimann
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 13 Jun 2026 09:31:32
Message: <6a2d5bb4$1@news.povray.org>
Hi(gh)!

Am 13.06.26 um 13:57 schrieb Bald Eagle:

> Use a pigment_map. or a color_map.
> 
> In that case, you can even get rid of the select() statement.
> 
> The _maps do exactly that:  they map the output values of your function to
> colors, pigments, textures, normals, or materials.
> 
> color_map {
>    [ 0.0  rgb <0, 0, 0>]
>    [ 0.5  rgb <0, 0, 0>]
>    [ 0.5  rgb <1 ,1 ,1>]
>    [ 1.0  rgb <1 ,1 ,1>]
> }
> 
> Double entries at 0.5 give a hard transition.
> Now any value below 0.5 will be black, and any value above 0.5 will be white.

I tried this, but now I get rings rather than growing solid black dots, 
as you can see in the attachment (clock=20)!

See you in Khyberspace!

Yadgar




-- 
VBI BENE, IBI BACTRIA!


Post a reply to this message


Attachments:
Download 'baldeagle_test.png' (20 KB)

Preview of image 'baldeagle_test.png'
baldeagle_test.png


 

From: Bald Eagle
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 13 Jun 2026 11:30:00
Message: <web.6a2d7669a47dc4fff58bc24b25979125@news.povray.org>
> > In that case, you can even get rid of the select() statement.
Scratch that.   Keep the select () statement.

> I tried this, but now I get rings

You'll get solid dots with select.

- BE


Post a reply to this message

From: Jörg "Yadgar" Bleimann
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 13 Jun 2026 12:32:01
Message: <6a2d8601@news.povray.org>
Am 13.06.26 um 17:25 schrieb Bald Eagle:

> You'll get solid dots with select.

...but then, again, no other colors than black and white?

-- 
VBI BENE, IBI BACTRIA!


Post a reply to this message

From: Bald Eagle
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 13 Jun 2026 12:40:00
Message: <web.6a2d87bca47dc4fff58bc24b25979125@news.povray.org>
> > You'll get solid dots with select.
>
> ...but then, again, no other colors than black and white?

No.
The original function that uses select () outputs either 0 or 1.
You feed the result into a color_map, which allows you to use rgb colors.

- BE


Post a reply to this message

From: Jörg "Yadgar" Bleimann
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 14 Jun 2026 12:40:42
Message: <6a2ed98a@news.povray.org>
Hi(gh)!

Am 13.06.26 um 18:39 schrieb Bald Eagle:

> No.
> The original function that uses select () outputs either 0 or 1.
> You feed the result into a color_map, which allows you to use rgb colors.

Ah yes, I understood... here is what I got - thank you for your help!

See you in Khyberspace!

Yadgar

-- 
VBI BENE, IBI BACTRIA!


Post a reply to this message


Attachments:
Download 'laptopkaufen_12.gif' (4270 KB)

Preview of image 'laptopkaufen_12.gif'
laptopkaufen_12.gif


 

From: jr
Subject: Re: Cylindrical pattern animation - how to get the circles/dots overlap
Date: 15 Jun 2026 06:35:00
Message: <web.6a2fd441a47dc4ff22ad5b506cde94f1@news.povray.org>
hi,

=?UTF-8?Q?J=C3=B6rg_=22Yadgar=22_Bleimann?= <yaz### [at] gmxde> wrote:
> Hi(gh)!
> ... here is what I got ...

if your mate still doesn't buy a new laptop now, idk, will you (need to) break
arms ?!  </grin>

regards, jr.


Post a reply to this message

<<< Previous 3 Messages Goto Initial 10 Messages

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