[Fluxus] different texture on each face
Luis navarro del angel
luisn30 at hotmail.com
Thu Jan 20 10:51:01 PST 2011
Hi,
I am using the texture coordinates to place a different texture on each face of a cube, but i didn't make it work.
Also I used pdata-map! but i didn't had succes.
my code is:
(clear)
(define cubo (build-cube))
(with-primitive cubo
(scale 4)
(texture (load-texture "refmap.png"))
(pdata-add "pos" "v")
(pdata-map! (lambda (pos) (vector 0.5 0.5 0.7)) "pos")
(pdata-map! vadd "t" "pos"))
Thanks a lot,
Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20110120/5543e5ac/attachment-0001.htm>
More information about the Fluxus
mailing list