POV-Ray : Newsgroups : povray.binaries.images : Lame Short Code Contest attempt Server Time
11 Aug 2024 21:21:32 EDT (-0400)
  Lame Short Code Contest attempt (Message 18 to 27 of 27)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Christopher James Huff
Subject: Re: Lame Short Code Contest attempt
Date: 23 Feb 2004 11:35:44
Message: <cjameshuff-D54816.11362823022004@news.povray.org>
In article <403### [at] hotmailcom>,
 andrel <a_l### [at] hotmailcom> wrote:

> #declare f=function{pigment{mandel 999interior 1,1translate-.17
> color_map{[0rgb 0][1rgb 1]}scale 2}}light_source{y*.2rgb
> 1}height_field{function 999,999{f(x,y,z).gray*.1}pigment{rgb
> 1}translate-.5}camera{rotate x*45translate-.7*z}

Replace ".gray" with ".hf" to save two characters.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

From: Dan P
Subject: Re: Lame Short Code Contest attempt
Date: 23 Feb 2004 11:41:48
Message: <403a2d4c$1@news.povray.org>
"Christopher James Huff" <cja### [at] earthlinknet> wrote in message
news:cjameshuff-D54816.11362823022004@news.povray.org...
> In article <403### [at] hotmailcom>,
>  andrel <a_l### [at] hotmailcom> wrote:
>
> > #declare f=function{pigment{mandel 999interior 1,1translate-.17
> > color_map{[0rgb 0][1rgb 1]}scale 2}}light_source{y*.2rgb
> > 1}height_field{function 999,999{f(x,y,z).gray*.1}pigment{rgb
> > 1}translate-.5}camera{rotate x*45translate-.7*z}
>
> Replace ".gray" with ".hf" to save two characters.

It's amazing, really, how much we learn from a Short Code contest.
Coming at things from a different angle can definitely serve as a great
learning tool!
Thanks, guys!!!


Post a reply to this message

From: Warp
Subject: Re: Lame Short Code Contest attempt
Date: 23 Feb 2004 18:28:48
Message: <403a8cb0@news.povray.org>
Dan P <dan### [at] yahoocom> wrote:
> I'm guessing you did it something like this:

  That doesn't have any blurring.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Tek
Subject: Re: Lame Short Code Contest attempt
Date: 24 Feb 2004 01:12:08
Message: <403aeb38$1@news.povray.org>
"Christopher James Huff" <cja### [at] earthlinknet> wrote in message
news:cjameshuff-D54816.11362823022004@news.povray.org...
> In article <403### [at] hotmailcom>,
>  andrel <a_l### [at] hotmailcom> wrote:
>
> > #declare f=function{pigment{mandel 999interior 1,1translate-.17
> > color_map{[0rgb 0][1rgb 1]}scale 2}}light_source{y*.2rgb
> > 1}height_field{function 999,999{f(x,y,z).gray*.1}pigment{rgb
> > 1}translate-.5}camera{rotate x*45translate-.7*z}
>
> Replace ".gray" with ".hf" to save two characters.

You can just use .x instead, since the rgb components are the same.
Somebody's not been reading my source closely enough ;)

-- 
Tek
www.evilsuperbrain.com


Post a reply to this message

From:
Subject: Re: Lame Short Code Contest attempt
Date: 24 Feb 2004 01:28:31
Message: <403aef0f@news.povray.org>
// +SP8 +EP8 +A0.1 +AM2 +R2 -FN

#declare f=function{pigment{mandel 1e3interior 1,1translate-.2
color_map{[0rgb 0][1rgb 1]}scale 2}}light_source{<0,.7.4>rgb
1}height_field{function 999,999{f(x,y,z).hf/9}pigment{rgb
1}translate.7*z-.5rotate-x*45}

// 19 additional characters saved: 63+61+58+31=210;
// (not counting newlines -- as one long line: 212 characters
// Sufficiently similar?

//    Sputnik


Post a reply to this message

From: Dan P
Subject: Re: Lame Short Code Contest attempt
Date: 24 Feb 2004 10:09:48
Message: <403b693c@news.povray.org>

