POV-Ray : Newsgroups : povray.text.scene-files : ?--- : Re: ? Server Time
8 Jul 2024 12:01:02 EDT (-0400)
  Re: ?  
From: autowitch
Date: 16 Jul 2001 11:03:32
Message: <3b530244@news.povray.org>
Gary Thompson's quine page has an example that uses #debug to output itself
to the message window.
http://www.nyx.net/~gthompso/self_pov.txt

Here's the code for it:

#declare e="#declare e=#debug
concat(substr(e,1,11),chr(34),e,chr(34),substr(e,12,71))box{x y}"
#debug concat(substr(e,1,11),chr(34),e,chr(34),substr(e,12,71))box{x y}

- autowitch

"Warp" <war### [at] tagpovrayorg> wrote in message
news:3b4f7f82@news.povray.org...
> Ron Parker <ron### [at] povrayorg> wrote:
> : I was disappointed, though.  I'd hoped it would be self-referential,
like
> : mine was.
>
>   Self-referential is nothing. If you want a real challenge, try making
> a povray code which renders itself (ie. the source code itself).
>   (You can use timrom.ttf for that.)
>
> --
> #macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
> rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
> ],13),8)-3,10>#end blob{N(array[6]{11117333955,
> 7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

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