[PD] Text projection in real time
Hello list, I was looking on the best way to display some texts which will be produced/improvised in realtime. These will be acessible either as a list, OSC, or on a file. I tried gem's 2dtext and [flatgui/entry], but they both don't work that well, as some or all of the following aren't possible: - centered text - some texts are long, so the paragraphs have to break at the end of a word - black background, white font - font and size will be chosen later - fullscreen on a 2nd screen (to be projected) I imagine the word sliptting and text centering can be calculated in Pd so that Gem displays it correctly, but I'm not sure I'll have the time for it. So trying another solution such as coordinating with Processing or similar would be an option, in case it's easier to implement. Are there any suggestions on how to tackle this? Best, jmmmp ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] Text projection in real time
for text display the browser is a naturally choice. I once did some experiments sending and receiving Pd messages with a minimal websockets implementation and it worked fine. > Gesendet: Mittwoch, 28. Februar 2018 um 19:31 Uhr > Von: "João Pais" > An: PD-List > Betreff: [PD] Text projection in real time > > Hello list, > > I was looking on the best way to display some texts which will be > produced/improvised in realtime. These will be acessible either as a list, > OSC, or on a file. > > I tried gem's 2dtext and [flatgui/entry], but they both don't work that > well, as some or all of the following aren't possible: > - centered text > - some texts are long, so the paragraphs have to break at the end of a word > - black background, white font - font and size will be chosen later > - fullscreen on a 2nd screen (to be projected) > > I imagine the word sliptting and text centering can be calculated in Pd so > that Gem displays it correctly, but I'm not sure I'll have the time for > it. So trying another solution such as coordinating with Processing or > similar would be an option, in case it's easier to implement. > > Are there any suggestions on how to tackle this? > > Best, > > jmmmp > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list > ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] Text projection in real time
Have you tried ofelia ? it's pretty new but there are some objects available for text display and it should be pretty straigthforward with [ofDrawText] and [ofSetTextMode] https://github.com/cuinjune/ofxOfelia It should pretty do-able with processing aswell. 2018-02-28 20:17 GMT+01:00 Christof Ressi : > for text display the browser is a naturally choice. I once did some > experiments sending and receiving Pd messages with a minimal websockets > implementation and it worked fine. > > > Gesendet: Mittwoch, 28. Februar 2018 um 19:31 Uhr > > Von: "João Pais" > > An: PD-List > > Betreff: [PD] Text projection in real time > > > > Hello list, > > > > I was looking on the best way to display some texts which will be > > produced/improvised in realtime. These will be acessible either as a > list, > > OSC, or on a file. > > > > I tried gem's 2dtext and [flatgui/entry], but they both don't work that > > well, as some or all of the following aren't possible: > > - centered text > > - some texts are long, so the paragraphs have to break at the end of a > word > > - black background, white font - font and size will be chosen later > > - fullscreen on a 2nd screen (to be projected) > > > > I imagine the word sliptting and text centering can be calculated in Pd > so > > that Gem displays it correctly, but I'm not sure I'll have the time for > > it. So trying another solution such as coordinating with Processing or > > similar would be an option, in case it's easier to implement. > > > > Are there any suggestions on how to tackle this? > > > > Best, > > > > jmmmp > > > > ___ > > Pd-list@lists.iem.at mailing list > > UNSUBSCRIBE and account-management -> https://lists.puredata.info/ > listinfo/pd-list > > > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> https://lists.puredata.info/ > listinfo/pd-list > -- http://b2renger.github.io/ http://berengerrecoules.wordpress.com/ ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] Text projection in real time
Hello João, Le 28/02/2018 à 19:31, João Pais a écrit : > Hello list, > > I was looking on the best way to display some texts which will be > produced/improvised in realtime. These will be acessible either as a > list, OSC, or on a file. > > I tried gem's 2dtext and [flatgui/entry], but they both don't work that > well, as some or all of the following aren't possible: You mean [text2d] for the Gem object... In term of performance, I prefer to use [text3d]... depending of what you need. > - centered text > - some texts are long, so the paragraphs have to break at the end of a word > - black background, white font - font and size will be chosen later > - fullscreen on a 2nd screen (to be projected) Everything here is doable with [text2d]/[text3d]. > > I imagine the word sliptting and text centering can be calculated in Pd > so that Gem displays it correctly, but I'm not sure I'll have the time > for it. So trying another solution such as coordinating with Processing > or similar would be an option, in case it's easier to implement. Centering text is by default with [text2d]/[text3d]. You can change this with the message "justify". To cut a sentence after a word when a certain amount of letter is present is not very difficult using [list fromsymbol], [list prepend 10], [list prepend string]/[list trim] (for text2d]/[text3d]). You can even change line spacing with the message "linedist" on recent Gem. ++ Jack > > Are there any suggestions on how to tackle this? > > Best, > > jmmmp > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] Text projection in real time
Hi João, I used [text3d] in GEM for my "Typing Hero" piece at the last PdCon. It was a piece for 3 networked laptop players to type text read in from a text file to play Bach 3-part inventions. I found that [text3d] did everything I needed and worked as expected for all the issues you mention, except that handling long texts was an issue. Here's a video from that night: https://youtu.be/IACzW39PnW8 On Wed, Feb 28, 2018 at 5:03 PM, Jack wrote: > Hello João, > > Le 28/02/2018 à 19:31, João Pais a écrit : > > Hello list, > > > > I was looking on the best way to display some texts which will be > > produced/improvised in realtime. These will be acessible either as a > > list, OSC, or on a file. > > > > I tried gem's 2dtext and [flatgui/entry], but they both don't work that > > well, as some or all of the following aren't possible: > > You mean [text2d] for the Gem object... In term of performance, I prefer > to use [text3d]... depending of what you need. > > > - centered text > > - some texts are long, so the paragraphs have to break at the end of a > word > > - black background, white font - font and size will be chosen later > > - fullscreen on a 2nd screen (to be projected) > > Everything here is doable with [text2d]/[text3d]. > > > > > I imagine the word sliptting and text centering can be calculated in Pd > > so that Gem displays it correctly, but I'm not sure I'll have the time > > for it. So trying another solution such as coordinating with Processing > > or similar would be an option, in case it's easier to implement. > > Centering text is by default with [text2d]/[text3d]. You can change this > with the message "justify". > To cut a sentence after a word when a certain amount of letter is > present is not very difficult using [list fromsymbol], [list prepend > 10], [list prepend string]/[list trim] (for text2d]/[text3d]). > > You can even change line spacing with the message "linedist" on recent Gem. > ++ > > Jack > > > > > > Are there any suggestions on how to tackle this? > > > > Best, > > > > jmmmp > > > > ___ > > Pd-list@lists.iem.at mailing list > > UNSUBSCRIBE and account-management -> > > https://lists.puredata.info/listinfo/pd-list > > > ___ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> https://lists.puredata.info/ > listinfo/pd-list > -- William Brent www.williambrent.com “Great minds flock together” Conflations: conversational idiom for the 21st century www.conflations.com ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list