Jump to content

- - - - -

Floating combat text (again)

Goblinson Crusoe rpg hex-based turn-based
4: Adsense

I'm having all sorts of dejavu while working on the new Goblinson Crusoe visuals. Spent this afternoon/evening working on the floating combat text components and getting the UI figured out. I've taken the opportunity to change things with the UI. I was all set to grit my teeth and port over my layered frame system that currently works with Irrlicht's renderer. It wouldn't have been too difficult, just kind of tedious. I wasn't looking forward to it at all.

So, since I really was dragging my heels I thought I'd take a little detour. Instead of writing the UI as a layered frame system with an orthographic projection, manually manipulating vertex buffers to layer the elements, why not just do the UI as a 3D scene? I set up a second scene+camera+viewport, and configured the render path to clear only the depth buffer. This second scene is drawn after the main scene. UI elements are added to this scene as models and meshes. Text stuff is built as a custom geometry, character portraits can be the character model in idle animation, etc... UI activation and deactivation can send elements swooping in from off-screen then swooping right back out again. I think it could be kind of cool and fun, so I'm going to tinker with it the next couple of days. Hell, if it gets me out of having to mess with the UI layer code anymore, that alone would make it worthwhile.

Anyway, here is a current work in progress shot. I only have some test UI text, a test alert sent out to all entities to test the floating combat text, and a character portrait of GC standing in T pose (not animated, since I don't actually have the idle animation exported to Urho format yet.) If I'm not too busy at work tomorrow, I'll whip up some placeholder UI assets and start connecting those things up to the various control bits and see how I like it.

Posted Image

Mar 05 2013 05:16 AM

It seems this was double-posted. Otherwise, great article!

Mar 05 2013 06:22 AM

the text looks really crisp and nice, what font family are you using?

Mar 05 2013 11:24 AM

"I'm having all sorts of dejavu..."

I think the double post was intentional. =)

Mar 05 2013 12:30 PM
Man, the database errors this site has been having on a nightly basis are a tad annoying. I swear I only hit Publish once, and the site went down immediately afterward, so I assumed this entry didn't even post at all.

slicer4ever: The font was Lucida Sans, if I remember correctly. It's a bitmap font, the font def and texture were output using BMFont size 45.

Note: GameDev.net moderates comments.