news:403aef0f@news.povray.org...
> // +SP8 +EP8 +A0.1 +AM2 +R2 -FN
>
> #declare f=function{pigment{mandel 1e3interior 1,1translate-.2
> color_map{[0rgb 0][1rgb 1]}scale 2}}light_source{<0,.7.4>rgb
> 1}height_field{function 999,999{f(x,y,z).hf/9}pigment{rgb
> 1}translate.7*z-.5rotate-x*45}
>
> // 19 additional characters saved: 63+61+58+31=210;
> // (not counting newlines -- as one long line: 212 characters
> // Sufficiently similar?
>
> //    Sputnik

Wow, I'm fighting the temptation to redo my short-code entry and cut it in
half :-)


Post a reply to this message

From:
Subject: Re: Lame Short Code Contest attempt
Date: 25 Feb 2004 23:02:27
Message: <403d6fd3@news.povray.org>
// >>AAARGH!<<
// I had counted the characters by looking at the column
// indicator in the POV-Ray editor's status line with the
// edit cursor at the end of the line, but this number
// is [number of characters in line] + 1 !
//                                  ^^^^^
// Here is my new version, now 62+57+54+30 = 203 characters
// long (204 if single line) -- an improvement of 10 over my
// last post: 4 due to counting correctly, 6 really saved.
//
//   Sputnik

// +SP8 +EP8 +A0.1 +AM2 +R2 -FN
//       1         2         3         4         5   5  5  6 6
//345678901234567890123456789012345678901234567890123456789012
//                           !                       !  !    !
#declare f=function{pigment{mandel 1e3interior 1,1translate-.2
color_map{[0rgb 0][1rgb.1]}scale 2}}light_source{<0,.7.4>
1}height_field{function 999,999{f(x,y,z).x}pigment{rgb
1}translate.7*z-.5rotate-x*45}


Post a reply to this message

From: Mark Weyer
Subject: Re: Lame Short Code Contest attempt
Date: 2 Mar 2004 05:49:29
Message: <40446903.2040508@informatik.uni-freiburg.de>
>   Anyways, here's a lame attempt I was playing with. I will not send this
> one because it's so simple, so I'll just post it here and give my
> congratulations to the first who figures out how it is done (in 256 bytes).
> Extra bonus to anyone who posts a code creating a similar image (as
> similar as possible, of course). :)

Seeing that the challenge is still open, here is my attempt. Unfortunatlely
I am not adept enough with internal adresses to find out your coordintes by
just looking at your picture.

box{.4z-.7pigment{rgbt 1}interior{media{emission 9density{mandel
150color_map{[.1rgb z][.2rgb 0][.3rgb x][.4rgb 1-z][1rgb
1]}}translate<1.258.359.0>scale 200}}hollow}


-- 
merge{#local i=-11;#while(i<11)#local
i=i+.1;sphere{<i*(i*i*(.05-i*i*(4e-7*i*i+3e-4))-3)10*sin(i)30>.5}#end
pigment{rgbt 1}interior{media{emission x}}hollow}//  Mark Weyer


Post a reply to this message

From: Mark Weyer
Subject: Re: Lame Short Code Contest attempt
Date: 4 Mar 2004 12:37:01
Message: <40476B8F.90803@informatik.uni-freiburg.de>
> box{.4z-.7pigment{rgbt 1}interior{media{emission 9density{mandel
> 150color_map{[.1rgb z][.2rgb 0][.3rgb x][.4rgb 1-z][1rgb
> 1]}}translate<1.258.359.0>scale 200}}hollow}

And here is the picture

-- 
merge{#local i=-11;#while(i<11)#local
i=i+.1;sphere{<i*(i*i*(.05-i*i*(4e-7*i*i+3e-4))-3)10*sin(i)30>.5}#end
pigment{rgbt 1}interior{media{emission x}}hollow}//  Mark Weyer


Post a reply to this message


Attachments:
Download 'test.jpg' (27 KB)

Preview of image 'test.jpg'
test.jpg


 

From: Peter Popov
Subject: Re: Lame Short Code Contest attempt
Date: 6 Apr 2004 13:08:48
Message: <ckk570las0fdiiud5imq3gji8b5984eobg@4ax.com>
On 22 Feb 2004 07:04:49 -0500, Warp <war### [at] tagpovrayorg> wrote:

>congratulations to the first who figures out how it is done (in 256 bytes).

Someone supposed using mandle as a media density pattern. My guess is
this could also be done by averaging the same mandel pattern at
increasing zoom levels. I've used this technique for motion blur and
radial blur (both zoom and spin type).


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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