POV-Ray : Newsgroups : povray.advanced-users : UV Repeat in image_map : Re: UV Repeat in image_map Server Time
23 Apr 2024 20:00:23 EDT (-0400)
  Re: UV Repeat in image_map  
From: Bald Eagle
Date: 30 Jan 2018 21:30:01
Message: <web.5a7129e112d0a6395cafe28e0@news.povray.org>
Tried a bunch of things, and this is the best I could get.
I still suck at this.  :D

#version 3.71;
global_settings {
    assumed_gamma 1.0
}

#include "colors.inc"

sky_sphere {pigment {rgb <1, 1, 1>}}
plane {y, 0 pigment {srgb <1, 0.7, 0.5>}}

light_source {<48, 36, -50> color White}

camera {
  location <24, 24, -96>    // position & direction of view
  look_at  <24, 12,  0>
  right    x*image_width/image_height
  up y

}

#declare Pic = texture {pigment {image_map {png "POV-Ray_icon.png"} scale 2} }
#declare None = texture {pigment {rgbt 1}}

#declare YY = texture {pigment {function {0.5-min(0.5, abs(x))}}}

#declare Uonly =
texture {
 cylindrical

 texture_map {
 [0 None]
 //[0 Pic]
 [1 Pic translate -x]
 }
}

#declare Vonly =
texture {
 cylindrical
 rotate z*90
 translate y*12
 texture_map {
 [0 None]
 //[0 Pic]
 [1 Pic rotate -z*90 translate y*2]
 }
}

box {<-24, 0, 0> <24, 48, 0.1> texture {Uonly}}

box {<24, 0, 0> <72, 48, 0.1> texture {Vonly}}


Post a reply to this message

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