[Numpy-discussion] Another Array

Robert Kern robert.kern@gmail....
Fri Apr 10 02:21:59 CDT 2009

On Fri, Apr 10, 2009 at 02:17, Anne Archibald <peridot.faceted@gmail.com> wrote:
> 2009/4/10 Ian Mallett <geometrian@gmail.com>:
>> The vectors are used to "jitter" each particle's initial speed, so that the
>> particles go in different directions instead of moving all as one.  Using
>> the unit vector causes the particles to make the smooth parabolic shape.
>> The jitter vectors much then be of a random length, so that the particles go
>> in all different directions at all different speeds, instead of just all in
>> different directions.
> Why not just skip the normalization? Then you'll get vectors with
> random direction and a natural distribution of lengths. And it'll be
> faster than tne unit vectors...

They are going to be forced into a uint8 texture, so they have a
limited dynamic range.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the Numpy-discussion mailing list