POV-Ray : Newsgroups : povray.beta-test : texture_map vs. pigment_map : texture_map vs. pigment_map Server Time
4 Jul 2022 07:28:11 EDT (-0400)
  texture_map vs. pigment_map  
From: Ive
Date: 24 Apr 2008 20:18:47
Message: <48112367$1@news.povray.org>
I think in the following scene Texture 1 and Texture 2 should
always look the same - and they do in 3.6.
But when using the *granite* or the *bumps* pattern they
do not. Adding a specific waveform makes things even
worse.

-Ive


// ------------------------------

global_settings {
  assumed_gamma 1.0
//  noise_generator 1
}

camera {
  orthographic
  location <0,0,-1.5>
  look_at  <0,0,0>
}

// ------------------------------
// texture 1

#declare T1 = texture {
  pigment {
// *** NOT working ***
//    granite
    granite triangle_wave
//    bumps  // ramp_wave

// *** working ***
//    gradient y
//    agate
//    wood
//    marble
    pigment_map {
      [0.0 rgb 0]
      [1.0 rgb 1]
    }
  }
  finish {ambient 1  diffuse 0}
}

// ------------------------------
// texture 2

#declare T2a = texture {
  pigment {rgb 0}
  finish {ambient 1  diffuse 0}
}

#declare T2b = texture {
  pigment {rgb 1}
  finish {ambient 1  diffuse 0}
}

#declare T2 = texture {
// *** NOT working ***
//  granite
  granite triangle_wave
//  bumps  // ramp_wave

// *** working ***
//  gradient y
//  agate
//  wood
//  marble
  texture_map {
    [0.0 T2a]
    [1.0 T2b]
  }
}

// -----------------------------

box {-0.5, 0.5
  texture {T1}
  translate -x*0.5
}

box {-0.5, 0.5
  texture {T2}
  translate x*0.5
}

// -----------------------------


Post a reply to this message

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