[fluxus] particle sprites fix

nik gaffney nik at fo.am
Wed Nov 30 03:27:09 PST 2005


> just committed a fix for the sprites, they now always orient themselves in
> camera space, and face forward so you can actually see them with backface
> culling on :)

great. saves me from asking you some long tedious questions about points and
sprites in (hint-points) vs (hint-anti-alias) :)

> they also have "s" pdata for individually scaling the sprites
> 
> (define (init n)
>     (pdata-set "p" n (vector (flxrnd)(flxrnd)(flxrnd)))
>     (pdata-set "s" n (vmul (vector (flxrnd)(flxrnd)(flxrnd)) 0.2))
>     (if (< n 1)
>         0
>         (init (- n 1))))
> 
> (clear)
> (define p (build-particles 10))
> (grab p)
> (init (pdata-size))
> (ungrab)
> (show-axis 1)
> 
> 
> _______________________________________________
> fluxus mailing list
> fluxus at lists.pawfal.org
> http://lists.pawfal.org/listinfo.cgi/fluxus-pawfal.org




More information about the Fluxus mailing list