[PD] letters that move to their correct position to form readable text

tim vets timvets at gmail.com
Tue Aug 18 20:39:39 CEST 2009


Hello,

Thanks for sharing your insights!
The project turned out to be a little different from what I first thought
though.

Now it's like this:

A text is shown, but only the word lengths are correct, most letters are
randomly swapped with another letter in the text. The letters one by one
flip back to their original position in the text.

so it would go from:

"taxbe ieis eal'est ih I gvin ae tyampse ki wuam it sfohld looa lofe"
to
"maybe it's easiest if I give an example of what it should look like"

...letter per letter, so in <n> steps where <n> is the number of non-space
caracters in the text.
In the starting situation, spaces stay in place, all other caracters are
exchanged with other letters in the text randomly.

So I suppose it comes down to processing text in some way (list-abs, pyext,
...??) and sending the results to a text3d object.
btw: Does text3d support a newline character ?

Thanks again,
Tim


2009/8/14 Max <abonnements at revolwear.com>

> hi tim,
>
> additionally to what frank said you might want to use a font with fixed
> width, otherwise you need to parse the kerning information somehow. with a
> fixed width you can just count the letter position and add the space to the
> x-position. use [text3d].
>
> max
>
>
>
> Am 14.08.2009 um 10:44 schrieb Frank Barknecht:
>
>
>  Hallo,
>> info at timvets.net hat gesagt: // info at timvets.net wrote:
>>
>>  I'm looking for a way to do this:
>>> Show text where the letters are positioned randomly across the screen.
>>> Then gradually move the letters towards their correct position, to show
>>> the original, readable text...
>>>
>>
>> For showing letters you could use Gem.
>>
>> Then use pmpd or msd to do the smooth movement with some physical feeling.
>> Just
>> add some fixed mass points to the line(s) of text you want to fill, and
>> add
>> mobile masses connected by links to their respective fixed/final
>> positions.
>> Turn off all links by setting the "k" rigidity parameter to 0, spread out
>> the
>> letters in random positions, then turn on the "k" again to let the masses
>> start
>> moving.
>>
>> Ciao
>> --
>> Frank
>>
>> _______________________________________________
>> Pd-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20090818/ece6c6d0/attachment.htm>


More information about the Pd-list mailing list