File:Mudbrick house two flats patio 1.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(1,600 × 1,200 pixels, file size: 3.05 MB, MIME type: image/png)

Captions

Captions

Mudbrick house with two flats and patio

Summary[edit]

Description
English: Mudbrick house with two flats and patio. Seems smmewhat like Sumerian houses. Very basic model.
Date
Source Own work
Author Merikanto

Code to produce image is in

https://commons.wikimedia.org/wiki/File:Mud_brick_house_multi_floor_multi_room_patio_inner_view_to_sky_1.png

Use camera 1


This

Old Pov-ray 3.7 source code:


// // povray 3.7 // // multi room mudbrick house // w/ inner court // // 20.4.2021 v 0000.000 //


  1. include "colors.inc"
  2. include "textures.inc"
  3. include "stones.inc"
  4. include "stones1.inc"
  1. include "woods.inc"
  2. include "rand.inc"

camera {

// location <0,1,0>

// location <-0.8,-0.9,0>

location <0,10,-5>*13

// location <0,150,0>

look_at <0,0,0>

}




light_source { <1000,1000,1000> color rgb White }



sky_sphere {


  pigment{ gradient <0,1,0>
         color_map{
         [0.0 color rgb<1,1,1>        ]
         [0.8 color rgb<0.1,0.25,0.75>]
         [1.0 color rgb<0.1,0.25,0.75>]}
       } // end pigment
 
 }  
  


plane{<0,1,0>,1 hollow  
     
       texture{ pigment {color rgb<0.1,0.3,0.75>*0.7}
                #if (version = 3.7 )  finish {emission 1 diffuse 0}
                #else                 finish { ambient 1 diffuse 0}
                #end 
              } 
       texture{ pigment{ bozo turbulence 0.75
                         octaves 46  omega 0.7 lambda 2 
                         color_map {
                         [0.0  color rgb <0.95, 0.95, 0.95> ]
                         [0.05  color rgb <1, 1, 1>*1.25 ]
                         [0.15 color rgb <0.85, 0.85, 0.85> ]
                         [0.55 color rgbt <1, 1, 1, 1>*1 ]
                         [1.0 color rgbt <1, 1, 1, 1>*1 ]
                         } 
                        translate< 3, 0,-1>
                        scale <0.3, 0.4, 0.2>*3
                       } 
                #if (version = 3.7 )  finish {emission 1 diffuse 0}
                #else                 finish { ambient 1 diffuse 0}
                #end 
              } 
      scale 10000
    } 
    







#declare kol1=(Green+Brown)/2;
 
 
#declare kol2=(Green*2+Brown)/3;


object {

   plane {
   y,0
   }      
   
   texture {   
      pigment { 
     agate
     // checker
   //   brick
      
      // pigment{kol1}, 
    //  pigment{ kol2 } 
      // scale 5
      }
       
    
    normal {
    granite
    
    }   
       
     
     
   }

}



  1. declare house_texture_1=

