POV-Ray : Newsgroups : povray.programming : Bump_map bug - need test compilation Server Time
29 Jul 2024 08:14:13 EDT (-0400)
  Bump_map bug - need test compilation (Message 2 to 11 of 11)  
<<< Previous 1 Messages Goto Initial 10 Messages
From: Thorsten Froehlich
Subject: Re: Bump_map bug - need test compilation
Date: 3 Oct 1998 23:43:38
Message: <3616e0da.0@news.povray.org>
In <361### [at] homecom> , jko <jko### [at] homecom>  wrote:
>I do hope someone responds quickly to this, since I don't want to miss
>the opportunity Chris has offerred me to get a patch released by the POV
>Team.
>
>Thanks,
>
>Kevin
>
>Please be so kind as to respond by email at jko### [at] homecom


I have applied the patch (all four), the image is posted in
povray.binaries.programming as "bump_map test"


Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 00:02:08
Message: <3616e530.0@news.povray.org>
>In <361### [at] homecom> , jko <jko### [at] homecom>  wrote:
>I do hope someone responds quickly to this, since I don't want to miss
>the opportunity Chris has offerred me to get a patch released by the POV

I forgot: Wow!!! You and your brother seem to have fixed it without ever trying the
code! If it is really right (I am not that kind of expert on things like that) this is
a masterpiece!


    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany


Post a reply to this message

From: povray org admin team
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 01:15:19
Message: <3618f64f.95464150@news.povray.org>
>Chris Young has confirmed the bugs exist and Chris Cason has agreed to
>release a patch with my changes when he releases the PovWin source.

I'll clarify this : the offer was to release an internal patch within the
team, after the POVWIN source was released. This is not the same as a public
patch as the above seems to imply. There is no telling when this will make
it to the full release.


Post a reply to this message

From: Nieminen Mika
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 09:04:19
Message: <36176443.0@news.povray.org>
Is this the same bug which appears when a normal map is inside an average
statement, or is it another one?

-- 
                                                           - Warp. -


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 12:10:57
Message: <36179001.0@news.povray.org>
In <3616e0da.0@news.povray.org> , "Thorsten Froehlich" <fro### [at] charliecnsiitedu>
wrote:

>I have applied the patch (all four), the image is posted in
povray.binaries.programming as "bump_map test"<

My damn e-mail and news client (Outlookk Express on Macintosh) did not encode the
first file as base64 (also I told it to do so :-(  So there is a second try and it
works now. Sorry!


Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany


Post a reply to this message

From: povray org admin team
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 14:11:50
Message: <3617ac6c.142146245@news.povray.org>
Nieminen Mika <war### [at] assaricctutfi> wrote:

>  Is this the same bug which appears when a normal map is inside an average
>statement, or is it another one?

don't ask us ... ask the persons who did the patch.


Post a reply to this message

From: Chris Young
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 15:52:02
Message: <3617c2ff.2464066@news.povray.org>
On 4 Oct 1998 08:04:19 -0500, Nieminen Mika <war### [at] assaricctutfi>
wrote:

>  Is this the same bug which appears when a normal map is inside an average
>statement, or is it another one?

That's a different problem.  I'm still investigating if the proposed
patch for normal average has unwanted side-effects.
	Chris Young POV-Team Coordinator


Post a reply to this message

From: Chris Young
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 17:00:58
Message: <3617cb11.4530952@news.povray.org>
On Sat, 03 Oct 1998 13:33:50 -0400, jko <jko### [at] homecom> wrote:

>To all,
>
>The bug I've found is caused by several errors in the bump_map code of
>POV_ray which have been hiding there undiscovered since the DKB Trace
>days. 

>There is also a twist which places
>highlights and shadows at the wrong angles. The distortions vary
>depending on the rotation of the object in space, which should have no
>effect at all.

I've looked at Thorsten's test image and it doesn't appear to fix all
the problems.  Even if it fixes the bumptest scene you posted here in
the newsgroup, I'm not sure it'll fix the egg image you posted on
compuserve.

The problem with the   x  x  vs.    xx
                                      x            x

seems to be a real bug.  The extra normalization looks like a good
idea too.

The real problem (I think) is that we transform the evaluation point
into the pattern's space but we don't transform the normal.  So if the
pattern is rotated, it perturbs the normal the wrong direction.  My
original design for wood, bozo, gradient, etc. normals had the same
problem when I wrote that part of 3.0.  I found an alternative way to
purturb the normal in 3d instead of 2d but the results aren't as
acurate as they should be.  The artifacts in brick normal are a result
of this 3d compromise.  I need to do a big rewrite to transform the
normal.  We'll have to search the warp chain and lots of other messy
things.  We'll also have to find out if it slows things down and can
we only transform the normal as needed.  I'm not sure how hard this
will be.

I could be wrong.  Maybe a slight tweak of your fix really will fix it
but I don't think so.
	Chris Young, POV-Team Coordinator


Post a reply to this message

From: Chris Young
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 17:03:04
Message: <3619d408.6825942@news.povray.org>
On Sat, 03 Oct 1998 13:33:50 -0400, jko <jko### [at] homecom> wrote:

>To all,
>
>The bug I've found is caused by several errors in the bump_map code of
>POV_ray which have been hiding there undiscovered since the DKB Trace
>days. 

>There is also a twist which places
>highlights and shadows at the wrong angles. The distortions vary
>depending on the rotation of the object in space, which should have no
>effect at all.

I've looked at Thorsten's test image and it doesn't appear to fix all
the problems.  Even if it fixes the bumptest scene you posted here in
the newsgroup, I'm not sure it'll fix the egg image you posted on
compuserve.

The problem with the   x  x  vs.    xx
                                      x            x

seems to be a real bug.  The extra normalization looks like a good
idea too.

The real problem (I think) is that we transform the evaluation point
into the pattern's space but we don't transform the normal.  So if the
pattern is rotated, it perturbs the normal the wrong direction.  My
original design for wood, bozo, gradient, etc. normals had the same
problem when I wrote that part of 3.0.  I found an alternative way to
purturb the normal in 3d instead of 2d but the results aren't as
acurate as they should be.  The artifacts in brick normal are a result
of this 3d compromise.  I need to do a big rewrite to transform the
normal.  We'll have to search the warp chain and lots of other messy
things.  We'll also have to find out if it slows things down and can
we only transform the normal as needed.  I'm not sure how hard this
will be.

I could be wrong.  Maybe a slight tweak of your fix really will fix it
but I don't think so.
	Chris Young, POV-Team Coordinator


Post a reply to this message

From: Chris Young
Subject: Re: Bump_map bug - need test compilation
Date: 4 Oct 1998 21:04:44
Message: <36180c0c.21168237@news.povray.org>
Just to follow up on my earlier message...

 VScaleEq(xprime,1.0/Length) does Normalize xprime because Length is
the length of xprime.  So the VScaleEq is ok as it is.  And I've
verified that your patch does not fix the egg grove example.


Post a reply to this message

<<< Previous 1 Messages Goto Initial 10 Messages

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