[Fluxus] save-primitive "pixel.png"
Luis navarro del angel
luisn30 at hotmail.com
Wed Oct 27 10:34:03 PDT 2010
Hi,
I am trying to use some pixels as a texture on an other primitive. I
made the manual example, but there's part of my torus that doesn't get
the texture. Why does this happen? Another question is, if I can hide
the plane that has the pixels?
And the final question is if the comand (save-primitive) works to save
a texture, like (save-primitive "pixel.png") because when I do that my
fluxus crashes and the terminal sh owsSIGSEGV fault on 0x8 Aborted.
The example i am using is:
(define mypixels (build-pixels 100 100))
(with-primitive mypixels
(pdata-map!
(lambda (c)
(rndvec))
"c")
(pixels-upload))
(with-state
(texture (pixels->texture mypixels))
(build-torus 1 2 10 10))
Example 2
(define mypixels (build-pixels 100 100))
(with-primitive mypixels
(pdata-map!
(lambda (c)
(rndvec))
"c")
(pixels-upload)
(save-primitive "pixel.png"))
Thanks,
Luis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pawfal.org/pipermail/fluxus-pawfal.org/attachments/20101027/627d4d28/attachment-0001.htm>
More information about the Fluxus
mailing list