Fountain by Peterson Trethewey

global_settings{photons{count 1e6}}camera{location (x+y-z)/2look_at y/5}light_source{ .5}difference{box{-z 1inverse}sphere{.4*y.03}pigment{rgb<1.1,1,1>}normal{agate scale.01}}#macro F()pigment{rgbf 1}finish{ior 1.3reflection{0,1}}photons{target reflection 1refraction 1}}#end#local p=function{.1+sin(90*sqrt(x*x+z*z)-13.86*pi*clock)/(4+40*(x*x+z*z))/100}merge{isosurface{function{(y-p(x-.172,y,z)-p(x+.172,y,z))}}torus{.4.02rotate x*90scale x/2normal{bumps scale.01rotate -clock*z*356.4scale x/2}F()F()

Still Images

About

This video was produced by rendering the following 510 bytes of code with POV-Ray:

This Video is part of the POV-Ray Short Code Contest #5 which was originally published by Paul Bourke in 2008. This page shows a new re-rendering of the original POV-Ray source code at a higher resolution, although here and there some miniscule syntactic changes had to be made to the code in order to get POV-Ray 3.7 to parse it.

Author's Comment

I started out the fountain with lofty ideas about a particle system with a blob around it to make the water. After coding that up, I quickly realized that the stream of water needed some kind of context. I got the idea that the animation could loop, so I tried having the stream pour into a rippling body of water, but after tinkering with that for a while, it began to look like just barely too many characters, and I didn't even have a background yet or a place for the water to come out. By then, the particle system seemed unnecessary, so I got started dreaming up ways to fake it. A small enough arc of an ellipse could be mistaken for a parabola, I figured, so I replaced the stream with a scaled torus and rotated the normal map with the clock to give the illusion of flow. That looked just as good as I was ever able to get the particles to look anyway, so I scratched the particle idea. For an extra bang, the movie automatically loops, because the torus makes an almost full rotation in the space of the animation. With my newfound character real estate I commenced to cranking up the realism. I added photons, a texture to the wall, a hole where the water comes out and the additional copy of the wave form to get the effect of the wave bouncing off the back wall and interfering with itself. When I reached 510 characters, I stopped.

Metadata

SCC Award 3rd place winner Author: Peterson Trethewey Author's Website: medium.com/@petersontrethewey Submission ID: thbqad Source Filesize: 510 Bytes Source Page: SCC5 Source Code: long | short

Render Process

Frames: 120 Pixels: 230 400 000 Rays: 3 039 720 742 CPU-Seconds: 206 237

Links