POV-Ray : Newsgroups : povray.binaries.images : SCC4 attempt : Re: SCC4 attempt Server Time
5 Nov 2024 08:27:35 EST (-0500)
  Re: SCC4 attempt  
From: Bruno Cabasson
Date: 29 Nov 2006 06:20:00
Message: <web.456d6ccb668dedc1f5fba6ef0@news.povray.org>
Thanks you all for encouragement. This principle of having a pigmented
background with a highly refractive glass with a patterned normal can be
endlessly derived and I found it quite efficient in colors and shape wrt
amount of code!

Here is another variation I did not choose as an entry (but I hesitated
....):

plane
{
    z,9
    pigment
    {
        hexagon rotate 90*x
    }
    finish{ambient 3}
}

union
{
    torus
    {
        .25,.25
        pigment {rgbt 1}
        normal {quilted scale .1}
        interior {ior 5 dispersion 5 dispersion_samples 99}
    }
    torus{.7,.2 scale y/9}
    rotate 90*x
    translate z
}


Alain <ele### [at] netscapenet> wrote:
> Stephen nous apporta ses lumieres en ce 27/11/2006 10:56:
> > "Bruno Cabasson" <bru### [at] alcatelaleniaspacefr> wrote:
> >> Hello POVers!
>
> >> I tried some ideas for the SCC4. Here is a attempt (not my entry, so I can
> >> share it now) with the following (verbose) code:
>
> >> plane
> >> {
> >>     z,9
> >>     pigment
> >>     {
> >>         checker x+y z
> >>     }
> >>     finish{ambient 1.5}
> >> }
> >> cylinder
> >> {
> >>     z,8*z, .5
> >>     pigment {rgbt 1}
> >>     normal{spiral2 5}
> >>     interior {ior 1.3 dispersion 2 dispersion_samples 99}
> >> }
> >> torus{.7,.2 pigment{rgb 0} scale y/9 rotate 90*x translate z}
>
> > I like this it is pretty and colourful
> > I had a look at your code and although I’m no coder…
>
> > By removing the line feeds and extra spaces I got the size down to 244
> > charters, and by changing the torus to a disc, down to 200 charters. If you
> > change the plane’s ambient to 2 you save a further two charters. This is fun
> > I see the attraction of the contest :-)
> > disc {
> > 0,z,2,0.4
> > pigment{rgb 0}
> > translate z
> > }
>
> > Stephen
>
> You can reduce it still further like this:
> disc{0,z,2,.4 translate z}// you save another 14 characters
> No need for the pigment as the default IS rgb 0!
>
> --
> Alain
> -------------------------------------------------
> Always try to be modest, and be proud of it!


Post a reply to this message


Attachments:
Download 'ucb5.jpg' (126 KB)

Preview of image 'ucb5.jpg'
ucb5.jpg


 

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