How to write text to Texture

97 views
Skip to first unread message

CMaker

unread,
Jan 3, 2014, 7:37:20 PM1/3/14
to urh...@googlegroups.com
Hi all,
 i m working on render to texture in order to build a LCD system in car (dashboard)  and I was wondering how to write text to rtt texture.

Chris Friesen

unread,
Jan 3, 2014, 9:24:06 PM1/3/14
to urh...@googlegroups.com
Right now it looks like the UI renderer is hardcoded in the c++ code

UI.cpp ln:577  The initializer stuff.

Lasse Öörni

unread,
Jan 4, 2014, 5:20:44 AM1/4/14
to urh...@googlegroups.com
Yes, the UI only knows how to render its fixed element hierarchy to the backbuffer. Generally we're missing utility methods to immediately render stuff in the interest of being efficient (ie. all rendering happens at the end of the frame)

At least what you can do right now is to have a second scene, use Text3D object(s) and render them to the RTT. This doesn't need to update every frame, you can trigger the updates manually when needed.

Chris Friesen

unread,
Jan 5, 2014, 1:02:25 AM1/5/14
to urh...@googlegroups.com
can multiple ui subsystems be spawned?

Lasse Öörni

unread,
Jan 5, 2014, 7:03:24 AM1/5/14
to urh...@googlegroups.com
On Sunday, January 5, 2014 8:02:25 AM UTC+2, Chris Friesen wrote:
can multiple ui subsystems be spawned?

At the moment, no. What would perhaps make sense would be to refactor the things from it that aren't truly global, into a class like UIContainer or something, which would contain a hierarchy and handle rendering/input for it, and those could be multiply instantiated.
Reply all
Reply to author
Forward
0 new messages