1// Persistence Of Vision Ray Tracer Scene Description File 2// File: balcony.pov 3// Vers: 3.5 4// Desc: Povray 3.5 demonstration scene 5// Date: July/August 2001 6// Auth: Christoph Hormann 7// 8// *********************************************************************** 9// 10// -------------------- 'balcony' demonstration scene -------------------- 11// 12// written July-August 2001 by Christoph Hormann <chris_hormann@gmx.de> 13// 14// demonstrates use of various new or changed features: 15// 16// - isosurface (for the rail columns) 17// - mesh2 object (table cloth) 18// - uv-mapping (table cloth) 19// - pattern image type (background heightfield) 20// - slope pattern (background heightfield) 21// - variable reflection (water & glass) 22// - metallic reflection 23// - conserve_energy 24// - function pattern (water) 25// - fading interior (water, drink) 26// - 'circular' and 'orient' area_light 27// - radiosity 28// - photons (objects on the table) 29// 30// *********************************************************************** 31// 32// Command line options: 33// 34// -w240 -h320 35// -w480 -h640 +a0.3 36// -w600 -h800 +a0.3 37 38/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 39 40#version 3.5; 41 42#include "functions.inc" 43#include "colors.inc" 44 45/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 46 47#declare AreaLight=on; 48#declare Radiosity=on; 49#declare Photons=on; 50#declare TestLight=off; 51#declare show_Fog=true; 52#declare show_Water=true; 53#declare show_Terrain=true; 54#declare show_Building=true; 55#declare show_Table=true; 56#declare show_TableCloth=true; 57#declare show_Chair=true; 58#declare show_Table_Stuff=true; 59 60/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 61 62global_settings{ 63 max_trace_level 15 64 assumed_gamma 1 65 66 #if (Radiosity=on) 67 radiosity{ 68 pretrace_start 0.08 69 pretrace_end 0.01 70 count 130 71 nearest_count 5 72 error_bound 0.3 73 74 recursion_limit 1 75 low_error_factor 0.5 76 gray_threshold 0.0 77 minimum_reuse 0.015 78 brightness 1.0 79 adc_bailout 0.01/2 80 normal on 81 } 82 #end 83 84 #if (Photons=on) 85 photons { 86 spacing 0.002 87 } 88 #end 89 90} 91 92/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 93 94camera { 95 location <0.5, 0.5, 1.2> 96 direction y 97 sky z 98 up z 99 right (3/4)*x 100 look_at <5, 4.3, 0.9> 101 angle 36 102} 103 104/* 105camera { // table detail camera 106 location <1.5, 1.5, 1.0> 107 direction y 108 sky z 109 up z 110 right (4/3)*x 111 look_at <3.3,2.52,0.5> 112 angle 30 113} 114*/ 115 116/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 117 118 119#if (TestLight=on) 120 light_source { 121 <2, 2, 2> 122 color rgb 0.7 123 } 124#end 125 126 127light_source { 128 <3.0, -2.5, 2.6>*10000 129 color rgb <3.43,2.87,1.95> 130 #if (AreaLight=on) 131 area_light 400*x 400*y 4,4 132 jitter 133 circular 134 orient 135 #end 136 137 photons { 138 reflection on 139 refraction on 140 } 141} 142 143 144#if (show_Fog) 145 146fog{ 147 fog_type 2 148 fog_alt 1.2 149 fog_offset 0 150 color rgbt <0.60, 0.68, 0.82, 0.0> 151 distance 700 152 up z 153} 154 155#end 156 157/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 158 159#include "sky.inc" 160 161/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 162 163#if (show_Water) 164 #include "water.inc" 165#end 166 167/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 168 169#if (show_Building) 170 #include "building.inc" 171#end 172 173 174/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 175 176#if (show_Terrain) 177 #include "terrain.inc" 178#end 179 180/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 181 182#if (show_Table) 183 #include "table.inc" 184#end 185 186#if (show_TableCloth) 187 #include "table_cloth.inc" 188#end 189 190#if (show_Table_Stuff) 191 #include "table_stuff.inc" 192#end 193 194/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 195 196#if (show_Chair) 197 #include "chair.inc" 198#end 199 200/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/ 201 202