|
![](/i/fill.gif) |
I want to create a wall that mimics the reflectiveness of a building that has
mirrored glass on the outside. The real effect I would like is the glint when
you happen to catch the sun as it passes (or you move quickly as in a car)
Can anyone make suggestions for my code, or help me start from scratch if I'm
going the wrong way?
Thank in advance.
Leef_me
#version 3.6;
#include "colors.inc"
//global_settings {
// assumed_gamma 1.0
// max_trace_level 5
//}
camera {
#if(1) // normal view
location <0.0, 0,7>
look_at <0.0, 0.0, 0>
#else // top view
location <0.0, 20,5.5>
look_at <0.0, 0.0, 2>
#end
}
#if(1)
light_source {
<0, 0, 9> // light's position (translated below)
color rgb <1, 1, 1> // light's color
translate <-12+frame_number/2,+12-frame_number/2,0>
}
#end
// the diffuse setting seems to allow for a spot effect
#declare mirror_texture = texture {
pigment {
color rgb <1,1,1>
}
finish { reflection {1} ambient .0 diffuse .6
// finish { reflection {1} ambient 0 diffuse 0
}
}
#if(0)
// Create an infinite sphere around scene
// and allow any pigment on it
sky_sphere {
pigment {
gradient y
color_map { [0.0 color rgb <0.7,0.7,1.0>] [1.0 color blue 0.5] }
}
}
#end
#if(1) // create a grid of mirrors, each rotated slightly
#declare y1 = -5;
#declare y2 = 5;
#while (y1<=y2)
#declare x1 = -5;
#declare x2 = 5;
#while (x1<=x2)
//mirror box
box { 0,1
rotate<y1,x1,0>
scale .9
translate <x1,y1,-10>
texture {mirror_texture}
}
#declare x1 = x1+1;
#end
#declare y1 = y1+1;
#end
#else // or create one larger mirror
box { -5,5
scale <1,1,.01>
translate <0,0,-10.>
texture {mirror_texture}
}
#end
//mirror frame, to help identify where the mirror is located
box { -8,8
scale <1,1,.01>
translate <0,0,-10.1>
pigment { color Red}
}
#if(1) // select a solid white area, later will use a picture
box { 0,1
#if(1)
pigment { color White}
#else
pigment { image_map { jpeg "wcleaves.jpg" } scale 1 }
#end
scale <20,20,.01>
translate <-10,-10,10>
}
#end
Post a reply to this message
|
![](/i/fill.gif) |