Am reading the Render to Texture tutorial but a doubt about how to use it to render 2D elements on a mesh arouse.
Would it be even possible to do that? I remember when learning some the old OpenGL instructions there was an overlay feature to print bit patterns over a mesh.
The effect am looking is similar to the overlay i described, but this would use the text a font or a static text field is drawing and render that on a cube.
I know using 3d Fonts and attaching it to the cube would be another option though.
Thanks in advance.
Rendering static text to a cube,
Re: Rendering static text to a cube,
Never tried that myself, but I guess that would be possible. You use render to texture and render just the stuff you need on the texture in the first step. Then you use that texture in the mesh for the next render-steps.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Rendering static text to a cube,
Yeah, its pretty straight forward, works like a charm thanks!