POV-Ray : Newsgroups : povray.binaries.animations : Hyperreflectivity : Re: Hyperreflectivity Server Time
17 May 2024 19:14:51 EDT (-0400)
  Re: Hyperreflectivity  
From: Graham
Date: 7 Nov 2009 07:25:00
Message: <web.4af564d9a45fcb66c2a157970@news.povray.org>
"Woody" <nomail@nomail> wrote:
> Interesting. Would you be willing to let me get a look at the source?

The source (which doesn't include the .inc file of the geometry - nearly 400
lines) is:

// Persistence of Vision Ray Tracer Scene Description File
// File: HyperReflectivity.pov
// Vers: 3.6
// Desc: Hyper Reflectivity Example using 200(CC)-sided shape
// Date: 01Oct2009
// Auth: Graham Dolby
// +800w +600h +kff360 +KC

#version 3.6;

#include "colors.inc" #include "dcc.inc"

global_settings { assumed_gamma 1.0 }

#declare R=32; //reflectivity factor and skysphere colour diminishing factor

camera{location z*-2.5 up y direction z right x*image_width/image_height look_at
0 rotate x*-30}

sky_sphere{pigment{gradient x+y-z
 color_map{[0/9 rgb x/R][1/9 rgb y/R][2/9 rgb z/R][3/9 rgb x/R][4/9 rgb y/R][5/9
rgb z/R][6/9 rgb x/R][7/9 rgb y/R][8/9 rgb z/R][9/9 rgb x/R]}}}

object{intersection{object{CCIc} object{CCTH} object{CCHI}} pigment{rgb 1}
finish{diffuse 0 specular 0.5 roughness 0 reflection {R}} rotate(360*clock)*y}

//end of file

You are welcome to replace the object with one of your own, and to see how this
looks for other values of R.

The .avi of this file (via VirtualDub at 10fps) weighs in at 506,267KB


Post a reply to this message

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