POV-Ray : Newsgroups : povray.binaries.images : Quiz Server Time
2 Oct 2024 12:25:01 EDT (-0400)
  Quiz (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: Warp
Subject: Quiz
Date: 10 May 2000 07:32:22
Message: <391948c4@news.povray.org>
Guess how these images have been made (answers in reply):


Post a reply to this message


Attachments:
Download 'image1.jpg' (23 KB) Download 'image2.jpg' (41 KB) Download 'image3.jpg' (40 KB)

Preview of image 'image1.jpg'
image1.jpg

Preview of image 'image2.jpg'
image2.jpg

Preview of image 'image3.jpg'
image3.jpg


 

From: Warp
Subject: Re: Quiz
Date: 10 May 2000 07:33:43
Message: <39194917@news.povray.org>
Image 1:

intersection
{ cylinder { -x,x,1 }
  cylinder { -y,y,1 }
  cylinder { -z,z,1 }
  cylinder { <-1,-1,-1>< 1, 1, 1>,1 }
  cylinder { < 1,-1,-1><-1, 1, 1>,1 }
  cylinder { <-1, 1,-1>< 1,-1, 1>,1 }
  cylinder { < 1, 1,-1><-1,-1, 1>,1 }
}

  Image 2:

union
{ #declare Angle=0;
  #while(Angle<360)
    torus { 1,.05 rotate z*45 translate -x*.3 rotate y*Angle }
    #declare Angle=Angle+30;
  #end
}

  Image 3:

union
{ #declare Angle=0;
  #while(Angle<360)
    union
    { cylinder { <0,-1,-.75>, <.75,1,.5>, .025 }
      cylinder { <0,-1,-.75>, <-.75,1,.5>, .025 }
      rotate y*Angle
    }
    #declare Angle=Angle+10;
  #end
  torus { .75, .025 translate -y }
  torus { vlength(<.75,0,.5>), .025 translate y }
}


-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Paul Daniel Jones
Subject: Re: Quiz
Date: 10 May 2000 08:21:52
Message: <39195462.968DE183@psu.edu>
>   Image 3:
>
> union
> { #declare Angle=0;
>   #while(Angle<360)
>     union
>     { cylinder { <0,-1,-.75>, <.75,1,.5>, .025 }
>       cylinder { <0,-1,-.75>, <-.75,1,.5>, .025 }
>       rotate y*Angle
>     }
>     #declare Angle=Angle+10;
>   #end
>   torus { .75, .025 translate -y }
>   torus { vlength(<.75,0,.5>), .025 translate y }
> }

any reason for using vlength??

-paul
--
-------------------------------------------#
Paul Daniel Jones
307 Chandlee Laboratory
Penn State University
814-865-2090
pdj### [at] psuedu

http://research.chem.psu.edu/glassgrp/paul
--------------------------------------------#


Post a reply to this message

From: TonyB
Subject: Re: Quiz
Date: 10 May 2000 09:15:28
Message: <391960f0@news.povray.org>
I was going to guess "CSG", but then you posted the answers. I think you're
supposed to keep us guessing for little while before you do that. :)


Post a reply to this message

From: Mike Weber
Subject: Re: Quiz
Date: 10 May 2000 09:49:18
Message: <391968de$1@news.povray.org>
with povray.

--
Mike

wk: mik### [at] pyxiscom  www.pyxis.com
hm: mwe### [at] sciticom  www.geocities.com/mikepweber


"Warp" <war### [at] tagpovrayorg> wrote in message
news:391948c4@news.povray.org...
>   Guess how these images have been made (answers in reply):
>
>


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


>
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Warp
Subject: Re: Quiz
Date: 10 May 2000 10:18:09
Message: <39196fa1@news.povray.org>
Paul Daniel Jones <pdj### [at] psuedu> wrote:
:>   torus { vlength(<.75,0,.5>), .025 translate y }

: any reason for using vlength??

  Yes: Laziness.

  It was easier than calculating sqrt(.75^2+.5^2) = .9013878188 and putting
that (inaccurate) result there.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Markus Becker
Subject: Re: Quiz
Date: 10 May 2000 11:31:37
Message: <391981B0.FFDABB4@student.uni-siegen.de>
Warp wrote:
> 
>   Guess how these images have been made (answers in reply):

With a raytracer perhaps?

SCNR

Markus


Post a reply to this message

From: Mike Weber
Subject: Re: Quiz
Date: 10 May 2000 11:58:39
Message: <3919872f$1@news.povray.org>
or... a computer?

--
Mike

wk: mik### [at] pyxiscom  www.pyxis.com
hm: mwe### [at] sciticom  www.geocities.com/mikepweber


"Markus Becker" <mar### [at] studentuni-siegende> wrote in message
news:391### [at] studentuni-siegende...
> Warp wrote:
> >
> >   Guess how these images have been made (answers in reply):
>
> With a raytracer perhaps?
>
> SCNR
>
> Markus


Post a reply to this message

From: Henry
Subject: Re: Quiz
Date: 10 May 2000 12:15:46
Message: <htp-5B7363.01453911052000@news.povray.org>
Warp,

Thanks for that - much appreciated!

I don't know about anyone else, but my brain is extremely receptive to 
the "simple example, then code" method of teaching, and those three 
examples were right on the mark.

Anyone know of a website out there which has more of this sort of stuff, 
presented in this fashion?

I checked your VFAQ which pointed to:
  http://www.povray.org/links/
         POV-Ray_Include_Macro_and_Object_Files/
         Object_and_Scene_Files/
...but decriptions like "POV-Ray scene files and objects -Misc" doesn't 
really do much to inspire _my_ imagination.

A two-column table.  Simple image on the left, code snippet on the 
right.  That's all I'm after.

Thanks again.

Henry.


Post a reply to this message

From: Chris Huff
Subject: Re: Quiz
Date: 10 May 2000 16:35:49
Message: <chrishuff_99-7456EB.15391010052000@news.povray.org>
In article <39196fa1@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Yes: Laziness.
> 
> It was easier than calculating sqrt(.75^2+.5^2) = .9013878188 and 
> putting that (inaccurate) result there.

I wouldn't call it laziness, I would say it is good style. It allows you 
to easily change the code later for different parameters, and there 
isn't any reason not to use an available function for it's intended 
purpose.
Oh, and in MegaPOV, "sqrt(0.75^2 + 0.5^2)" would work just fine(the ^ 
operator has been added), and you could use "sqrt(pow(0.75, 2) + 
pow(0.5, 2))" in official POV.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://chrishuff.dhs.org/
TAG Web page: http://tag.povray.org/


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

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