POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest v4.0 inbuilt f_popnrm_rnoise(). (yuqk R16 v0.6.10.0) : Re: Suggest v4.0 inbuilt f_popnrm_rnoise(). (yuqk R16 v0.6.10.0) Server Time
21 Nov 2024 04:43:40 EST (-0500)
  Re: Suggest v4.0 inbuilt f_popnrm_rnoise(). (yuqk R16 v0.6.10.0)  
From: William F Pokorny
Date: 1 Nov 2024 15:11:12
Message: <672527d0$1@news.povray.org>
On 11/1/24 08:40, William F Pokorny wrote:
> Mind running - what if we stick this noise only inside more usual shape 
> functions or inbuilt shapes as part of a function. I bet they'd all show 
> up...

Attached an image where I filled text object characters with noise as a 
function for an isosurface. Here not that fast because the inside test 
for a single text string like "Halloween" is slow.

#declare Fn01 = function {
     pattern {
         bool_object {  // In POV-Ray proper this called 'object'
             text {     // yuqk has also list_object etc.
                 ttf "timrom.ttf" "Halloween"
                 0.15, 0.001
                 translate <-2.0,0,0>
             }
         }
     }
}
#declare Fn02 = function (x,y,z) {
     (Fn01(x*3,y*3,z*3) > 0.0)*f_popnrm_rnoise(x,y,z,now,1)
}

No real shape - just enough +-noise that the isosurface root finder 
finds plenty of roots.

Bill P.


Post a reply to this message


Attachments:
Download 'fillewithnoise.png' (78 KB)

Preview of image 'fillewithnoise.png'
fillewithnoise.png


 

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