POV-Ray : Newsgroups : povray.text.scene-files : A little something fun to play with Server Time
5 Jul 2024 10:13:09 EDT (-0400)
  A little something fun to play with (Message 1 to 9 of 9)  
From: Ron Parker
Subject: A little something fun to play with
Date: 18 Apr 2001 16:08:24
Message: <slrn9drt1q.d97.ron.parker@fwi.com>
A little something I've been messing around with... try different numbers
for the 91671 in the second-to-last line.  Requires some flavor of MegaPOV
(though if you don't have MegaPOV you can still play... just delete the
pigment called C and replace the [.05 C] with [.05 rgb 1] )

#macro Arabesque( Param )
  #declare Sd = seed(Param);
  #declare Rv = <rand(Sd),rand(Sd),rand(Sd)>*500;
  #local C=pigment{crackle solid 
    color_map{
      [1/12 red 1]
      [1/12 red 1 green 1][3/12 red 1 green 1]
      [3/12 green 1][5/12 green 1]
      [5/12 green 1 blue 1][7/12 green 1 blue 1]
      [7/12 blue 1][9/12 blue 1]
      [9/12 blue 1 red 1][11/12 blue 1 red 1]
      [11/12 red 1]
    }
  }         
  #local G=pigment{crackle
    pigment_map{[.05 rgb 0][.05 C]}
    scale .2
    translate Rv
    warp {repeat z flip z}
  }      
  #local B=pigment{
    radial 
    pigment_map{
      #local i=0;
      #while(i<6)
        [i/6 G rotate(30+60*i)*y]
        [(i+1)/6 G rotate(30+60*i)*y]
        #local i=i+1;
      #end
    }
  }
  #local T2=sqrt(3)/2;
  radial 
  pigment_map{
    [1/3 B translate<.5,0,-T2>]
    [1/3 B translate<-1,0,0>]
    [2/3 B translate<-1,0,0>]
    [2/3 B translate<.5,0,T2>]
  }
  translate x 
  warp{repeat 1.5*x flip x}
  warp{repeat .5*sqrt(3)*z flip z}
#end

plane {y 0 pigment {Arabesque(91671)} finish {ambient 1}}
camera {location 5*y sky z look_at 0}


-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: ingo
Subject: Re: A little something fun to play with
Date: 18 Apr 2001 17:10:07
Message: <Xns9087EC0547A6Fseed7@povray.org>
in <slr### [at] fwicom> Ron Parker wrote:

> A little something I've been messing around with... 

Ahhh, I like! It will be disected first thing tomorrw morning.
A very small rotation around x or z gives a nice "fading" effect.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Ron Parker
Subject: Re: A little something fun to play with
Date: 18 Apr 2001 17:47:25
Message: <slrn9ds2rg.dd2.ron.parker@fwi.com>
On 18 Apr 2001 17:10:07 -0400, ingo wrote:
>in <slr### [at] fwicom> Ron Parker wrote:
>
>> A little something I've been messing around with... 
>
>Ahhh, I like! It will be disected first thing tomorrw morning.
>A very small rotation around x or z gives a nice "fading" effect.

Hey, that's pretty cool.  Now I know why I keep posting stuff like this
here; it always seems to grow.

Try replacing this bit:
      
      #while(i<6)
        [i/6 G rotate(30+60*i)*y]
        [(i+1)/6 G rotate(30+60*i)*y]
        #local i=i+1;
      #end

with this:

      #while(i<12)
        [i/12 G rotate(15+30*i)*y]
        [(i+1)/12 G rotate(15+30*i)*y]
        #local i=i+1;
      #end

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Ken
Subject: Re: A little something fun to play with
Date: 18 Apr 2001 22:31:46
Message: <3ADE4E48.B82EAEF5@pacbell.net>
Ron Parker wrote:

> Hey, that's pretty cool.  Now I know why I keep posting stuff like this
> here; it always seems to grow.

I'm not sure I can make it grow but I am sure I can damage it :)

--
Ken Tyler


Post a reply to this message

From: Ken
Subject: Re: A little something fun to play with
Date: 18 Apr 2001 23:22:30
Message: <3ADE5A2D.15C88B83@pacbell.net>
Ken wrote:
> 
> Ron Parker wrote:
> 
> > Hey, that's pretty cool.  Now I know why I keep posting stuff like this
> > here; it always seems to grow.
> 
> I'm not sure I can make it grow but I am sure I can damage it :)

Ok, I damaged it...

P.S. A little rotation and a bit of turbulence makes a passing chipboard
pigment for the wood crafters in the group.


-----------------------------------


#declare P1=pigment { wood turbulence .05
             color_map {
                         [ 0 rgb<.35,.20,.15>]
                         [.5 rgb<.50,.35,.23>]
                         [ 1 rgb<.35,.20,.15>]
                       }
                    }

#declare P2=pigment { wood turbulence .05
             color_map {
                         [ 0 rgb<.45,.30,.25>]
                         [.5 rgb<.60,.45,.33>]
                         [ 1 rgb<.45,.30,.25>]
                       }
                    }

