|
|
Redbeard wrote:
>
> I'm working on a US Flag texture. I've been able to get 48 stars using a repeat
> warp and a macro Chris Colefax offered some time back for a star texture
> (sorry... can't find the post).
>
> Any ideas on how to get the 50 stars in the 5 6's, 4 5's pattern? I've included
> my repeat statement for reference.
>
> Stars should look like:
> * * * * * *
> * * * * *
> * * * * * *
> * * * * *
> * * * * * *
> * * * * *
> * * * * * *
> * * * * *
> * * * * * *
>
> Repeat warp currently used:
> #declare OldGloryBlue = rgb <0,40,104> / 255;
> #declare P_USAStars =
> pigment
> {
> star_pigment(5, 40, pigment_map
> {
> [0 OldGloryBlue]
> [0.00001 White]
> })
>
> translate <1,1,0>
> warp { repeat x * 3 }
> warp { repeat y * 2.75 }
> scale StarDia / 2
> translate 6 * Stripe * y + <0.5,0.4,0> * StarDia
> }
>
> This isn't terribly accurate, but it works. For 48 stars. And I need 50 :-)
You want to try an offset in the second warp:
warp { repeat y*2.75 offset <1.5,0,0> }
Note that the x offset is half the value of the first repeat warp
Josh English
eng### [at] spiritonecom
Post a reply to this message
|
|