[Fluxus] texture problems
gabor papp
gabor.lists at mndl.hu
Wed Apr 8 13:22:06 PDT 2009
> Hmm... could the difference be the order we're defining the quads? my
i was checking the default (build-plane). flipping in x is not a problem
anymore, it was caused by (poly-convert-to-indexed). i'm more concerned
that we flip in y during the png load and now in save. i think the
reversed order is confusing if you do image processing and pixel operations.
> What's your testcode look like now?
(clear)
(show-axis 1)
(texture (load-texture "textures/flower.png"))
(define p (build-plane))
(with-primitive p
(for ([i (in-range (pdata-size))])
(printf "~a: p: ~a t: ~a~n" i (pdata-ref "p" i) (pdata-ref "t" i))))
best,
gabor
More information about the Fluxus
mailing list