Catching up, Shadows, And Other Stuff
Goblinson Crusoe Urho3D hex-based rpg turn-based rpg
The catching-up process continues. Got the action icon/button system ported over, in the process of working on more of the UI pieces. Fiddled with the movement preview grid a little bit. Mostly, just changed the material from an unlit to a lit shader, so that the preview doesn't "cheat" for a player in a dark dungeon. Here is the old material:
In dark dungeons, objects that are beyond the field of view of a light shouldn't be visible (obviously), but the glowing blue movement preview grid will allow objects to silhouette themselves against it, giving away their position and shape which can give away resource node types. Granted, it's an advantage every player would have, but still... it just felt wrong. Changing it to a lit material can fix that:
The obvious drawback, of course, is more shader calculations. But if my crappy card can handle it, so can yours.
Another very small change (at least on my end) was enabling shadows:
Urho3D does all the hard work for me, so this change was trivial, but it does make a big difference. And my crappy card at home still handles it pretty well, although the compy at work can't do shadows at all, so there's no difference there.
I did some cleanup on the action button code. I am still kind of on the fence about the 3D-based UI. With the new Lua bindings, using Urho3D's built-in UI system would be much easier than it was before, so I'll probably take some time to figure it out and see if I'd rather have a traditional UI rather than a 3D UI.
Started re-implementing all the various actions. Resource looting works again:
It's much cleaner this time around, too. Looting is now a specific case of a spell-cast, so it is done through the spell-casting system. Which means the spell-casting system is now ported over as well, even though the only castable spell is, of course, Loot.
Newer builds of Urho have added a Text3D node, so I scrapped my old floating combat text. I'm still kind of on the fence about it, since I liked the nice, thick black outline of my old bitmap fonts. Might have to write a custom shader or something to get the outlines back, although the Text component does add a slight drop-shadow effect if desired. It's just not very noticeable in the floating text. Still, it's better to go through the official font and text system rather than my own.
The current revision of Urho3D continues to advance and refine, something I'm thrilled about. New features are being added seemingly daily. If I can get all my current stuff ported over and start fleshing out the UI once more, things should really start clipping along.