[Fluxus] pixels-renderer weirdness
Kassen
signal.automatique at gmail.com
Sun Jan 30 11:00:22 PST 2011
Dear list,
I was just playing with a old example by Gabor that I modified a bit. This
is what I have now;
(clear)
; create a new pixel primitive with active renderer
(define p (build-pixels 256 256 #t))
;(with-primitive p (hide 1))
(define (animate)
; draw a cube in the pixel primitive
(with-pixels-renderer p
(identity)
(clear-colour 0)
(blur .01)
(rotate (vector (* 82 (time))
(* 11 (time))
(* 8 (time))))
(scale 5)
(hint-none)
(hint-wire)
(draw-cube))
; use the pixel primitive as a texture on a cube
(texture (pixels->texture p))
(translate (vector 2 0.5 0))
(hint-unlit)
(backfacecull 0)
(draw-cube))
(every-frame (animate))
------------------------
Now for the questions;
* For some reason hiding p also makes the animation go away. Is that
expected behaviour? If at all realistic I'd like to be able to hide p yet
still have a animated texture.
* Something here is causing transparency of the texture, but not of the
pixel primitive. This looks cool but I don't understand where it comes from.
For a moment I thought that (colour x) was being translated to (colour
(vector x x x x)) where x=0 would lead to transparency, but (colour 1) also
gives transparency.
* I also don't understand why it's inconsistent, with some faces being
transparent when "looking in", others only "looking out". You'll probably
have to rotate the whole thing about a bit to see what I mean.
Yours,
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20110130/a8aa50f1/attachment-0001.htm>
More information about the Fluxus
mailing list