Hi again, On 3/19/13, Julien Deswaef <[email protected]> wrote: > 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.
You just need to set (hint-vertcols) either before building the cube or inside the with-primitive section to have it actually use the vertex colours. (clear) (colour (vector 1 0 0 1)) ; next line makes previous line irrelevant (hint-vertcols) (define cube (build-cube)) ; cube is all black (with-primitive cube (pdata-map! (lambda (c) (vector (flxrnd)(flxrnd)(flxrnd) 1)) "c")) I don't remember but I probably copied this from the manual. good luck, have fun :) -- Rob
