POV-Ray : Newsgroups : povray.binaries.images : How to put an image on ONE side of a box : Re: How to put an image on ONE side of a box Server Time: 8 Mar 2021 13:33:32 GMT
  Re: How to put an image on ONE side of a box  
From: Wijnand
Date: 20 Feb 2020 15:41:51
Op 19-2-2020 om 23:17 schreef Wijnand:
> Op 19-2-2020 om 19:15 schreef Dick Balaska:
>> union {
>>      box { <0, 0, 0.01>, 1 texture {pigment {White}}}
>>      box { 0, <1, 1, 0.011>
>>          pigment {
>>              image_map {gif "vintage-40-vloertegel.gif"}
>>          }
>>      }
>> }
>>
> Thanks a lot, regards...

Hello Dik (?),

Strange... I have made some changes to use your example for a set of 
tiles in cm (20x20x0.9 cm). The right one is yours, the left one my 
trial. Look the motive is split up in 4 parts and the parts are moved. ???

My source:

camera {
   location < 0, 50, 0>
   look_at  < 0, 0, 0>
}

object {
   light_source {<-100,100,-100> color White }
}


#declare Tile_2 =
union {
   box { <-0.5, -0.5, 0.045>,< 0.5,  0.5, 0.01> texture {pigment {White}}}
   box { <-0.5, -0.5, 0.0  >,< 0.5,  0.5, 0.00001>
     pigment {
       image_map {gif "vintage-41-randtegel.gif"}
     }
   }
   rotate<90,0,0>
//  scale 20
}

#declare Tile_5 =
union {
   box { <0, 0, 0.01>, 1 texture {pigment {White}}}
   box { 0, <1, 1, 0.011>
     pigment {
       image_map {gif "vintage-41-randtegel.gif"}
     }
   }
   rotate<90,0,0>
}


object { Tile_2 scale 20 rotate <0,180,0> translate <-20,0,0>}
object { Tile_5 scale 20         translate <10,0,-10>}


Post a reply to this message


Attachments:
Download 'tiles_1.png' (135 KB)

Preview of image 'tiles_1.png'
tiles_1.png


 

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.