POV-Ray : Newsgroups : povray.binaries.images : fished onion : Re: fished onion Server Time
20 Aug 2024 04:17:02 EDT (-0400)
  Re: fished onion  
From: Margus Ramst
Date: 13 Oct 2000 18:40:44
Message: <39E781F4.270384ED@peak.edu.ee>
autowitch wrote:
> 
> How did you do the tiling?
> 

You have two options (that I can think of).

1) Use the repeat warp. For example, to get a <0,0,0>-<1,1,1> slice of your
texture to tile in 3D, you need 3 consecutive repeat warps:
warp{repeat x}
warp{repeat y}
warp{repeat z}

2) The way I did it was to modify the (x,y,z) parameters in the function call,
like this:
function{
    My_pigment_function(
        abs(x)-floor(abs(x)),
        abs(y)-floor(abs(y)),
        abs(z)-floor(abs(z))
    )
}
This also tiles a <0,0,0>-<1,1,1> slice of the pattern in 3D - but if I'm not
mistaken, the pattern is mirrored at the origin.

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

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