Using SpriteContainer to render Text?

rated by 0 users
This post has 3 Replies | 2 Followers

Top 10 Contributor
Posts 1,104
SunBurn_Community_Licensee
SunBurn_Contributor
SunBurn_Pro_Licensee
Philippe Da Silva Posted: 06-06-2010 8:24 PM

Hi John,

I would like to know if you had this use case in mind when designing 2d rendering with SunBurn where a developer could use this to render some text using SpriteFonts?

If so, how would you advice us to move on?

Thanks ;)

Philippe

Top 10 Contributor
Posts 4,546
Employee
SunBurn_Studio_Licensee

Hi Philippe,

We considered it, but rendering text with lighting is hard to read and rendering plain text is easy to do using SpriteBatch.  So we focused on sprites / tiles.

For text rendering SpriteBatch is the best option and for in-level static text like signs, decals, and similar creating textures that contain the text is probably best.

Let me know if this helps!

Follow me on Twitter – development and personal tweets
Awesome XNA Videos – Lighting, Rendering, and game videos

Top 10 Contributor
Posts 1,104
SunBurn_Community_Licensee
SunBurn_Contributor
SunBurn_Pro_Licensee

Ok John, even if I disagree with the Text lighting issue, it would have offered some cool stuff such as letting us do things such as:

Top 10 Contributor
Posts 4,546
Employee
SunBurn_Studio_Licensee

Hi Philippe,

Something like that is probably easier done using render to texture.  Using a render target you can layout and render the entire ui as if it were a flat on screen ui.  Then after RenderManager.Render() render it to a quad in world space using blending.

Let me know if this helps!

Follow me on Twitter – development and personal tweets
Awesome XNA Videos – Lighting, Rendering, and game videos

Page 1 of 1 (4 items) | RSS