POV-Ray : Newsgroups : povray.binaries.images : Caleidoscope Server Time
16 Nov 2024 10:28:09 EST (-0500)
  Caleidoscope (Message 1 to 2 of 2)  
From: helge h
Subject: Caleidoscope
Date: 18 May 2005 20:00:01
Message: <web.428bd6baff2f06a594def9050@news.povray.org>
Just got this idea that I wanted to try, a simple caleidoscope. The code
shows use of patterns, but anything is possible of course. Enjoy!

Code:

#version 3.6;

global_settings {
 assumed_gamma 1.0
 max_trace_level 7
}

 camera {
 location -z*20
 direction 1.5*z
 right x*image_width/image_height
 look_at 0
}

light_source {
 <-10, 0, -10>
 color rgb <1,1,1>
}

#declare thePattern = texture {
 pigment {
  spiral2 6 // onion // cells // crackle // wood // agate
  color_map {
   [0.0 color rgb <1,1,0>]
   [0.5 color rgb <1,0,0>]
   [0.5 color rgb <0,1,1>]
   [1.0 color rgb <0,0,1>]
  }
  //turbulence 1
 }
 finish { diffuse 1 }
}

plane { -z, 0 texture { thePattern } }

union {
 box { <-2,1,-20>, <2,1.1,0> }
 box { <-2,1,-20>, <2,1.1,0> rotate z*120 }
 box { <-2,1,-20>, <2,1.1,0> rotate -z*120 }
 texture {
  pigment { color rgb <1,1,1> }
  finish {
   diffuse 0
   ambient 0
   reflection 1
  }
 }
 no_shadow
}


Post a reply to this message


Attachments:
Download 'caleidoscope.jpg' (206 KB)

Preview of image 'caleidoscope.jpg'
caleidoscope.jpg


 

From: bancquart sebastien
Subject: Re: Caleidoscope
Date: 19 May 2005 11:37:03
Message: <428cb29f$1@news.povray.org>
interesting.

And very nice looking.

Some animation could be performed by rotating the mirrors. Or the pattern. 
Or both ?



web.428bd6baff2f06a594def9050@news.povray.org...
> Just got this idea that I wanted to try, a simple caleidoscope. The code
> shows use of patterns, but anything is possible of course. Enjoy!
>
> Code:
>
> #version 3.6;
>
> global_settings {
> assumed_gamma 1.0
> max_trace_level 7
> }
>
> camera {
> location -z*20
> direction 1.5*z
> right x*image_width/image_height
> look_at 0
> }
>
> light_source {
> <-10, 0, -10>
> color rgb <1,1,1>
> }
>
> #declare thePattern = texture {
> pigment {
>  spiral2 6 // onion // cells // crackle // wood // agate
>  color_map {
>   [0.0 color rgb <1,1,0>]
>   [0.5 color rgb <1,0,0>]
>   [0.5 color rgb <0,1,1>]
>   [1.0 color rgb <0,0,1>]
>  }
>  //turbulence 1
> }
> finish { diffuse 1 }
> }
>
> plane { -z, 0 texture { thePattern } }
>
> union {
> box { <-2,1,-20>, <2,1.1,0> }
> box { <-2,1,-20>, <2,1.1,0> rotate z*120 }
> box { <-2,1,-20>, <2,1.1,0> rotate -z*120 }
> texture {
>  pigment { color rgb <1,1,1> }
>  finish {
>   diffuse 0
>   ambient 0
>   reflection 1
>  }
> }
> no_shadow
> }
>


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


Post a reply to this message

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