POV-Ray : Newsgroups : povray.advanced-users : Making Patterns with functions Server Time
1 Jun 2024 23:03:36 EDT (-0400)
  Making Patterns with functions (Message 21 to 27 of 27)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Bald Eagle
Subject: Re: Making Patterns with functions
Date: 13 Feb 2024 22:25:00
Message: <web.65cc3266d81b84791f9dae3025979125@news.povray.org>
This one's sort of like dice.

mod (floor(x)+floor(y), 2) somehow is NOT the same as even (floor(x)+floor(y))

IIRC, Bill Pokorny mentioned something about how floor isn't quite "right".

anyway, this is the last one for the night.

- BW


Post a reply to this message


Attachments:
Download 'mathpatterns1.png' (145 KB)

Preview of image 'mathpatterns1.png'
mathpatterns1.png


 

From: kurtz le pirate
Subject: Re: Making Patterns with functions
Date: 14 Feb 2024 03:59:04
Message: <65cc80d8$1@news.povray.org>
On 13/02/2024 00:46, Bald Eagle wrote:
> Hopefully we can get a few new patterns posted in this thread, and I'm going to
> try to post at least one new pattern a week, to keep some momentum going.



Excellent work! Congratulations

-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

From: William F Pokorny
Subject: Re: Making Patterns with functions
Date: 14 Feb 2024 07:19:14
Message: <65ccafc2$1@news.povray.org>
On 2/13/24 21:03, Bald Eagle wrote:
> Here's one to torture your eyes.  :P

It does dance around! :-)

Bill P.


Post a reply to this message

From: William F Pokorny
Subject: Re: Making Patterns with functions
Date: 14 Feb 2024 07:29:09
Message: <65ccb215$1@news.povray.org>
On 2/13/24 22:24, Bald Eagle wrote:
> IIRC, Bill Pokorny mentioned something about how floor isn't quite "right".

IICRC... Rings a bell.

With yuqk, I do remember changing the code which creates the 0-1 ramp 
wave - in official POV-Ray there is some hard coded magic which 
sometimes causes trouble if one hits the right (wrong) values.

There is too some hard code clamping of values coming from functions 
into the pattern mechanism that I removed. However, this bit, from your 
results, I would say you are already avoiding. (That you are limiting 
your function() values into the pattern mechanism to 0-1 or >0.0 ranges)

Bill P.


Post a reply to this message

From: Alain Martel
Subject: Re: Making Patterns with functions
Date: 14 Feb 2024 09:47:19
Message: <65ccd277$1@news.povray.org>
Le 2024-02-13 à 21:03, Bald Eagle a écrit :
> Here's one to torture your eyes.  :P
It moves.
There are colour spots popping everywhere.
It shakes.


Post a reply to this message

From: Alain Martel
Subject: Re: Making Patterns with functions
Date: 14 Feb 2024 09:48:33
Message: <65ccd2c1$1@news.povray.org>
Le 2024-02-13 à 22:24, Bald Eagle a écrit :
> This one's sort of like dice.
> 
> mod (floor(x)+floor(y), 2) somehow is NOT the same as even (floor(x)+floor(y))
> 
> IIRC, Bill Pokorny mentioned something about how floor isn't quite "right".
> 
> anyway, this is the last one for the night.
> 
> - BW
Another that play tricks with your eyes...


Post a reply to this message

From: Bald Eagle
Subject: Re: Making Patterns with functions
Date: 14 Feb 2024 20:50:00
Message: <web.65cd6cdcd81b84791f9dae3025979125@news.povray.org>
This is very similar in concept to the Voronoi pattern, and indeed, if the
"annular rings" are fine enough, one gets the visual impression of Voronoi cells
filled with a concentric ring pattern.

I just did this for fun, to illustrate a practical pattern to use for ripples in
water, malachite, rhodochrosite, wood, "jawbreaker" candies, etc, and to
implement an example that makes use of splines, loops, pseudorandom numbers, and
a discrete set of "basis functions" that are evaluated "en-masse".

Enjoy the "bubbles".

(Speaking of which, this could be a fun one to apply iridescence to...)

I'd have to think about how to vary the "radius" of each seed point, and then
apply the true bubble intersection formula to get a nice foam cross-section.
Foam isosurface, anyone?

- BE


Post a reply to this message


Attachments:
Download 'mathpatterns1.png' (704 KB)

Preview of image 'mathpatterns1.png'
mathpatterns1.png


 

<<< Previous 10 Messages Goto Initial 10 Messages

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