#declare P3=pigment { wood turbulence .05
             color_map {
                         [ 0 rgb<.55,.40,.35>] 
                         [.5 rgb<.70,.55,.43>] 
                         [ 1 rgb<.55,.40,.35>]
                       }
                    }

#declare P4=pigment { wood turbulence .05
             color_map {
                         [ 0 rgb<.65,.50,.45>] 
                         [.5 rgb<.80,.65,.53>]
                         [ 1 rgb<.65,.50,.45>]
                       }
                    }

#declare P5=pigment { wood turbulence .05
             color_map {
                         [ 0 rgb<.75,.60,.55>]
                         [.5 rgb<.90,.75,.63>]
                         [ 1 rgb<.75,.60,.55>]
                       }
                    }

#declare P6=pigment { wood turbulence .05
             color_map {
                         [ 0 rgb<.85,.70,.65>]
                         [.5 rgb<.90,.85,.73>]
                         [ 1 rgb<.85,.70,.65>]
                       }
                    }


#macro Arabesque( Param )
  #declare Sd = seed(Param);
  #declare Rv = <rand(Sd),rand(Sd),rand(Sd)>*500;
  #local C=pigment{crackle solid 
  
pigment_map{
      [1/12  P1 scale .10]
      [1/12  P1 scale .10]
      [3/12  P2 scale .10]
      [3/12  P2 scale .10]
      [5/12  P3 scale .10]
      [5/12  P3 scale .10]
      [7/12  P4 scale .10]
      [7/12  P4 scale .10]
      [9/12  P5 scale .10]
      [9/12  P5 scale .10]
      [11/12 P6 scale .10]
      [11/12 P6 scale .10]
    }    

  }         
  #local G=pigment{crackle
    pigment_map{[.05 rgb 0][.05 C]}
    scale .2
    translate Rv
    warp {repeat z flip z}
  }      
  #local B=pigment{
    radial 
    pigment_map{
      #local i=0;
      #while(i<6)
        [i/6 G rotate(30+60*i)*y]
        [(i+1)/6 G rotate(30+60*i)*y]
        #local i=i+1;
      #end
    }
  }
  #local T2=sqrt(3)/2;
  radial 
  pigment_map{
    [1/3 B translate<.5,0,-T2>]
    [1/3 B translate<-1,0,0>]
    [2/3 B translate<-1,0,0>]
    [2/3 B translate<.5,0,T2>]
  }
  translate x 
  warp{repeat 1.5*x flip x}
  warp{repeat .5*sqrt(3)*z flip z}
#end

plane {y 0 pigment {Arabesque(91671) turbulence 0 rotate 0} finish {ambient 1}}
camera {location 5*y sky z look_at 0}


Post a reply to this message

From: Sander
Subject: Re: A little something fun to play with
Date: 19 Apr 2001 04:26:30
Message: <MPG.1548bfb6c0e6737a989744@NEWS.POVRAY.ORG>
In article <slr### [at] fwicom>, Ron Parker says...
> A little something I've been messing around with... try different numbers
> for the 91671 in the second-to-last line.  Requires some flavor of MegaPOV
> (though if you don't have MegaPOV you can still play... just delete the
> pigment called C and replace the [.05 C] with [.05 rgb 1] )
> 
It's neat! I don't grasp the code, but why does the pattern widen 
towards the left?
-- 
Regards,  Sander


Post a reply to this message

From: Warp
Subject: Re: A little something fun to play with
Date: 19 Apr 2001 05:09:25
Message: <3adeab44@news.povray.org>
For a nice variation, try replacing the plane with this one:

plane
{ y 0 pigment {Arabesque(91671) warp{black_hole 0,3 strength -1}}
  finish {ambient 1}}


-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

From: Geoff Wedig
Subject: Re: A little something fun to play with
Date: 19 Apr 2001 07:59:14
Message: <3aded312@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:

> A little something I've been messing around with... try different numbers
> for the 91671 in the second-to-last line.  Requires some flavor of MegaPOV
> (though if you don't have MegaPOV you can still play... just delete the
> pigment called C and replace the [.05 C] with [.05 rgb 1] )

Very, very clever.  I like it a lot.  Looking over the code, I can see how
it's done, but not how you came up with it.  Changing from a material map to
a pigment map could easily allow for all kinds of tiling patterns.

Now I want to do an Arabian Nights style image.... ;)

Geoff


Post a reply to this message

From: Ron Parker
Subject: Re: A little something fun to play with
Date: 19 Apr 2001 09:21:00
Message: <slrn9dtpht.efv.ron.parker@fwi.com>
On 19 Apr 2001 07:59:14 -0400, Geoff Wedig wrote:
>Very, very clever.  I like it a lot.  Looking over the code, I can see how
>it's done, but not how you came up with it.  

Well, the inspiration came from a paper I ran across, about a third of the
way down this page: 
http://www.iro.umontreal.ca/~ostrom/publications/abstracts.html
under the heading "Mathematical Tools for Computer-Generated Ornamental 
Patterns."

The actual implementation was ripped off from my hextiles pattern of long
ago, which I'd been working on this week for unspecified reasons.  The
combination of the two gave rise to this.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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