POV-Ray : Newsgroups : povray.binaries.images : SCC4 attempt : Re: SCC4 attempt Server Time
6 Aug 2024 14:15:38 EDT (-0400)
  Re: SCC4 attempt  
From: Alain
Date: 28 Nov 2006 21:12:21
Message: <456cec85@news.povray.org>
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


> 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

> 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

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