POV-Ray : Newsgroups : povray.advanced-users : New random distribution macros : Re: New random distribution macros Server Time
15 Oct 2024 18:34:38 EDT (-0400)
  Re: New random distribution macros  
From: Bald Eagle
Date: 4 Mar 2021 14:50:06
Message: <web.604138db296d8a3b1f9dae300@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

> What needs to be done is to calculate the arc length of the curve in the u or v
> direction, and then compensate for that additional distance by clustering more
> random samples in those areas.

So, this just popped into my head, inspired by your comment and my thinking
about Vrand_on_Bezier -

There are the clock / spline macros that plot points uniformly over a spline.
Scan in the data across the u direction, saving to a spline / array, and
increment down the hf in the v direction.

Then rather than plot the point on the hf directly, plot it on the spline.

If those macros work for bezier splines, then that may be a solution for Cousin
Ricky's scene as well.


Post a reply to this message

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