POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest new v4.0 'niln' normal{} perturbation. (yuqk R15 v0.6.9.0) : Suggest new v4.0 'niln' normal{} perturbation. (yuqk R15 v0.6.9.0) Server Time
13 Nov 2024 03:15:32 EST (-0500)
  Suggest new v4.0 'niln' normal{} perturbation. (yuqk R15 v0.6.9.0)  
From: William F Pokorny
Date: 30 May 2024 15:20:04
Message: <6658d164@news.povray.org>
An implementation of a nil / zero normal{} pattern (niln)

Ref:

https://news.povray.org/povray.binaries.images/message/%3C657b1e7e%241%40news.povray.org%3E

...
default {
     pigment { rgb <0,0.7,0.5>}
     finish { diffuse 0.3 }
     normal { quilted bump_size 0.5 scale 1/6 }
}
#declare TxtrDflt = texture {
     pigment { Pigm99 }
     normal { concrete bump_size -0.2 scale 50 }
     finish { brilliance 3 }
}
...
//--- scene ---
...
#if (frame_number = 1) // R0C0
     object { ObjIso }  // Starts with TxtrDflt assigned
#end
#if (frame_number = 2) // R0C1
     object { ObjIso texture { pigment { rgb <0.5,0.5,0> } } }
#end
#if (frame_number = 3) // R0C2
     object { ObjIso texture { finish  { brilliance 7 } } }
#end
#if (frame_number = 4) // R1C0
     object { ObjIso texture { normal  {} } }
#end
#if (frame_number = 5) // R1C1
     object { ObjIso texture { normal  { niln } } }
#end
#if (frame_number = 6) // R1C2
     object { ObjIso texture {
             TxtrDflt
             pigment { rgb <0.5,0.5,0> } }
         }
#end
#if (frame_number = 7) // R2C0
     object { ObjIso texture {
             TxtrDflt
             finish  { brilliance 7 } }
         }
#end
#if (frame_number = 8) // R2C1
     object { ObjIso texture { TxtrDflt normal  {} } }
#end
#if (frame_number = 9) // R2C2
     object { ObjIso texture { TxtrDflt normal  { niln } } }
#end

Bill P.


Post a reply to this message


Attachments:
Download 'nilnstory.jpg' (165 KB)

Preview of image 'nilnstory.jpg'
nilnstory.jpg


 

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