File:Simple house with pov ray 2 r 1.png
Original file (1,600 × 1,200 pixels, file size: 2.35 MB, MIME type: image/png)
Captions
Summary
[edit]DescriptionSimple house with pov ray 2 r 1.png |
English: Simple house |
Date | |
Source | Own work |
Author | Merikanto |
POV-Ray 3.7 source code
//
// simple house . from boxes and prisms
//
// POV-Ray 3.7 source code
//
// 6.8.2023 v 0000.0005
//
- include "colors.inc"
- include "textures.inc"
- include "metals.inc"
- include "glass.inc"
- include "stones.inc"
- include "woods.inc"
- declare sel_radiosity=1;
- declare sel_photons=0;
global_settings { ambient_light <1,1,1>*0
- if (sel_radiosity=1)
radiosity
{
pretrace_start 64/image_width
pretrace_end 8/image_width
count 120
nearest_count 20
error_bound .5
recursion_limit 3
}
- end
#if (sel_photons=1)
photons {
count 1000
media 100
// expand_min 40
gather 20, 100
jitter 0.4
media 0
}
#end
}
background { color <1,1,1.2>*0.8 }
camera {
//location <3, 10, -10>*20
//location <3, 5, -10>*30
location <3, 2, -10>*20
// location <5, 0.1, -1>*50
// location <5, 2, -5>*50
// location <1, 10, 1>*50
// location <1, 15, -10>*50
// location <8, 1, 7>*40
look_at <0, 8, 0>
angle 25
}
light_source { <10, 10, -15>*1000*1000*200 color White*2
#if (sel_photons=1)
photons {
refraction on
reflection on
}
#end
}
//light_source { <1, 5, 5> color White*1}
//light_source { <5, 15, 15> color White*1}
plane {
y,0
texture {
pigment { wrinkles color_map { [0 rgb <0,1,0> ][1 rgb <0,5/6,0> ] } }
normal { wrinkles scale 0.1 bump_size 0.4 }
}
}
- declare basetex1= texture {
T_Stone1
scale 0.01
}
- declare walltex1= texture {
T_Stone12
scale 0.01
normal {granite bump_size 10 }
finish {reflection 0}
}
- declare floortex1= texture {
T_Wood3
scale 0.01
}
- declare rooftex1=
texture {
T_Wood12
scale 0.01
normal {hexagon bump_size 100 scale 0.1}
}
- declare chimneytex1=
texture {
T_Stone22
scale 0.01
normal {
brick
bump_size 100
scale 0.05
}
}
#declare doortex1= texture {pigment {color Red/5}}
- declare house2= union {
object {
union {
box {<-10,0,-20>,<10,1,20> }
box {<10,0,-5>,<17,0.5,5> }
box {<17,0,-3>,<20,0.5,3> }
}
texture { basetex1}
}
//outer walls , first floor
object {
difference {
box {<-10,1,-20>,<-9,10,20> }
box {<-8,2,-15>,<-12,6,-10> } // window 1
box {<-8,2,10>,<-12,6,6> } // window 2
}
texture { walltex1}
}
object {
// union {
difference {
box {<9,1,-20>,<10,10,20> } // wall
box {<8,2,-15>,<12,6,-10> } // window 1
box {<8,2,10>,<12,6,6> } // window 2
box {<8,0,-2>,<12,7,2> } // door hole
}
texture { walltex1}
}
object {
box {<-9.5,2,-15>,<-10,6,-10> }
material {M_Glass}
}
object {
box {<-9.5,2,10>,<-10,6,6> }
material {M_Glass}
}
// windows ...
union {
box {<9.5,2,-15>,<10,6,-10> }
material {M_Glass}
}
union {
box {<9.5,2,10>,<10,6,6> }
material {M_Glass}
}
// door
object {
box {<9,0,-2>,<10,7,2> }
texture { T_Wood2}
}
object {
difference {
box {<-9,1,-20>,<9,10,-19> }
box {<-2,2,-21>,<2,6,-18> }
}
texture { walltex1 rotate y*90}
}
object {
box {<-2,2,-20>,<2,6,-19.5> }
material {M_Glass}
}
object {
difference {
box {<-9,1,19>,<9,10,20> }
box {<-3,2,21>,<3,6,18> }
}
texture { walltex1 rotate y*90}
}
object {
box {<-3,2,20>,<3,6,19.5> }
material {M_Glass}
}
// first roof, second floor
object {
box {<-9,9,-19>,<9,10,19> }
texture {floortex1}
}
//outer walls , second floor
object {
difference {
box {<-10,10,-20>,<-9,20,20> }
box {<-8,12,-15>,<-12,16,-10> } // window 1
box {<-8,12,9>,<-12,16,5> } // window 2
}
texture { walltex1}
}
object {
box {<-9.5,12,-15>,<-10,16,-10> }
material {M_Glass}
}
object {
box {<-9.5,12,9>,<-10,16,5> }
material {M_Glass}
}
object {
union {
difference
{
box {<9,10,-20>,<10,20,20> }
box {<8,12,-15>,<12,16,-10> } // window 1
box {<8,12,9>,<12,16,5> } // window 2
}
object {
box {<9.5,12,-15>,<10,16,-10> }
material {M_Glass}
}
object {
box {<9.5,12,9>,<10,16,5> }
material {M_Glass}
}
}
texture { walltex1}
}
object {
union {
difference {
box {<-9,10,-20>,<9,20,-19> }
box {<-2,13,-22>,<2,17,-18> }
texture { walltex1 rotate y*90}
}
object {
box {<-2,13,-20>,<2,17,-19.5> }
material {M_Glass}
}
}
}
object {
difference {
box {<-9,10,19>,<9,20,20> }
box {<-3,12,21>,<3,16,18> }
}
texture { walltex1 rotate y*90}
}
object {
box {<-3,12,20>,<3,16,19.5> }
material {M_Glass}
}
// second roof
object {
box {<-9,19,-19>,<9,20,19> }
texture {rooftex1}
}
// house roof
object {
box {<-10,19.5,-22>,<7.2,20,22> }
rotate z*45
translate x*9
translate y*11
texture { rooftex1
}
}
object {
box {<-7.2,19.5,-22>,<10,20,22> }
rotate z*-45
translate x*-9
translate y*11
texture { rooftex1
}
//texture {woodtex3 rotate z*90}
}
// upper wall roof triangle 1
union {
difference {
prism {
linear_sweep
linear_spline
0, 1, 4,
<-9.5,0>, <9.5,0>, <0,9>, <-9.5,0>,
rotate x*-90
translate z*-19
translate y*20
texture {walltex1 rotate y*90}
}
box {<-2,21,-21>,<2,25,-18> }
}
object {
box {<-2,21,-20>,<2,25,-19.5> }
material {M_Glass}
}
}
// upper wall roof triangle 2
difference {
prism {
linear_sweep
linear_spline
0,
1,
4,
<-9.5,0>, <9.5,0>, <0,9>, <-9.5,0>,
rotate x*-90
translate z*20
translate y*20
}
box {<-2,21,21>,<2,25,18> }
texture {walltex1 rotate y*90 }
}
object {
box { <-2,21,20>,<2,25,19.5> }
material {M_Glass}
}
// chimney
object {
difference {
box {<-1.5,0,-1.5>,<1.5,34,1.5>}
box {<-1,0,-1>,<1,35,1>}
}
texture { chimneytex1}
translate x*3
translate z*5
}
// wind cabinet
object {
union {
object {
difference {
box { <10,0,-5>, <17,10,5> }
box { <11,1,-4>, <16,0,3> }
box {<15,0,-2>,<18,7,2> } // door hole
box { <12,2,-7>, <16,6,-3> } // window hole
}
// }
texture {walltex1 rotate y*90 }
// texture {pigment {color Green}}
}
// window
object {
box {<12,2,-5>, <16,6,-4.5> } // door hole
material {M_Glass}
}
object {
prism {
linear_sweep
linear_spline
0,
7,
4,
<-5,0>, <5,0>, <0,5>, <-5,0>,
}
rotate x*-90
rotate y*90
translate y*10
translate x*17
// texture {pigment {color Red}}
texture {walltex1 rotate y*90 }
}
object {
box {<15,0,-2>,<16,7,2> } // door
texture {doortex1}
}
object {
box { <10,0,-10>, <18,0.25,0.25> }
texture { rooftex1 }
rotate x*-45
translate y*15
}
object {
box { <10,0,10>, <18,0.25,0> }
texture { rooftex1 }
rotate x*45
translate y*15
}
} // union
} // object
#if (sel_photons=1)
photons {
target
refraction on
reflection on
collect off
}
#end
} // house2
object { house2
rotate y*-60+180
//rotate y*180
//rotate y*90
// rotate y*-90
//rotate y*270
}
Licensing
[edit]- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 06:33, 7 August 2023 | 1,600 × 1,200 (2.35 MB) | Merikanto (talk | contribs) | ||
11:17, 6 August 2023 | 1,600 × 1,200 (2.37 MB) | Merikanto (talk | contribs) | Update | ||
07:23, 6 August 2023 | 800 × 600 (511 KB) | Merikanto (talk | contribs) | Update | ||
12:32, 5 August 2023 | 1,600 × 1,200 (1.8 MB) | Merikanto (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
PNG file comment |
|
---|---|
File change date and time | 06:30, 7 August 2023 |
Software used |