|
|
Am 24.01.2015 um 11:29 schrieb Mr:
> #declare MAT_MaterialTex =
> texture{
> pigment_pattern {
> uv_mapping image_map{
>
"F:\BlenDivers\Scenes\blenderpovrayTestScenes\TexturesTest\textures\SpecularTest.png"
> map_type 0 interpolate 2 }
> translate <-0,0,0> scale <1,1,1>
>
> }
> texture_map {
> [0
> pigment {
> pigment_pattern {
> uv_mapping image_map{
> "F:\BlenDivers\Scenes\blenderpovrayTestScenes\TexturesTest\textures\AlphaTest.png"
> map_type 0 interpolate 2 } translate <-0,-0,0> scale <1,1,1>}
> pigment_map {
> [0 color rgbft<0,0,0,1,1>]
> [1 uv_mapping image_map {
> "F:\BlenDivers\Scenes\blenderpovrayTestScenes\TexturesTest\textures\DiffuseTest.png"
> map_type 0 interpolate 2 } translate <0.25,0,-1> scale <1.5,1,1>]
^^^^^^^^^^^
Beware - you're moving the texture here, not just scaling it!
Note again that scaling /always/ has its origin at <0,0,0>; if you do
this /after/ translation, it's no longer the <0,0> of the image, but
rather its <-0.25,0>. To scale from the /image's/ <0,0>, you need to
scale first, and only then translate; you'll probably need to fix the
translation vector though:
scale <1.5,1,1> translate <1.5,1,1>*<0.25,0,-1>
Post a reply to this message
|
|