POV-Ray : Newsgroups : povray.unofficial.patches : image_pattern : Re: image_pattern Server Time
2 Sep 2024 12:13:35 EDT (-0400)
  Re: image_pattern  
From: Bob Hughes
Date: 26 Jan 2000 15:11:04
Message: <388f54d8@news.povray.org>
Sorry, I think I see what you're getting at and I didn't before.  If I
understand it correctly a 'material_map' does not allow for manipulation of the
indices the way 'image_pattern' does.
You can specify a [value texture] format instead of just list textures out 0 to
255.

#declare IPp=
  texture {
    image_pattern { tga "belinda.tga" use_alpha}
    texture_map {
      [0 pigment {rgb <1,0,0>} ] // index 0
      [.5 pigment {rgb <0,1,0>} ] // index 127
      [1 pigment {rgb <0,0,1>} ] // index 255
    } translate -.5 scale 1.5  // transformations
  }

Where as 'material_map' goes like this:

#declare IPm=
texture {
 material_map { tga "belinda.tga"
  texture { pigment {rgb <1,0,0>}} // index 0
  texture { pigment {rgb <0,1,0>}} // index 1
  texture { pigment {rgb <0,0,1>}} // index 2
 }}

That is if I understand any of it right.  You can include image_patterns inside
of image patterns apparently (nesting), material_maps don't seem to be capable
of that.

Bob


Post a reply to this message

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