POV-Ray : Newsgroups : povray.general : having trouble with a texture... : Re: having trouble with a texture... Server Time
31 Jul 2024 18:21:48 EDT (-0400)
  Re: having trouble with a texture...  
From: Shark
Date: 22 Oct 2006 05:20:00
Message: <web.453b3698cc2493de2670f2cf0@news.povray.org>
Oh! I didn't realize these functions existed in functions.inc.
I thought you were just making them up as an example.

Thanks!

One more thing: what is the proper way of scaling the pigments or functions?
Their frequency is so high that the pattern occurs more than once on a
single sphere.

"Slime" <fak### [at] emailaddress> wrote:
> > I wouldn't know how to define the function... The math is a bit beyond me.
>
> You should be able to just use the functions I gave you, with pigment maps.
> For instance, if you apply the pigment I provided to a sphere, you should
> see how the f_th function looks and then you can make a pigment map to work
> with it.
>
> Or, if you want to use three functions to describe the R, G, and B color
> components and combine them, you can do it like this:
>
> pigment
> {
> average
> pigment_map
> {
> [1 function{redfunc(x,y,z)} color_map{[0 rgb 0][1 rgb <3,0,0>]}]
> [1 function{greenfunc(x,y,z)} color_map{[0 rgb 0][1 rgb <0,3,0>]}]
> [1 function{bluefunc(x,y,z)} color_map{[0 rgb 0][1 rgb <0,0,3>]}]
> }
> }
>
> If you just use f_th, f_r, and f_ph for the red/green/blue functions, you
> will already have an interesting pigment.
>
>  - Slime
>  [ http://www.slimeland.com/ ]


Post a reply to this message

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