POV-Ray : Newsgroups : povray.binaries.images : Pigment Tricks : Re: Pigment Tricks Server Time
2 Oct 2024 02:18:26 EDT (-0400)
  Re: Pigment Tricks  
From: Chris Huff
Date: 29 Jul 2000 09:00:07
Message: <chrishuff-B6340C.08005429072000@news.povray.org>
In article <3982560A.DA0A96EA@pobox.com>, Anton Sherwood 
<bro### [at] poboxcom> wrote:

> Perhaps a future version will allow us to write the `icy river' effect
> like this:
> 
> 	pigment
> 		{
> 		marble
> 		pigment_map
> 			{
> 			[ 0	Blue ]
> 			[crackle Blue]
> 			[crackle White]
> 			[ 1	White]
> 			}
> 		}

Using a pattern as a value in a blend map? Hmm...interesting idea, but I 
think it would be more useful to specify a min and max range for the 
pattern, something like this:
pigment {marble
    pigment_map {
        [0 Blue]
        [pattern {crackle range 0.5, 0.8} Blue]
        [pattern {crackle range 0.8, 1} White]
        [1 White]
    }
}

This might be possible to do, but I don't know how easy it would 
be...and it would make blend maps dependant on position, so the values 
would have to be recalculated for every evaluation.

BTW, I think this pattern {} syntax would also be useful in other 
places, it should be allowed anywhere patterns are used. For one thing, 
it would fix the problem of scaling a normal pattern without scaling the 
normal in the new normal calculation method used in MegaPOV. And it 
would also be useful if patterns could be declared...

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

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