POV-Ray : Newsgroups : povray.binaries.images : Spatial function pigments Server Time
6 Nov 2024 10:24:30 EST (-0500)
  Spatial function pigments (Message 1 to 3 of 3)  
From: Bald Eagle
Subject: Spatial function pigments
Date: 19 Jul 2019 20:45:00
Message: <web.5d3263f9935a77de4eec112d0@news.povray.org>
So now that I've had enough time to be inspired, brainstorm, experiment, be
corrected, learn, and do more brainstorming, I started playing around with some
of the standard pigment patterns and functions, with an eye toward making some
feature-added patterns like I did here:

http://news.povray.org/povray.binaries.images/message/%3Cweb.5ad8c26cbb501a74c437ac910%40news.povray.org%3E/#%3Cweb.5ad
8c26cbb501a74c437ac910%40news.povray.org%3E

So the first thing I did was fall asleep while thinking about a quick, slick
method for simply and directly calculating which octant a vector was in, without
resorting to a nested select() function.

Someone already had the same idea and worked out the specifics, so I just ran
with that.

Then I scaled the function output to return (almost) evenly spaced values
between 0-1, and got that all working and tested out.

Then I just used that and wrote another function to assign values to the pairs
of octants that compose the quadrants.

Then I simply wrote a simple function to split space into 2 half-planes.
And added a way to introduce a scaled gradient if desired.

So here are the 3 pigment patterns at their present stage, with some spheres
that are all just assigned the same single space-dividing function pigment.
They are NOT individually pigmented spheres, they are a union assigned a single
pigment pattern.


Post a reply to this message


Attachments:
Download 'octantpattern.png' (67 KB)

Preview of image 'octantpattern.png'
octantpattern.png


 

From: Bald Eagle
Subject: Re: Spatial function pigments
Date: 19 Jul 2019 20:55:00
Message: <web.5d3265fc69c7fd224eec112d0@news.povray.org>
Quadrant pigment (no gradient)


Post a reply to this message


Attachments:
Download 'quadrantpattern.png' (45 KB)

Preview of image 'quadrantpattern.png'
quadrantpattern.png


 

From: Bald Eagle
Subject: Re: Spatial function pigments
Date: 19 Jul 2019 21:00:00
Message: <web.5d3266cc69c7fd224eec112d0@news.povray.org>
Half-Plane pigment with gradient and sin function with pigment applied.


Post a reply to this message


Attachments:
Download 'halfplanepattern.png' (45 KB)

Preview of image 'halfplanepattern.png'
halfplanepattern.png


 

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