POV-Ray : Newsgroups : povray.general : normal average bug (?) in beta6 : Re: normal average bug (?) in beta6 Server Time
16 Nov 2024 09:20:32 EST (-0500)
  Re: normal average bug (?) in beta6  
From: Nieminen Mika
Date: 2 Sep 1998 06:51:58
Message: <35ed153e.0@news.povray.org>
Nathan Kopp <nk8### [at] ltuedu> wrote:
: I've got a bit of experience with working with textures in POV.  I'd be
: interested in trying my hand at fixing the bug.  Please provide more details
: (in terms of POV files that work and some that show the bug) and I'll do
: my best to track it down.

// Average normal bug test.
// Lower box shows ordinary normal map, upper box averaged one (buggy)
camera { location <-5,0,-2> look_at <0,0,0> angle 35 }
light_source { <0,0,-1> color 1 }

#declare TestNormal=
normal
{ gradient x 1
  slope_map
  { [0 <0,0>] [.2 <0,0>] [.2 <0,1>] [.4 <1,1>] [.4 <1,0>]
    [.6 <1,0>] [.6 <1,-1>] [.8 <0,-1>] [.8 <0,0>] [1 <0,0>]
  }
}
#declare TestTexture=texture { pigment { rgb 1 } normal { TestNormal } }
#declare TestAverage=
texture
{ average texture_map
  { [TestTexture rotate z]
    [TestTexture rotate z*90]
  }
}
box { <-2.5,.05,0><5,2,.1> texture { TestAverage scale 2} }
box { <-2.5,-.05,0><5,-2,.1> texture { TestTexture scale 2} }


-- 
                                                           - Warp. -


Post a reply to this message

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