Rendering static text to a cube,

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
itzjac
Posts: 57
Joined: Fri Nov 17, 2006 7:41 pm
Location: Mexico City

Rendering static text to a cube,

Post by itzjac »

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.
CuteAlien
Admin
Posts: 9721
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Rendering static text to a cube,

Post by CuteAlien »

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
itzjac
Posts: 57
Joined: Fri Nov 17, 2006 7:41 pm
Location: Mexico City

Re: Rendering static text to a cube,

Post by itzjac »

Yeah, its pretty straight forward, works like a charm thanks!
Post Reply