POV-Ray : Newsgroups : povray.binaries.images : No color from image_map pigment : No color from image_map pigment Server Time
29 Jul 2024 20:26:06 EDT (-0400)
  No color from image_map pigment  
From: jceddy
Date: 24 Sep 2013 10:05:02
Message: <web.52419aebcf1f2a1b314aa6840@news.povray.org>
Hopefully this will be quick for someone...I'm banging my head against it and I
know it should be simple, but not quite getting it.

I'm texturing a box using a pigment gradient with two image maps as input. When
I render I don't get any color from the original images...what am I missing?

The attachment has the output on top and the original image maps on the bottom.

Here's the relevant code:

#declare White_Texture =
pigment {
  image_map {
    jpeg "white_hq.jpg"
    map_type 0
    interpolate 2
  }
}

#declare Red_Texture =
pigment {
  image_map {
    jpeg "red_hq.jpg"
    map_type 0
    interpolate 2
  }
}

box {
  <-12, -7, -0.1>, <12, 7, 0.1>

  texture {
    pigment {
      pigment_pattern {
        gradient x
        pigment_map {
          [0.00 Red_Texture]
          [0.25 Red_Texture]
          [0.75 White_Texture]
          [1.00 White_Texture]
        }
      }

      translate <0.5, 0.5, 0>
      rotate 180*y
      scale <24, 14, 1>
    }
    finish {
      ambient 1
      diffuse 0
    }
  }
}


Post a reply to this message


Attachments:
Download 'nocolor.jpg' (225 KB)

Preview of image 'nocolor.jpg'
nocolor.jpg


 

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