We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone,
I'm a code-illiterate graphic designer working on a project. The idea is to use text (made in worpad) as values to create random 3D volumes (or, if it not possible a 2D interpretation of such text - kind of the reverse effect of the JPEG-to-ASCII post) I want to thank you beforehand for your all help and patience!
Answers
Each character of a text is just a number: the Ascii code or Unicode code point value. How you exploit this number is another matter...
You can also exploit other numbers, like the length of the word the char is in, the length of the paragraph, etc.
Hi PhiLho,
Sorry for the incredibly late response. I was very intrigued by how deceptively easy the whole idea was, so I've been working with my teacher to improve upon the basis of the project. I told him about your toughts and he concurred. Every character is just a set of 1s and 0s. So now we're working on making those numbers transform into random 3d shapes (e.j Build would somehow be interpreted as a random shape, while Tear would constitute an entire different shape)
I'm still learning the very basics, so I'm not sure if using something like the beginShape() endShape(); would be an appropiate workflow. Do you have any suggestions as to how exploit those numbers?
you wrote
thus you would parse word by word, right?
you could also parse letter by letter...
so e would mean something, T would mean something else
here... you need your file in the sketch folder named input.txt
Best, Chrisir ;-)
also, you can work with the position, say you only draw spheres. Each sphere represents one character:
A sphere for a capital letter (E) is at y = 50, for a small letter (e) at 110
the chars ascii value gives the z value: z = int (lines[i].charAt(i2))
the x is how far you are in the text: x = i + i2;
;-)
you could write the letters at the bottom and connect the spheres with lines
Chrisir, you're a genious! with a little exploration and tweaking, I bet that little bit of code can do wonders. Thank you very much for taking the time and writing it. I was wondering, may I have your permission to post it on the class blog? (all credits due of course)
Sure, permission granted.