POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest new v4.0 'spatial' normal{} perturbation. (yuqk R15 v0.6.9.0) : Suggest new v4.0 'spatial' normal{} perturbation. (yuqk R15 v0.6.9.0) Server Time
27 Jul 2024 12:08:49 EDT (-0400)
  Suggest new v4.0 'spatial' normal{} perturbation. (yuqk R15 v0.6.9.0)  
From: William F Pokorny
Date: 1 Jun 2024 11:11:26
Message: <665b3a1e$1@news.povray.org>
Reference:

https://news.povray.org/povray.unofficial.patches/message/%3C60a268da%241%40news.povray.org%3E/

The general idea with the 'spatial' normal{} perturbation pattern is to 
use only spatial modifiers (warp, rotate, etc) to create various normal 
perturbations. In other words, there isn't any inbuilt perturbation code 
per se, but rather a few post treatments for the difference between the 
true surface intersection point vs its spatially modified location.

It's an attempt to open the door for users to create normal patterns 
based on spatial information in a way sort of like what happens when 
scalar value patterns / functions are used in a normal{} block.

Currently, the only options are three 'type' values in 0,1 and 2.

Zero is the simplest treatment and basically the spatial difference 
weighted by the bump_size.

One is more complicated and it allows bump_sizes much larger than 1.0 
without inverting - so long as the values are not negative.

Two is like (1), but with additional code to prevent larger negative 
bump_size values from inverting the normals (turning lit surface 
contributions black).

Please see the attached files. With respect to the image: Obj_1 is shown 
in the upper left, Obj_2 in the upper right, Obj_3 in the lower left and 
Obj_4 in the lower right.

Lastly I'll add, 'spatial' is the most experimental of the new normal{} 
perturbation patterns added of late.  I've played with a larger 
collection of 'spatial' difference treatments, but only these initial 
three types 'feel' stable enough at this point.

Bill P.


Post a reply to this message


Attachments:
Download 'spatial.pov.txt' (4 KB) Download 'spatialstory.jpg' (73 KB)

Preview of image 'spatialstory.jpg'
spatialstory.jpg


 

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