rotate text in javascript jsui

Peter Nyboer's icon

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.

Joshua Kit Clayton's icon

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

Matthew Aidekman's icon

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

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

Peter Nyboer's icon

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

peter.