Discussion:
addressing issue in openframeworks
(too old to reply)
pedro
2016-04-08 02:40:51 UTC
Permalink
hello all

i am pedro soler and i am new to the list. i am currently working in
Ecuador with the artist Daniela Moreno Wray on an interactive installation
called Transmestizx.

a collaborator created a software for displaying video on a raspberry pi
that is controlled from Pure Data via OSC.

the software has 2 layers of video works well but we need to add a third
layer or channel and this breaks the OSC addressing - or rather OSC still
considers there are only 2 layers.

i cant work out (and the collaborator has disappeared!) where in the code
it is specified that there are only 2 channels or mediaframes - it looks
dynamic to me !

the code is here http://codepaste.net/pyd8k7
the third layer/mediaframe has been added in line 55 and line 161 and it
draws fine, just cant work out how to modify the code to address the 3
layers !!!

any help would be highly appreciated

many thanks

pedro
--
Pedro Soler
0986855145
Brandon James
2016-04-08 21:39:26 UTC
Permalink
Take a look at line 300 or so...
I'm not a C++ programmer, but that looks like your problem to me.
Post by pedro
hello all
i am pedro soler and i am new to the list. i am currently working in
Ecuador with the artist Daniela Moreno Wray on an interactive installation
called Transmestizx.
a collaborator created a software for displaying video on a raspberry pi
that is controlled from Pure Data via OSC.
the software has 2 layers of video works well but we need to add a third
layer or channel and this breaks the OSC addressing - or rather OSC still
considers there are only 2 layers.
i cant work out (and the collaborator has disappeared!) where in the code
it is specified that there are only 2 channels or mediaframes - it looks
dynamic to me !
the code is here http://codepaste.net/pyd8k7
the third layer/mediaframe has been added in line 55 and line 161 and it
draws fine, just cant work out how to modify the code to address the 3
layers !!!
any help would be highly appreciated
many thanks
pedro
--
Pedro Soler
0986855145
_______________________________________________
OSC_dev mailing list
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev
Brandon James
2016-04-08 21:42:48 UTC
Permalink
This code -

int mediaIndex = 0;

// Select the media frame.
if(requestMediaFrameChannel == "ch1"){
ofLog(OF_LOG_NOTICE, "__Channel 1 Selected");
mediaIndex = 0;

}if(requestMediaFrameChannel == "ch2"){
ofLog(OF_LOG_NOTICE, "__Channel 2 Selected");
mediaIndex = 1;

}else{
mediaIndex = 0;
}

sets mediaIndex to 0 if it's not "ch1" or "ch2".
Post by Brandon James
Take a look at line 300 or so...
I'm not a C++ programmer, but that looks like your problem to me.
Post by pedro
hello all
i am pedro soler and i am new to the list. i am currently working in
Ecuador with the artist Daniela Moreno Wray on an interactive installation
called Transmestizx.
a collaborator created a software for displaying video on a raspberry pi
that is controlled from Pure Data via OSC.
the software has 2 layers of video works well but we need to add a third
layer or channel and this breaks the OSC addressing - or rather OSC still
considers there are only 2 layers.
i cant work out (and the collaborator has disappeared!) where in the code
it is specified that there are only 2 channels or mediaframes - it looks
dynamic to me !
the code is here http://codepaste.net/pyd8k7
the third layer/mediaframe has been added in line 55 and line 161 and
it draws fine, just cant work out how to modify the code to address the 3
layers !!!
any help would be highly appreciated
many thanks
pedro
--
Pedro Soler
0986855145
_______________________________________________
OSC_dev mailing list
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev
pedro
2016-04-08 23:05:43 UTC
Permalink
thanks brandon,

i'll play with that next week when i get back into the studio
will let you know

best
pedro
Post by Brandon James
This code -
int mediaIndex = 0;
// Select the media frame.
if(requestMediaFrameChannel == "ch1"){
ofLog(OF_LOG_NOTICE, "__Channel 1 Selected");
mediaIndex = 0;
}if(requestMediaFrameChannel == "ch2"){
ofLog(OF_LOG_NOTICE, "__Channel 2 Selected");
mediaIndex = 1;
}else{
mediaIndex = 0;
}
sets mediaIndex to 0 if it's not "ch1" or "ch2".
Post by Brandon James
Take a look at line 300 or so...
I'm not a C++ programmer, but that looks like your problem to me.
Post by pedro
hello all
i am pedro soler and i am new to the list. i am currently working in
Ecuador with the artist Daniela Moreno Wray on an interactive installation
called Transmestizx.
a collaborator created a software for displaying video on a raspberry pi
that is controlled from Pure Data via OSC.
the software has 2 layers of video works well but we need to add a third
layer or channel and this breaks the OSC addressing - or rather OSC still
considers there are only 2 layers.
i cant work out (and the collaborator has disappeared!) where in the
code it is specified that there are only 2 channels or mediaframes - it
looks dynamic to me !
the code is here http://codepaste.net/pyd8k7
the third layer/mediaframe has been added in line 55 and line 161 and
it draws fine, just cant work out how to modify the code to address the 3
layers !!!
any help would be highly appreciated
many thanks
pedro
--
Pedro Soler
0986855145
_______________________________________________
OSC_dev mailing list
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev
_______________________________________________
OSC_dev mailing list
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev
--
Pedro Soler
0986855145
pedro
2016-05-05 08:06:52 UTC
Permalink
hi brandon,,

yes it was that . solution was "else if" for the new layers

thanks a lot !

btw its part of this project http://dmw.hotglue.me/transmestiza

saludos

pedro
Post by Brandon James
This code -
int mediaIndex = 0;
// Select the media frame.
if(requestMediaFrameChannel == "ch1"){
ofLog(OF_LOG_NOTICE, "__Channel 1 Selected");
mediaIndex = 0;
}if(requestMediaFrameChannel == "ch2"){
ofLog(OF_LOG_NOTICE, "__Channel 2 Selected");
mediaIndex = 1;
}else{
mediaIndex = 0;
}
sets mediaIndex to 0 if it's not "ch1" or "ch2".
Post by Brandon James
Take a look at line 300 or so...
I'm not a C++ programmer, but that looks like your problem to me.
Post by pedro
hello all
i am pedro soler and i am new to the list. i am currently working in
Ecuador with the artist Daniela Moreno Wray on an interactive installation
called Transmestizx.
a collaborator created a software for displaying video on a raspberry pi
that is controlled from Pure Data via OSC.
the software has 2 layers of video works well but we need to add a third
layer or channel and this breaks the OSC addressing - or rather OSC still
considers there are only 2 layers.
i cant work out (and the collaborator has disappeared!) where in the
code it is specified that there are only 2 channels or mediaframes - it
looks dynamic to me !
the code is here http://codepaste.net/pyd8k7
the third layer/mediaframe has been added in line 55 and line 161 and
it draws fine, just cant work out how to modify the code to address the 3
layers !!!
any help would be highly appreciated
many thanks
pedro
--
Pedro Soler
0986855145
_______________________________________________
OSC_dev mailing list
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev
_______________________________________________
OSC_dev mailing list
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev
--
Pedro Soler
0986855145
Loading...