POV-Ray : Newsgroups : povray.binaries.animations : grass blowing in the wind (animation) : Re: grass blowing in the wind (animation) Server Time
1 Jun 2024 06:10:38 EDT (-0400)
  Re: grass blowing in the wind (animation)  
From: Kenneth
Date: 20 Sep 2010 07:30:01
Message: <web.4c9744cd40e56284196b08580@news.povray.org>
"Tek" <tek### [at] evilsuperbraincom> wrote:
> "Kenneth" <kdw### [at] earthlinknet> wrote in message
> > ...I'm essentially using the spline as an array, just
> > a holder of a certain number of random values.
>
> Nice! Are the values actually random? Have you considered using perlin noise
> instead? (i.e. f_spotted(x,0,0))
> Much of my time with POV has been spent finding interesting uses for perlin
> noise!

That's an interesting idea; hadn't considered it.  (The macro just takes a
user-chosen seed value and creates its many random spline values from that.) I
don't exactly understand how I would pull a string of 'different' values out of
f_spotted(x,0,0) to create the spline with; would something like this work?
(Just a general example)...

f_spotted(200*counter,0,0) // counter is just some advancing integer

I.e., translating the pattern a fair distance each count, to get a new 'random'
value each time?

Ken


Post a reply to this message

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