[Fluxus] Texture Scrolling
gabor papp
gabor.lists at mndl.hu
Mon Jan 24 00:20:46 PST 2011
hi Ted,
> Now I'm have trouble to make a repeated texture, not a clamped one and
> finally scrolling the texture along the z axis.
this is how i would do it, hope it helps:
(clear)
(texture (load-texture "test.png"))
(define p (build-seg-plane 10 10))
(with-primitive p
(pdata-map!
(lambda (t)
(vmul t 10))
"t"))
(every-frame
(with-primitive p
(pdata-map!
(lambda (t)
(vadd t #(0 .1 0)))
"t")))
best,
gabor
More information about the Fluxus
mailing list