POV-Ray : Newsgroups : povray.general : how to do a finish map Server Time
28 Nov 2024 17:37:06 EST (-0500)
  how to do a finish map (Message 1 to 2 of 2)  
From: Eric
Subject: how to do a finish map
Date: 6 Nov 2006 14:40:01
Message: <web.454f8f0d9f5f8eadd635d53f0@news.povray.org>
I want to change the finish of my object based on a uv mapped image file.
So far I have this, but it doesn't work.  The syntax is wrong.

texture{
  image_pattern{uv_mapping jpeg "shinny.jpg"} ??? how do I do uv mapping
here
  texture_map{
    [0.0 pigment uv_mapping image_map{jpeg "texture.jpg" interpolate 2}}
           finish{specular 0.15 roughness 0.1 metallic}]
    [0.85 pigment uv_mapping image_map{jpeg "texture.jpg" interpolate 2}}
           finish{specular 0.15 roughness 0.1 metallic}]
    [1.0 pigment uv_mapping image_map{jpeg "texture.jpg" interpolate 2}}
           finish{specular 0.15 roughness 0.0005 metallic}]
  }
}

Is image_pattern the correct way to do this or should I use something else?


Post a reply to this message

From: Eric
Subject: Re: how to do a finish map
Date: 6 Nov 2006 14:55:01
Message: <web.454f92883e0384f5d635d53f0@news.povray.org>
OK, I got it.  You just put uv_mapping before image_pattern.  I don't know
why I didn't think of that.  Anyway is image_pattern still the best way to
do this?


Post a reply to this message

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