|
|
It helps if I include the code...Sorry
Wil Hale
SAIC
wil### [at] cal-businesscom
#version 3.1
file://scale 1 unit = 1 foot
#include "colors.inc"
global_settings
{
assumed_gamma 1.0
}
// ----------------------------------------
camera
{
location <-30.0, 16, -50.0>
direction 1.5*z
right 4/3*x
look_at <0.0, 10.0, 0.0>
}
sky_sphere
{
pigment
{
gradient y
color_map { [0.0 color blue 0.6] [1.0 color rgb 1] }
}
}
light_source // Upstairs
Light
{ //
0*x // light's position (translated below) //
color red 1.0 green 1.0 blue 1.0 // light's color //
translate <-0, 15, -0>
}
// ----------------------------------------
plane { y, -0 pigment {color rgb <0.7,0.5,0.3>}}
file://Floor
// create a box that extends between the 2 specified points
box
{
<-12, -0.2, -12> // one corner position <X1 Y1 Z1>
< 12, 0.2, 12> // other corner position <X2 Y2 Z2>
pigment { rgb <0,1,0>}}
file://left wall
difference{
box
{
<-12, 0.2, -12> // one corner position <X1 Y1 Z1>
< -11.6, 10, 12> // other corner position <X2 Y2 Z2>
texture{ pigment {rgb <1,1,0>}
// texture pigment {} attribute
// create a texture that lays an image's colors onto a surface
// image maps into X-Y plane from <0,0,0> to <1,1,0>
normal{
bumps 5 }scale 20
rotate y*90} // image_map
}
file://window
box
{
<-12.2, 4, -3> // one corner position <X1 Y1 Z1>
< -11.2, 6, 0> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
box
{
<-12.2, 4, 0.1> // one corner position <X1 Y1 Z1>
< -11.2, 6, 3> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
box
{
<-12.2, 6.1, -3> // one corner position <X1 Y1 Z1>
< -11.2, 8, 0> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
box
{
<-12.2, 6.1, 0.1> // one corner position <X1 Y1 Z1>
< -11.2, 8, 3> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
}
file://right wall
box
{
<12, 0.2, -12> // one corner position <X1 Y1 Z1>
< 11.6, 10, 12> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
file://***************************back wall and doorways
difference{
box
{
<-12, 0.2, 12> // one corner position <X1 Y1 Z1>
< 12, 10, 11.6> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
file://back door doorway
box
{
<-10, 0.1, 12.2> // one corner position <X1 Y1 Z1>
< -7, 8, 11.2> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}} }
file://****************************Front wall and doorways
file://front wall
difference{
box
{
<-12, 0.2, -12> // one corner position <X1 Y1 Z1>
< 12, 10, -11.6> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
file://left doorway
box
{
<-10, 0.1, -12.2> // one corner position <X1 Y1 Z1>
< -2, 8, -11.2> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
file://right doorway
box
{
<10, 0.1, -12.2> // one corner position <X1 Y1 Z1>
< 2, 8, -11.2> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}} }
file://**************************************************end front wall
file://Ceiling
box
{
<-12, 9.8, -12> // one corner position <X1 Y1 Z1>
< 12, 10.2, 12> // other corner position <X2 Y2 Z2>
pigment { rgb <0,1,0>}}
// create a regular point light source //
Downstairs Light
light_source //
{ //
0*x // light's position (translated below)
color red 1.0 green 1.0 blue 1.0 // light's color
translate <-0, 9, -0>
}
file://******************************************************************sec
ond story
file://left wall
difference{
box
{
<-12, 10.2, -12> // one corner position <X1 Y1 Z1>
< -11.6, 18, 12> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
box
{
<-122, 12, -9> // one corner position <X1 Y1 Z1>
< -11.4, 16, 9> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}}
file://right wall
box
{
<12, 10.2, -12> // one corner position <X1 Y1 Z1>
< 11.6, 18, 12> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
file://back wall
box
{
<-12, 10.2, 12> // one corner position <X1 Y1 Z1>
< 12, 18, 11.6> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
file://front wall
difference{
box
{
<-12, 10.2, -12> // one corner position <X1 Y1 Z1>
< 12, 18, -11.6> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
box
{
<-8, 12, -12.2> // one corner position <X1 Y1 Z1>
< 8, 16, -11.4> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}} }
file://************************************roof
difference{
box
{
<-9, -9, -12> // one corner position <X1 Y1 Z1>
< 9, 9, 12> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}
file://rotate x*90
rotate z*45}
box
{
<-14, -14, -12.2> // one corner position <X1 Y1 Z1>
< 14, 14, 12.2> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}
translate -y*14}
box
{
<-8.8, -8.8, -12> // one corner position <X1 Y1 Z1>
< 8.8, 8.8, 12> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}
file://rotate x*90
rotate z*45}
file://skylight
box
{
<-18.8, 5, -1> // one corner position <X1 Y1 Z1>
< 18.8, 9.5, 1> // other corner position <X2 Y2 Z2>
pigment { rgb <1,1,0>}}
translate y*18}
Lt. Kettch <AKK### [at] aolcom> wrote in message
news:39696E4E.6971BF0C@aol.com...
> Lets say I have a box that has a smaller box cut out of it, I.E. a room.
> The room also has a window. But when I put a light in the room, it does
> not show through the window. But it does seem to go through walls. What
> is wrong? Could some one post some code for me to paste in?
>
> --
> "Yub-Yub!" Lt. Kettch
>
>
Post a reply to this message
|
|