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
15 May 2024 18:03:12 EDT (-0400)
  Re: How to put an image on ONE side of a box  
From: Wijnand
Date: 20 Feb 2020 10:45:27
Message: <5e4ea997$1@news.povray.org>
Op 20-2-2020 om 16:41 schreef Wijnand:
> 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>}

Found it, an image_map starts alway at <0,0,0>.... Grrr.


Post a reply to this message

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