POV-Ray : Newsgroups : povray.binaries.images : Incongruity about normal Wrinkles? Server Time
5 Nov 2024 18:24:09 EST (-0500)
  Incongruity about normal Wrinkles? (Message 1 to 10 of 14)  
Goto Latest 10 Messages Next 4 Messages >>>
From: Carlo C 
Subject: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 13:30:01
Message: <web.49b5519678d7db4712a5893a0@news.povray.org>
OK, I'm afraid to make a blunder!

But...
Look at the picture and the following source:

/////////////////////////////////////////
//+w512 +h512 +FN8

camera {
 perspective
 location <0,10,0>
 look_at <0,0,0>
 right x
 up y
 sky z
}

box {
  <-10000,0,-10000>, <10000,1,10000>

  pigment { rgb 0.6 }

  normal {
    //agate
    //granite
    wrinkles
    scale 0.2
  }

  finish {
    ambient 0.0
    diffuse 1.0
    specular 1 roughness 0.002
  }
}

light_source {
  <0,50,0>,
  rgb 1
}
/////////////////////////////////////////

Highlights in *Agate* and *Granite* are perfectly centered in the image.
The problem is in *wrinkles*:
that poor higlights has been confined to bottom left...

Why?

--
Carlo


Post a reply to this message


Attachments:
Download 'agate_granite_wrinkles.jpg' (65 KB)

Preview of image 'agate_granite_wrinkles.jpg'
agate_granite_wrinkles.jpg


 

From: clipka
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 14:10:00
Message: <web.49b55b74f0f85f58abfc91e10@news.povray.org>
There's a good deal of faking going on with normal pertubation in POV, and
results are not always as they should naturally be.


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 14:25:00
Message: <web.49b55e52f0f85f5881c811d20@news.povray.org>
> Highlights in *Agate* and *Granite* are perfectly centered in the image.
> The problem is in *wrinkles*:
> that poor higlights has been confined to bottom left...
>
> Why?
>
> --
> Carlo

I don't know the answer why, but I have always encountered this with the
wrinkles normal as well.

-tgq


Post a reply to this message

From: clipka
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 14:50:01
Message: <web.49b5643ff0f85f58abfc91e10@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> > Highlights in *Agate* and *Granite* are perfectly centered in the image.
> > The problem is in *wrinkles*:
> > that poor higlights has been confined to bottom left...
>
> I don't know the answer why, but I have always encountered this with the
> wrinkles normal as well.

The online help says about "wrinkles" in section 3.5.11.37:

"When used as a normal pattern, this pattern uses a specialized normal
perturbation function. [...]"

It doesn't state anything similar about "agate" and "granite".

It seems that the specialized "wrinkels" normal pertubation function is not
really good ad what it should do...


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 15:10:00
Message: <web.49b568b1f0f85f5881c811d20@news.povray.org>
"clipka" <nomail@nomail> wrote:
> "Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> > > Highlights in *Agate* and *Granite* are perfectly centered in the image.
> > > The problem is in *wrinkles*:
> > > that poor higlights has been confined to bottom left...
> >
> > I don't know the answer why, but I have always encountered this with the
> > wrinkles normal as well.
>
> The online help says about "wrinkles" in section 3.5.11.37:
>
> "When used as a normal pattern, this pattern uses a specialized normal
> perturbation function. [...]"
>
> It doesn't state anything similar about "agate" and "granite".
>
> It seems that the specialized "wrinkels" normal pertubation function is not
> really good ad what it should do...

It's not really that it should look like agate or granite, but rather behave
similarly: highlights in a similar range/location when compared to highlights
from agate or granite normals of similar magnitude/scale.  At least this is
what I would think the 'expected' behavior would be.  However it doesn't seem
to be the case.  It appears as if, in addition to the base wrinkle normal, an
overall bias normal of some sort is being added, almost as if the whole surface
is sloping in some direction rather than being flat.  I never bothered doing any
experimenting to see if this overall look is consistent with different viewing
angles, but I may try now when I get the opportunity.

-tgq


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 15:35:01
Message: <web.49b56ed6f0f85f5881c811d20@news.povray.org>
I ran a quick example to highlight the issue.

While they shouldn't appear exactly the same, I would expect a similar
behaviour.  In the top left image, there is no normal and the reflection is
straight down as it should be.  The top right and bottom left images use
granite and agate for example (you could use some others like bumps as well to
illustrate)The reflection is blurred somewhat and spread outward as would be
expected, but the overall reflection median is still in line straight down like
the un-normalled image.  Now in the bottom right, a wrinkle normal is applied.
Again, the reflection is blurred a bit as expected, but the overall
reflectionmedian is now skewed down towards the left.  Changing the angle of
view does not change this, in this example at leats, the reflection is always
skewed toward the left.


//START
camera{
  up y
  right x*image_width/image_height
  angle 45
  location <0,500,-1000>
  look_at  0
}

