POV-Ray : Newsgroups : povray.advanced-users : Texture Maps Help : Re: Texture Maps Help Server Time
29 Jul 2024 16:24:37 EDT (-0400)
  Re: Texture Maps Help  
From: Bob H 
Date: 6 Jul 2001 01:06:07
Message: <3b45473f@news.povray.org>
"Jaime Vives Piqueres" <jai### [at] ignoranciaorg> wrote in message
news:3B44E53F.894F2868@ignorancia.org...

> >  Well, can you specify a bit? What's the problem with your material_map?
>
>  Hmmm.. seems that I answered unintentionally your question! When
> sending the first response I notice your subject again ("texture maps
> help"). Perhaps you are using texture_map with an image? If I remember
> well, this can be done with material_map only...

Must be so.  So... direct from the documentation (really helpful to use that, the
documentation):

#include "colors.inc"
#include "textures.inc"

plane {z,0
   texture {
      material_map {
         png "povmap.png"
         texture {  //used with index 0
            pigment {color red 0.3 green 0.1 blue 1}
            normal  {ripples 0.85 frequency 10 }
            finish  {specular 0.75}
            scale 5
         }
         texture {  //used with index 1
            pigment {White}
            finish {ambient 0 diffuse 0 reflection 0.9 specular 0.75}
         }
         // used with index 2
         texture {pigment{NeonPink} finish{Luminous}}
         texture {  //used with index 3
            pigment {
               gradient y
               color_map {
                  [0.00 rgb < 1 , 0 , 0>]
                  [0.33 rgb < 0 , 0 , 1>]
                  [0.66 rgb < 0 , 1 , 0>]
                  [1.00 rgb < 1 , 0 , 0>]
               }
            }
            finish{specular 0.75}
            scale 8
         }
      }
      translate -.5
      scale 15
   }
}

light_source {<10,10,-10>,1}
camera {location -10*z look_at 0}

As you can see it's unlike the other mappings, such as image_map, in that there isn't
a "blend map"
index.  It can only be integers 0 through 255 so no decimals could be used anyway.  I
suggest the
doc be read about it.  Right-clicking on the keyword in the CodeMax Editor (Windows
platform is all
I know) will bring up the Context Help where you can read about it.
There have been problems with some BMP files (btw, use sys as the file type) so if you
get faulty
renders once everything else is right then converting to another (paletted preferably)
format to
use instead should fix things.

Bob H.


Post a reply to this message

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