|
 |
Op 20-2-2020 om 21:49 schreef Alain Martel:
> Le 2020-02-19 à 11:47, Wijnand a écrit :
>> Who can help me to put an image on ONE side of a box.
>>
>> #declare Tegel_1 =
>> box { <100, -9, 100>, <-100, 0, -100>
>> Â Â pigment {
>> Â Â Â Â image_map {
>> Â Â Â Â Â Â gif "vintage-40-vloertegel.gif"
>> Â Â Â Â Â Â map_type 1
>> Â Â Â Â Â Â once
>> Â Â Â Â }
>> Â Â Â Â scale 1
>> Â Â }
>> }
>>
>> The image is: vintage-40-vloertegel.gif
>> The result is: test_01.png
>
> map_type 1 is used to map the image on a sphere.
> You want to use map_type 0, the default.
> It maps the image in a tiling fashion along the X-Y plane.
>
> So, it becomes :
> #declare Tegel_1 =
> box { 0, 1 //from <0,0,0> to <1,1,1>
> Â pigment {
> Â Â Â image_map {
> Â Â Â Â Â gif "vintage-40-vloertegel.gif"//use default mapping
> Â Â Â }
> Â translate <-0.5, -0.5, 0>//Â centre it
> Â rotate 90*x // flip to the X-Z plane
> Â Â Â scale <200, 9, 200> // scale to the desired dimention
> Â }
> }
Thanks again, regards...
Post a reply to this message
|
 |