texture { //pigment {color Red}

T_Stone1 scale 0.005

normal { //brick granite scale 0.05 }

}


  1. declare floor_texture_1=

texture { //pigment {color Red}

T_Stone1 scale 0.05

normal { brick //granite scale 0.05 }

}


  1. declare roof_of_patio_texture_1=

texture { //pigment {color Brown} // Tom_Wood Tan_Wood //T_Stone1 scale 0.0001

normal { //brick granite scale 0.05 }

}


  1. declare house_tihickness_1=0.5;
  2. declare inner_size_1=1-0.5;
  3. declare outer_size_1=1+0.5;
  1. declare wall_thickness_1=0.05;
  2. declare inner_wall_size_1=1-0.05;
  3. declare outer_wall_size_1=1+0.05;
  1. declare inner_tunnel_size_1=inner_size_1+wall_thickness_1;
  2. declare outer_tunnel_size_1=1-wall_thickness_1;



  1. declare house_size_1=20;


  1. declare basik1=difference {
   box {<-1,-1,-1>,<1,1,1>} 
   box {<-inner_size_1,-1,-inner_size_1>,<inner_size_1,outer_size_1,inner_size_1> }
 //  texture {house_texture_1} 
   
 // scale house_size_1
//  translate house_size_1/2 

}


  1. declare tunnel1=difference {
   box {<-outer_tunnel_size_1,-outer_tunnel_size_1,-outer_tunnel_size_1 >,<outer_tunnel_size_1,outer_tunnel_size_1,outer_tunnel_size_1 >} 
   box {<-inner_tunnel_size_1,-inner_tunnel_size_1,-inner_tunnel_size_1>, <inner_tunnel_size_1,inner_tunnel_size_1,inner_tunnel_size_1> }
   
 //  texture {house_texture_1} 
   
 // scale house_size_1
//  translate house_size_1/2 

}


  1. declare basik2= difference {

object {basik1} object {tunnel1} }

  1. declare door_lokation_x_1=0;
  2. declare door_width_1=0.2;
  3. declare door_height_y_1=0.75;
  4. declare door_base_y_1=-1;
  1. declare door_begin_x_1= door_lokation_x_1 - door_width_1/2;
  2. declare door_end_x_1= door_lokation_x_1 + door_width_1/2;
  3. declare door_upper_y_1=door_base_y_1 +door_height_y_1;
  4. declare door_z_delta_1=wall_thickness_1+0.02;


  1. declare door_gap_0= box {<door_begin_x_1,door_base_y_1,-door_z_delta_1-1>,<door_end_x_1,door_upper_y_1,+door_z_delta_1-1> }
  1. declare door_gap_1= box {<door_begin_x_1,door_base_y_1,-door_z_delta_1-0.5>,<door_end_x_1,door_upper_y_1,+door_z_delta_1-0.5> }
  2. declare door_gap_2= box {<door_begin_x_1,door_base_y_1,-door_z_delta_1+0.5>,<door_end_x_1,door_upper_y_1,+door_z_delta_1+0.5> }


  1. declare window_lokation_x_1=-0.5;
  2. declare window_width_1=0.2;
  3. declare window_height_y_1=0.4;
  4. declare window_base_y_1=-0.5;
  1. declare window_begin_x_1= window_lokation_x_1 - window_width_1/2;
  2. declare window_end_x_1= window_lokation_x_1 + window_width_1/2;
  3. declare window_upper_y_1=window_base_y_1 +window_height_y_1;
  4. declare window_z_delta_1=wall_thickness_1+0.03;


  1. declare window_gap_0= box {<window_begin_x_1,window_base_y_1,-window_z_delta_1-1>,<window_end_x_1,window_upper_y_1,+window_z_delta_1-1> }


//#declare door_gap_0= box {<-0.5,-1,-1>,<0.5,0.0,-0.5> }



  1. declare innerwall_1= box{
 <-0.55,-1,-1>,<-0.55+wall_thickness_1,1,-0.5> 

}


  1. declare floor_1=box

{ <-1,-1,-1><1,-0.995,1> }


  1. declare roof_of_patio_1=difference

{ box { <-0.5,0.995,-0.5><0.5,1,0.5> } box { <-0.3,0.994,-0.3><0.3,1.001,0.3> }

}


  1. declare roof_crown_1=difference

{ box { <-1,1,-1><1,1.1,1> } box { <-0.95,0.95,-0.95><0.95,1.2,0.95> } }



  1. declare roof_of_first_block_1=difference

{ box { <-1,-0.02,-1><1,0,1> } box { <-0.3,-0.05,-0.3><0.3,0.001,0.3> }

}


  1. declare pole1= cylinder

{

<-0.3,-1,-0.3>, <-0.3,1,-0.3>, 0.02

}



  1. declare basik3=difference

{ object {basik2} object {door_gap_0} object {door_gap_1} object {door_gap_2}

object {door_gap_2
rotate y*90
}          

object {door_gap_2
rotate y*-90
}          
object {
window_gap_0  
rotate y*180
}     


object {
window_gap_0  
// translate x*0.9
rotate y*-90
}     
  
  
object {
window_gap_0  
 translate x*0.9
rotate y*-90
}       
                 


 object {
window_gap_0  
translate y*1

rotate y*-90
}     
  
  
object {
window_gap_0 
translate y*1 
 translate x*0.9
rotate y*-90
}       
  
 

}


  1. declare basik4=union {

object {basik3} object {innerwall_1}

object {innerwall_1 translate x*1 }

object {innerwall_1

rotate y*90

//translate x*1 }


object {innerwall_1
rotate y*-90
translate z*1

}


object { roof_crown_1 }


}


  1. declare house_base_0=difference {
   object {basik4} 

}



  1. declare house_base_1=union {

object { house_base_0

texture {

   house_texture_1

}

}

object { floor_1

translate y*0
 
 

texture {

   floor_texture_1
   }

}

object {

roof_of_patio_1

texture {
  roof_of_patio_texture_1
}

}

object { roof_of_first_block_1

 texture {
  roof_of_patio_texture_1
}

}


 object {
 pole1
    texture {
  roof_of_patio_texture_1
}
 }
 

  object {
 pole1
  rotate y*90
    texture {
  roof_of_patio_texture_1
}
 }
 
   object {
 pole1
  rotate y*180
    texture {
  roof_of_patio_texture_1
}
 }
 
 
    object {
 pole1
  rotate y*270
    texture {
  roof_of_patio_texture_1
}
 } 
 
 

}





  1. declare house_1=difference

{

      object {house_base_1 }
  
   
/*   
   // debug  cut!
   box {<-1.2,0.1,-1.2>,<1.2,1.2,1.2> 
   texture 
   {
   pigment {
     color Red
    }
   }
   
   }  
   
  */ 
   

}


object {

house_1


translate y*1


scale <35,20,35>


rotate y*30

}



Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
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/TimeThumbnailDimensionsUserComment
current13:13, 2 May 2022Thumbnail for version as of 13:13, 2 May 20221,600 × 1,200 (3.05 MB)Merikanto (talk | contribs)update
14:44, 30 April 2022Thumbnail for version as of 14:44, 30 April 20221,600 × 1,200 (4.25 MB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

Metadata