|
 |
It's always the simplest things... (facepalm)
I was just fiddling with the very beginnings of something, and of course it's
all gone off the rails for no reason that I can see.
Perhaps someone can tell me why my WHITE boxes in a WHITE scene with a WHITE
light source are .... anything but.
#version 3.71;
global_settings {
assumed_gamma 1.0
}
/*
#default {
texture {
pigment {rgb <1, 1, 1>*0}
finish {specular 0.4}
}
}
*/
//background {rgb <1, 1, 1>}
sky_sphere {pigment {rgb <1, 1, 1>}}
#include "colors.inc"
#include "functions.inc"
#include "rand.inc"
camera {
location <7, 40, -48> // position & direction of view
look_at <7, 18, 0>
right 1*x // horizontal size of view
up 1*y // vertical size of view
}
light_source {<10, 50 -100> color White}
// 24 x 16 x 12
#declare Width = 24;
#declare Depth = 16;
#declare Height = 12;
#declare Line = 0.25;
#declare Origin = <0, 0, 0>;
#declare X = x*Width;
#declare Y = y*Height;
#declare Z = z*Depth;
#declare BoxTex = texture {pigment {rgb <1, 1, 1>} finish {diffuse 0}}
#declare PerspectiveBox =
union {
sphere {Origin, Line}
sphere {Origin+Z, Line}
cylinder {Origin, Origin+Z, Line}
sphere {Origin+X, Line}
cylinder {Origin, Origin+X, Line}
sphere {Origin+Y, Line}
cylinder {Origin, Origin+Y, Line}
sphere {Origin+Z+Y, Line}
cylinder {Origin+Z, Origin+Z+Y, Line}
sphere {Origin+X+Y, Line}
cylinder {Origin+X, Origin+X+Y, Line}
sphere {Origin+X+Y+Z, Line}
cylinder {Origin+Y, Origin+Z+Y, Line}
cylinder {Origin+Y, Origin+X+Y, Line}
cylinder {Origin+Z+Y, Origin+X+Y+Z, Line}
cylinder {Origin+X+Y, Origin+X+Y+Z, Line}
union {
box {Origin, Origin+X+Z}
box {Origin, Origin+X+Z translate Y}
box {Origin, Origin+X+Y}
box {Origin, Origin+X+Y translate Z}
box {Origin, Origin+Y+Z}
box {Origin, Origin+Y+Z translate X}
texture {BoxTex}
}
}
union {
object {PerspectiveBox}
object {PerspectiveBox translate <2, 16, 2>}
rotate -y*30
}
Post a reply to this message
|
 |