Jump to content

  • Log In with Google      Sign In   
  • Create Account






Floating combat text (again)

Posted by JTippetts, 04 March 2013 · 583 views

Goblinson Crusoe rpg hex-based turn-based
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




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

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

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

I think the double post was intentional. =)

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.

Recent Comments

August 2014 »

S M T W T F S
     12
3456789
10111213141516
17181920212223
242526272829 30
31      
PARTNERS