POV-Ray : Newsgroups : povray.newusers : specular texture Server Time
7 Jul 2024 08:35:57 EDT (-0400)
  specular texture (Message 1 to 6 of 6)  
From: tony
Subject: specular texture
Date: 4 Sep 2009 15:40:00
Message: <web.4aa16bf14725079a48d890540@news.povray.org>
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?

Thanks and best regards to all.

Tony


Post a reply to this message

From: Robert McGregor
Subject: Re: specular texture
Date: 4 Sep 2009 18:15:00
Message: <web.4aa19043a17eae264726e92b0@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?
>
> Thanks and best regards to all.
>
> Tony

Hi Tony,

I'd like to help you but I'm really not sure what you're asking for here (it's
obvious that English is not your main language).

Are you saying that the darker areas of the bump map have no specularity but the
lighter areas do? Take a look at Warp's tutorial at:

http://warp.povusers.org/povtips/

That might answer your question; if not please restate it for us...

-Rob


Post a reply to this message

From: Edouard
Subject: Re: specular texture
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

From: tony
Subject: Re: specular texture
Date: 5 Sep 2009 07:45:00
Message: <web.4aa24e88a17eae2648d890540@news.povray.org>
"Edouard" <pov### [at] edouardinfo> wrote:
> "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

From: tony
Subject: Re: specular texture
Date: 5 Sep 2009 08:00:00
Message: <web.4aa25248a17eae2648d890540@news.povray.org>
Thanks Robert McGregor for the tutorial.


@Edouard: this is the look I wanted. Thanks for the code, works perfectly.


Tony


Post a reply to this message

From: tony
Subject: Re: specular texture
Date: 5 Sep 2009 08:05:00
Message: <web.4aa253a4a17eae2648d890540@news.povray.org>
Thanks Robert McGregor for the tutorial.

@Edouard: this is the look I wanted. Thanks for the code, works perfectly.


Tony


Post a reply to this message

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