Floating combat text (again)

Published March 05, 2013
Advertisement
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.

yj2OUTo.jpg
Previous Entry GC on the beach
1 likes 4 comments

Comments

pixeltasim

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

March 05, 2013 11:16 AM
slicer4ever

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

March 05, 2013 12:22 PM
Servant of the Lord

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

I think the double post was intentional. =)

March 05, 2013 05:24 PM
JTippetts
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.
March 05, 2013 06:30 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement