Loading...
Logo
Processing Forum
Hi!

I have txt file read into a string. The names in the txt file are plotted on my canvas. 
but, the canvas is rotated and translated several times with rotateX etc.

If I plot the text now it is not horizontal anymore.
The thing is that I can not rotate it back using rotateX because than the whole thing is rotated.
I want that each word is rotated individually.

the text looks like this:
text("" + aLine[i].station_names, aLine[i].x+5, -aLine[i].y+5);

As you can see the names of the text and their position is read in from the same file.
So how can I rotate each entry from aLine[i].station_names but remain their position (aLine[i].x and y)?
For example: this: / / / / /  must be this: - - - - - - instead of:
_
_
_
_

Is it clear?

Can somebody please help me out here? This is driving me nuts! 
If I solved this I'm done with this project...

Great thanks in advance!

Replies(4)

Not sure if I have fully understood the problem, but you should look at pushMatrix().
Thanks for the reply. 
Yeah of course I have push and pop matrix.
But the problem is that it rotates everything in the string as a whole.
I want each item to be rotated separately.

this makes me think that maybe it is easier to let the string be and rotate everything else....

Urm...?
Then perhaps look at split()?
yeah i'm using that one too... As soon as my sketch is online I'll show the problem.
Unlucky thing is that I'm also having troubles putting it online:  http://forum.processing.org/topic/implementing-sketch-on-website-including-peasycam-and-opengl