tools:fluxus_tips_tricks
This is an old revision of the document!
Fluxus tips & tricks
Fluxus : A 3D game engine for livecoding.
Doc
- Fluxus doc extracted and html-ised from the runtime documentation system.
Notes
(blur) and (clear-frame)
(blur) displays a transparent plane over the screen instead of clearing it. The amount of transparency is defined by the blur argument. If it is 1, it means to render a totally opaque plane, which is equivalent to (clear-frame 1). (blur) is enabled when the blur parameter is above 0. in this case, (clear) won't happen. If you would like to enable clear, you have to disable blur first with (blur 0), then (clear-frame 0) will work. When you enable blur, try to use smaller values, like 0.1.
(pdata) and type "c:colour"
(hint-vertcol) is needed to be able to view modified vertex colours.
(clear) (colour (vector 1 0 0)) ; 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"))
tools/fluxus_tips_tricks.1364131636.txt.gz · Last modified: 2013/03/24 14:27 by Julien Deswaef