|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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'
Preview of image 'image2.jpg'
Preview of image 'image3.jpg'
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> 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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote:
>
> Guess how these images have been made (answers in reply):
With a raytracer perhaps?
SCNR
Markus
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|