POV-Ray : Newsgroups : povray.binaries.images : Normals have a directional bias : Normals have a directional bias Server Time
25 Apr 2024 12:40:04 EDT (-0400)
  Normals have a directional bias  
From: Cousin Ricky
Date: 5 Jan 2021 12:50:04
Message: <5ff4a6cc$1@news.povray.org>
Normals appear to have an inherent directional bias independent of 
pattern.  To eliminate as a variable any bias in a built-in pattern, I 
used an explicit normal function.  The two images should be mirror 
images of each other, but they are not.  The bias shows in all versions 
from 3.5 to 3.8.

----------[BEGIN CODE]----------
// +KFF2
#version max (3.5, min (3.8, version));

global_settings { assumed_gamma 1 }

light_source { <(frame_number = 2? 1: -1), 1, -1.4> * 1000, rgb 1 }

camera
{ location -6 * z
   right x
   angle 30
}

box
{ 0, 3
   pigment { rgb <1, 0.5, 0.5> }
   normal
   { function
     { max
       ( select (x - 1, 1, select (x - 2, 0, 1)),
         select (y - 1, 1, select (y - 2, 0, 1))
       )
     }
     accuracy 0.1
   }
   translate <-1.5, -1.5, 0>
}
-----------[END CODE]-----------


Post a reply to this message


Attachments:
Download 'normal_bias1.png' (2 KB) Download 'normal_bias2.png' (2 KB)

Preview of image 'normal_bias1.png'
normal_bias1.png

Preview of image 'normal_bias2.png'
normal_bias2.png


 

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