[Fluxus] fbo-pixels merged to master
Dave Griffiths
dave at pawfal.org
Tue Jul 21 04:52:15 PDT 2009
Great! Thanks Gabor.
Did we ever add the switch to turn off clearing the pixel-primitive each
frame (and retain the existing behaviour)?
Were there any other things that needed looking at?
cheers,
dave
On Tue, 2009-07-21 at 13:44 +0200, gabor papp wrote:
> hi all,
>
> render to texture support is merged from the fbo-pixels branch to master.
>
> simple example how to use it:
>
> (clear)
>
> ; create a new pixel primitive with active renderer
> (define p (build-pixels 256 256 #t))
>
> (define (animate)
> ; draw a cube in the pixel primitive
> (with-pixels-renderer p
> (identity)
> (clear-colour .2)
> (rotate (vector (* 82 (time))
> (* 11 (time))
> (* 8 (time))))
> (scale 5)
> (draw-cube))
> ; use the pixel primitive as a texture on a cube
> (texture (pixels->texture p))
> (translate (vector 2 0.5 0))
> (draw-cube))
>
> best,
> gabor
More information about the Fluxus
mailing list