POV-Ray : Newsgroups : povray.binaries.images : First posting (Sphere and checkers) : Re: First posting (Sphere and checkers) Server Time
5 Nov 2024 16:42:31 EST (-0500)
  Re: First posting (Sphere and checkers)  
From: Mike Williams
Date: 11 Jul 2005 08:07:26
Message: <ChVzHAA4Dm0CFwQe@econym.demon.co.uk>
Wasn't it Marko who wrote:
>My first post to group.
>
>Total processing time 111h 31min 43sec
>
>Q: (See mesh_problem.jpg)
>I created mesh-object (plane with a pit with checker-texture). In bottom of
>the pit, there is circle in texture. Is there any other way to get rid of
>that circle than scaling tecture size?

One method would be to write a pigment function, like this

  texture {
    pigment {function {(sin(x*4)+sin(z*4))/4}
      colour_map {[0.5 rgb x][0.5 rgb z]}
    }
  }

This looks just like

  texture {
    pigment {checker rgb x rgb z}
  }

except that it only chequers in the x and z directions.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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