POV-Ray : Newsgroups : povray.newusers : "repeat warp" for "object pattern"? Server Time
27 Nov 2024 21:50:56 EST (-0500)
  "repeat warp" for "object pattern"? (Message 1 to 5 of 5)  
From: Florian Pesth
Subject: "repeat warp" for "object pattern"?
Date: 22 May 2002 14:57:35
Message: <3cebea1f@news.povray.org>
Hi all!
There's something I still can't find in the documentation. In Section 6.7.12
about Pattern Modifiers it is:
"The general purpose pattern modifiers in the following sections can be used
with pigment, normal, texture, or density patterns."
So I'm not allowed to use a "repeat warp" for an object pattern? Is there a
workaround for this purpose or do I have to use loops?
Best regards,
Florian


Post a reply to this message

From: Robert Chaffe
Subject: Re: "repeat warp" for "object pattern"?
Date: 22 May 2002 22:51:40
Message: <3cec593c@news.povray.org>
"Florian Pesth" <fpe### [at] compuservede> wrote in message
news:3cebea1f@news.povray.org...
> Hi all!
> There's something I still can't find in the documentation. In Section 6.7.12
> about Pattern Modifiers it is:
> "The general purpose pattern modifiers in the following sections can be used
> with pigment, normal, texture, or density patterns."
> So I'm not allowed to use a "repeat warp" for an object pattern? Is there a
> workaround for this purpose or do I have to use loops?
> Best regards,
> Florian

Do you mean something like the following?

// warp with object pattern test in version 3.5 beta.
camera { location <0, 0, -7.75> look_at 0 }
light_source { <10, 10, -10> rgb 1 }
box { <-5,-1,0>, <5,1,1>
  pigment { object { sphere { <0.5,0,0>, 0.45 } rgb <0,0,1>, rgb <0,1,0> } warp {
repeat x } }
}

--
Robert Chaffe
http://www.donovansweb.com/~chaffe/


Post a reply to this message

From: Christopher James Huff
Subject: Re: "repeat warp" for "object pattern"?
Date: 22 May 2002 23:41:28
Message: <pan.2002.05.22.22.44.30.76105.2622@mac.com>
On Wed, 22 May 2002 14:58:05 -0500, Florian Pesth wrote:

> Hi all!
> There's something I still can't find in the documentation. In Section
> 6.7.12 about Pattern Modifiers it is: "The general purpose pattern
> modifiers in the following sections can be used with pigment, normal,
> texture, or density patterns." So I'm not allowed to use a "repeat warp"
> for an object pattern? Is there a workaround for this purpose or do I
> have to use loops? Best regards, Florian

It doesn't say anything about specific patterns. It lists "pigment,
normal, texture, or density patterns"...in other words, pretty much any
pattern. The object pattern can be used for all of these, and the pattern
modifiers work fine for it.


-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: <chr### [at] tagpovrayorg>
WWW: http://homepage.mac.com/chrishuff/


Post a reply to this message

From: Florian Pesth
Subject: Re: "repeat warp" for "object pattern"?
Date: 23 May 2002 01:33:19
Message: <3cec7f1f@news.povray.org>
> Do you mean something like the following?
No because that's repeating the whole pigment. I use pigments for the rgb
values in your example and only want to repeat the inner pigment (in your
Example rgb <0,1,0>). So basically I want the sphere pigment to repeat but
not the pigment out of the sphere.
Here's the relevant part of my scene:

pigment {
    object{
    cylinder{<0,-2,0>,<0,1,0>,0.2}
    pigment { //This pigment shall not be repeated
    wood
    warp {
      turbulence <0.2,0.2,0>
    }
    frequency 40
    color_map {
      [0.00 color <190,123,88>/256]
      [0.90 color <172,106,70>/256]
      [0.99 color <127,83,61>/256]
      [1.00 color <88,42,8>/256]
    }
    ramp_wave
    rotate <0,90,0>
    scale <2,2,2>
    warp {
      black_hole <0,0,0>,.5
      strength 1.5
      inverse
      repeat <1,0,0>
    }
    },
    pigment{ //but this pigment
    wood
    turbulence <0.02,0,0>
    frequency 20
    color_map {
      [0.00 color 0.5*<150,113,88>/256]
      [0.90 color 0.5*<142,96,70>/256]
      [0.99 color 0.5*<127,83,61>/256]
      [1.00 color 0.5*<88,62,48>/256]
    }
    rotate <90,0,0>
    }
    }
    }

Thanks for the help,
Florian


Post a reply to this message

From: Florian Pesth
Subject: Re: "repeat warp" for "object pattern"?
Date: 23 May 2002 01:36:34
Message: <3cec7fe2$1@news.povray.org>
> It doesn't say anything about specific patterns. It lists "pigment,
> normal, texture, or density patterns"...in other words, pretty much any
> pattern. The object pattern can be used for all of these, and the pattern
> modifiers work fine for it.
That's fine! Thanks, please have a look at my problem in the reply to Robert
Chaffe.
Best regards,
Florian


Post a reply to this message

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