[fluxus] howto call more objects into the scene
alejo.duque at europeangraduateschool.net
alejo.duque at europeangraduateschool.net
Thu Oct 20 14:48:56 PDT 2005
hiall, im needing some help on understanding how can one create in the
scene new objects..ive been looking to the grab ungrab functions but i
will like to say have new cubes added via an OSC message that counts up
randomly.
so if it changes from 1 to 2, there will be a second cube in the scene...
i have this very basic code, and im sure is not the right way...im
beginning to learn about scheme so plis forgive my newbiness
; this is a very basic example, few things are not ready there, as said
above i want to find a way to solve the creation of new objects in the
scene according to an incremental number that arrives via OSC.
thanks for any pointer,
/alejo
:::::::::::::::::::::::::::
(desiredfps 50)
(clear)
(hint-wire)
;;(save-name inOSCbase.scm)
(osc-source "8000")
(gain 1000)
(define (test)
(push)
(osc-msg "/pc")
;;(osc index)
;;(translate (vector (osc 0) (osc 1) (osc 2)))
;;(rotate (vector 1 1 (osc 2)))
;;(colour (vector (osc 0) (osc 1) 5))
(draw-cube)
(pop))
(show-axis 1)
;(display (osc-peek)) (newline)
;(every-frame "(c)")
;;;;con solo pone run osc #
;;;;que no corresponada la pantalla se llena de
;;;;ERROR: Wrong type of argument
(colour (vector 0 0 0)) ;COLOR NEGRO 000
(define a (build-nurbs-sphere 5 10))
(push)
(parent a)
(colour (vector .1 .1 .1)) ;COLOR GRIS OSCURO
(translate (vector 0 2 0))
(define b (build-cube))
(rotate (vector 45 45 (gh 1)))
(pop)
(push)
(parent b)
(colour (vector 1 .6 (flxrnd))) ;COLOR GRIS OSCURO
(translate (vector 0 2 0))
(define c (build-cube))
(pop)
(draw-cylinder)
More information about the Fluxus
mailing list