Hello list Been back to Fluxus and I have some questions. I'm using fluxus-0.18 from Dave's ppa on Ubuntu 12.04.
I have a hard time figuring how pdata type "c:colour" works.
Here's the code
(colour (vector 1 0 0))
(define myCube (build-cube))
(with-primitive myCube
(display (pdata-ref "c" 0))(newline)
(pdata-set! "c" 0 (vector 0 1 0 1))
(display (pdata-ref "c" 0))(newline))
; returns
; #(0.0 0.0 0.0 1.0)
; #(0.0 1.0 0.0 1.0)
See the screenshot attached to this mail.
I was expecting it to first return #(1.0 0.0 0.0 1.0)
and then to set the vertex 0 to color green.
But none of these happen.
What am I doing wrong?
Another question:
Have a .fluxus.scm script in my /home/user folder but Fluxus doesn't
seem to load it when it starts. Should it be somewhere else?
Thanks so much
Cheers
Julien
<<attachment: fluxus-0.18-pdata-c.png>>
