POV-Ray : Newsgroups : povray.binaries.images : NOISE BLOBS FOR THE CRESTS OF OCEAN WAVES Server Time
6 Aug 2024 21:36:18 EDT (-0400)
  NOISE BLOBS FOR THE CRESTS OF OCEAN WAVES (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Kenneth
Subject: Re: NOISE BLOBS FOR THE CRESTS OF OCEAN WAVES
Date: 28 Nov 2006 12:10:00
Message: <web.456c6cd0d6d04fcfb5347a330@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> wrote:
> I still think this wouldn't solve my problem, all it does is add noise on
> top of the controlling function, so you still get sharp edges.
>
> You should render the close up with a lower camera position, so it has a
> more edge-on view of the sharp edge, at the moment the sharpness is mostly
> round the edge of the blobs so you can't really tell how sharp/smooth it is.
>

Yes, I see your...point.  ;-)

Here's a close-up view of image #3, "in the curl," to try and show the true
nature of what's going on. The noise does indeed come to a sharp point as
it reaches the tips of the triangle waves. You're right. But then it comes
back with a vengeance--in its typical rounded form--right after that.

I could be wrong, but I don't think there is a *particular* controlling
function at work here.  That is, POV-Ray seems to treat each of the three
functions "equally," so that the final result is a blending of all
three...but only where all three functions happen to coincide in space. At
least, that's what I see from the purely visual evidence.

The stretched-out nature of the noise is the result of TWO things, it seems:
 the "curling function" that I added to it; and the curled triangle waves
themselves. I had originally assumed that ONLY the curling
function-added-to-noise was responsible.

Another little thought struck me: Fading in even smaller-scale noise--but
only out at the extreme tips--to further break up the noise that's already
there  Might add a bit more realism.

Ken


Post a reply to this message


Attachments:
Download 'iso_waves_7.jpg' (53 KB)

Preview of image 'iso_waves_7.jpg'
iso_waves_7.jpg


 

From: Tek
Subject: Re: NOISE BLOBS FOR THE CRESTS OF OCEAN WAVES
Date: 28 Nov 2006 19:58:36
Message: <456cdb3c$1@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote in message 
news:web.456c6cd0d6d04fcfb5347a330@news.povray.org...
> I could be wrong, but I don't think there is a *particular* controlling
> function at work here.  That is, POV-Ray seems to treat each of the three
> functions "equally," so that the final result is a blending of all
> three...but only where all three functions happen to coincide in space. At
> least, that's what I see from the purely visual evidence.

Well it's not up to pov, it's maths, but yes you're right I used the term 
"controlling" to over-emphasize my point :-D

The point is, no functions can eliminate the underlying hard-edged function, 
but as you rightly demonstrate they can disguise it. It's certainly less 
noticeable in that render than I expected.

Anyway, onto a possible solution I've been toying with in my head, though as 
noted before the hard edges in my scene just don't bug me enough to go to 
the trouble of fixing them! But anyhow, the solution is to smooth out the 
edges in the underlying function itself, which is entirely possible by 
simply creating a function that looks like it everywhere else.

For a general purpose solution, if you have a function f(x,y,z) returning 
values between 0 and 1 and you want sharp edges to fade out as it approaches 
1 you could just do (warning crazy untested maths!):
function { max(min(.9, f(x,y,z)), 1-.1*(pow(f(x,y,z)/(2*.1),2)+.75) ) }
Pretty sure that maths is right... Basically you're substituting a y=x curve 
with a y=x*x, matched up so the transition is at the point where x*x has the 
same gradient... hmm I should probably test that maths but it's late and 
anyway it's no use to me...

You see my problem's more complex, because I have, quite deliberately, made 
the foam occur on a pattern that isn't strictly related to the output of my 
wave function, so I can't simply use my trickery to round off the edges. 
However I could subtract my foam's controlling pattern from my wave pattern, 
since they both have sharp edges that coincide, and hope they cancel out! 
But more likely it would severely alter the shape of the foamy areas and I 
really don't want to do that. I'm very happy with the shape of the foam, so 
if I can't isolate the sharp edges and smooth only them, I'll just have to 
live with them.

-- 
Tek
http://evilsuperbrain.com


Post a reply to this message

From: St 
Subject: Re: Noise blobs for the crests of ocean waves
Date: 10 Dec 2006 15:23:24
Message: <457c6cbc$1@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote in message 
news:web.45642ca9d6d04fcf838ba8a10@news.povray.org...
> "Stephen" <mcavoys_AT_aolDOT.com> wrote:
>> "Kenneth" <kdw### [at] earthlinknet> wrote:
>
>>These waves look like a swell coming in from
>> the Atlantic with the wind building up to force 8 or 9.
>>
>
> Right you are! I live near the coast of Virginia, USA, and we get crazy
> "Nor'easter" storms all the time. One is going on right now, in fact. 
> Would
> love to be down at the oceanfront to witness it!


     You should see the waves hitting the side of our coast road in North 
Wales - the cops close the 5 mile long road because the waves carry rocks!

      <bad for your car and head!>

      Nice experiment Ken. Looks good to me.

       (Subject sorted)  Heh...  ;)


        ~Steve~




> Ken


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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