Forums > Javascript

rotate text in javascript jsui

February 9, 2006 | 7:41 pm

messing around with the jsui_roundedlabel example. I’d like to turn the text on its side, but a glrotate(90,0,0,1) only rotates the roundedplane, and not the text. So perhaps, I need to rotate the "world" somehow – but none of the gl parameters in the Max Javascript manual look like they perform that type of translation.
Is there a way to do this?

p.


February 9, 2006 | 7:44 pm

The only way to currently accomplish this is the following:

- Draw text to a separate instance of Sketch
- Generate Image object from Sketch object
- Use Image object as texture

-Joshua


February 9, 2006 | 9:56 pm

check out my showme.js from matsui. my library has some bugs
but this should be a good example

http://www.estatesound.com/matsui.html

. . . . . . . . . . . .
http://www.EstateSound.com
http://ideasforstuff.blogspot.com
. . . . . . . . . . . .


February 10, 2006 | 3:22 pm

wow, there’s a lot of good ideas in there. Found the "showme" – I’ll take a closer look.

peter.


Viewing 4 posts - 1 through 4 (of 4 total)