POV-Ray : Newsgroups : povray.binaries.images : diffuse map + specular map : Re: diffuse map + specular map Server Time
1 May 2024 22:25:07 EDT (-0400)
  Re: diffuse map + specular map  
From: JSR
Date: 15 Jan 2007 09:50:01
Message: <web.45ab9351f617fe16d8ef73430@news.povray.org>
Thanks to everybody, but I can obtain the result I look for.
I post a challenge in povray.international.binaries

This is the code of my last attempt:

#declare mat_TEX_PARQUET11_pigment =
  pigment { image_map { jpeg "diffuse.jpg" } }

#declare mat_TEX_PARQUET11_normal =
  normal { uv_mapping bump_map { jpeg "bump.jpg" bump_size 2 } }

#declare mat_0_89_0_0_0_TEX_PARQUET11 =
  texture {
    uv_mapping pigment_pattern { image_map { jpeg "specular.jpg" } }

    texture_map {
      [0.0 pigment { mat_TEX_PARQUET11_pigment }
        normal { mat_TEX_PARQUET11_normal }
        finish { diffuse 0.9 specular 0.0 reflection {0.0 fresnel on } }
      ]
      [1.0 pigment { mat_TEX_PARQUET11_pigment }
        normal { mat_TEX_PARQUET11_normal }
        finish { diffuse 0.9 specular 1.0 reflection {0.1 fresnel on } }
      ]
   }
}


Thanks,

Joel.


Post a reply to this message


Attachments:
Download 'render.jpg' (274 KB)

Preview of image 'render.jpg'
render.jpg


 

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