POV-Ray : Newsgroups : povray.newusers : specular texture : Re: specular texture Server Time
5 Oct 2024 15:48:15 EDT (-0400)
  Re: specular texture  
From: Edouard
Date: 4 Sep 2009 18:55:00
Message: <web.4aa199eda17eae26c83e2c410@news.povray.org>
"tony" <nomail@nomail> wrote:
> I am a newcomer to Povray and trying to land in a wooden three textures:
> diffuse, bump, specular.
>
> With the first two have no problem:
>
> pigment{ image_map{ jpeg "suelo.jpg" interpolate 2}}
> normal { bump_map{ jpeg "suelo_bump.jpg" bump_size 0.8}}
> finish { diffuse 0.8 specular 0.5 ambient 0.100000 roughness 1/50 }
>
> But not to speculate that the texture is not uniform brightness,
> ie grayscale darkest areas sparkle less or nothing.
>
> I've searched the documentation and have not found or been able to find anything
> respect.
>
> Does this function Povray? How?

Hi Tony.

I think you want something like this:

#declare texture1 =
 texture {
  pigment { image_map{ jpeg "suelo.jpg" interpolate 2}}
  normal { bump_map{ jpeg "suelo_bump.jpg" bump_size 0.8}}
  finish { diffuse 0.8 specular 0.5 ambient 0.100000 roughness 1/50 }
 }

#declare texture2 =
 texture {
  pigment { image_map{ jpeg "suelo.jpg" interpolate 2}}
  normal { bump_map{ jpeg "suelo_bump.jpg" bump_size 0.8}}
  finish { diffuse 0.8 specular 0.0 ambient 0.100000 roughness 1/50 }
 }

texture {
 image_pattern {
  jpeg "suelo_specular.jpg" interpolate 2
 }
 texture_map {
  [ 0 texture1 ]
  [ 1 texture2 ]
 }
}



> Thanks and best regards to all.
>
> Tony


Post a reply to this message

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