light_source{
  <500,1500,-500>
  rgb 1
}

cylinder{0,1000*y,10 pigment{rgb <1,0,0>} finish{ambient 1 diffuse 0.5}}

plane{y,0
  material{

  texture{
    pigment{rgb 1}
    finish{
      ambient 0
      diffuse 0.5
      reflection {1}
    }
//    normal{granite 0.25 scale 50}
//    normal{agate 0.25 scale 5}
//    normal{wrinkles 0.25 scale 0.005}
  }
  }
}

//END


Post a reply to this message


Attachments:
Download 'wrinkles.jpg' (39 KB)

Preview of image 'wrinkles.jpg'
wrinkles.jpg


 

From: clipka
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 16:05:00
Message: <web.49b575aff0f85f58abfc91e10@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> It's not really that it should look like agate or granite, but rather behave
> similarly:

The point I tried to make is that when using "wrinkles" for normals, POV doesn't
just seem to take that pattern and pertube the normals according to its
greyscale value (as it seems to be doing with "agate" and "granite"), but
execute some special code that is *supposed* to give better results... but
apparently fails at doing so.


Post a reply to this message

From: Carlo C 
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 18:20:00
Message: <web.49b59544f0f85f5868b24cc70@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
> I ran a quick example to highlight the issue.
>
> While they shouldn't appear exactly the same, I would expect a similar
> behaviour.  In the top left image, there is no normal and the reflection is
> straight down as it should be.  The top right and bottom left images use
> granite and agate for example (you could use some others like bumps as well to
> illustrate)The reflection is blurred somewhat and spread outward as would be
> expected, but the overall reflection median is still in line straight down like
> the un-normalled image.  Now in the bottom right, a wrinkle normal is applied.
> Again, the reflection is blurred a bit as expected, but the overall
> reflectionmedian is now skewed down towards the left.  Changing the angle of
> view does not change this, in this example at leats, the reflection is always
> skewed toward the left.
>
>
> //START
> camera{
>   up y
>   right x*image_width/image_height
>   angle 45
>   location <0,500,-1000>
>   look_at  0
> }
>
> light_source{
>   <500,1500,-500>
>   rgb 1
> }
>
> cylinder{0,1000*y,10 pigment{rgb <1,0,0>} finish{ambient 1 diffuse 0.5}}
>
> plane{y,0
>   material{
>
>   texture{
>     pigment{rgb 1}
>     finish{
>       ambient 0
>       diffuse 0.5
>       reflection {1}
>     }
> //    normal{granite 0.25 scale 50}
> //    normal{agate 0.25 scale 5}
> //    normal{wrinkles 0.25 scale 0.005}
>   }
>   }
> }
>
> //END

Excellent example.
Much lesser extent, it seems that also *Dents* has a few problem (much less,
much less...).

And Dents:

* 3.5.11.12  Dents
When used as a normal pattern, this pattern uses a specialized normal
perturbation function. *

--
Carlo


Post a reply to this message

From: Carlo C 
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 19:10:01
Message: <web.49b5a0acf0f85f5868b24cc70@news.povray.org>
Another little test.

//START////////////////////////////////////////////////////////////
background { rgb 0 }

camera {
 perspective
 up y
 right x
 location <0,0,-10>
 angle 3 //20 //48 originale
 look_at <0,0,0>
}

light_source {
  <0,0,-1.02>,
  rgb 0.75
  //spotlight
  //radius 1/1000
  //falloff 1/300
  //tightness 0
  //point_at <0,0,-1>
}

sphere {
  <0,0,0>, 1
  pigment { rgb 1 }
  ///*
  normal {
    //agate 0.5
    //granite 0.5
    wrinkles 0.5
    //dents 0.5
    //accuracy 1/255
    scale 0.01 //0.025
  }
  //*/
  finish {
  ambient 0.05
  diffuse 1.0
  //phong 0.9 phong_size 6
  specular 0.9 roughness 0.02
  }
}
//END////////////////////////////////////////////////////////////

The image shows a Light very close to the surface of a sphere.

1. A perfect Granite.
2. A perfect Agate.
3. A beautiful/strange Dents.
4. A mutilated Wrinkles. :-(

--
Carlo


Post a reply to this message


Attachments:
Download 'test.jpg' (64 KB)

Preview of image 'test.jpg'
test.jpg


 

From: Zeger Knaepen
Subject: Re: Incongruity about normal Wrinkles?
Date: 9 Mar 2009 20:23:04
Message: <49b5b2e8$1@news.povray.org>
A workaround for this problem is to instead of "normal {wrinkles 1}" use 
"normal {pigment_pattern{wrinkles} 1}"

In a way forcing pov-ray not to use its "specialized normal perturbation 
function" :)

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

Goto Latest 10 Messages Next 4 Messages >>>

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