|
|
I recently made a post about rolling your own random noise generators
with f_hash() over in the v4.0 forum:
https://news.povray.org/povray.pov4.discussion.general/thread/%3C674b018b%40news.povray.org%3E/
I found myself with a few hours to burn this afternoon so I gave
creating a special noise video a try based upon f_hash(). The core
of the code is:
#include "functions.inc"
#declare Seed00 = 7834.5540283051168443;
#declare Delta = 880+frame_number*0.00002;
#declare Step = sqrt(Delta) *0.00025;
#declare Fn2Dlen = function (x,y) {
f_2x_f32_vlength(f_enc2x_f32(x,y))
}
#declare Fn00 = function {
f_hash(
(
f_hash(Fn2Dlen(x+Delta,y+Delta),Seed00,Step,0)+
f_hash(Fn2Dlen(x-Delta,y+Delta),Seed00,Step,0)+
f_hash(Fn2Dlen(x+Delta,y-Delta),Seed00,Step,0)+
f_hash(Fn2Dlen(x-Delta,y-Delta),Seed00,Step,0)
),
Seed00,0,0)
}
#declare Pigm00 = pigment {
function { Fn00(x,y,z) }
}
Above there are four distance to x,y coordinate based f_hash()s feeding
a final f_hash() function - all using the same seed value. An mp4 video
attached.
Bill P.
Post a reply to this message
Attachments:
Download 'try.mp4.dat' (2790 KB)
|
|