POV-Ray : Newsgroups : povray.beta-test : texture_map vs. pigment_map Server Time
26 Dec 2024 11:50:42 EST (-0500)
  texture_map vs. pigment_map (Message 1 to 2 of 2)  
From: Ive
Subject: texture_map vs. pigment_map
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

From: Ive
Subject: Re: texture_map vs. pigment_map
Date: 24 Apr 2008 20:22:48
Message: <48112458$1@news.povray.org>
ahem, forgotten:

using POV-Ray 3.7 beta 25 sse2
Windows XP SP2

-Ive


Post a reply to this message

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