POV-Ray : Newsgroups : povray.general : having trouble with a texture... : Re: having trouble with a texture... Server Time
31 Jul 2024 18:19:54 EDT (-0400)
  Re: having trouble with a texture...  
From: Slime
Date: 22 Oct 2006 03:08:18
Message: <453b18e2$1@news.povray.org>
> 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.