Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
What's the best way to render some text into a scene? Does Exists an equivalent method of: GLGE.Text()? Thanks. |
||||
|
Simply create a CL3D.Overlay2DSceneNode, see the documentation for that. It has a setText() function. Use it like this: var t = new CL3D.Overlay2DSceneNode(engine); This will be much simplified in a future update. |
||||
|
I would put the text into the 3D space, like any other mesh. Is it possible? |
||||
|
Well, you could use either the texture created by the 2D overlay node above, and place it over any 3d object you want, or use the Renderer.createTextureFrom2DCanvas() function. You can draw text and stuff into a 2D HTML canvas and create a texture from that using this method. |
|