• entries
    432
  • comments
    1168
  • views
    760139

Catching up, Shadows, And Other Stuff

Sign in to follow this  
JTippetts

7795 views

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:

hvhB18y.png

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:

0nr7eGe.jpg

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:

IloKTMS.jpg

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:

r9vi8K1.jpg

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.

fqoWdKV.jpg
VAYmRB4.jpg
Sign in to follow this  


7 Comments


Recommended Comments

OMG! keep it up man very cool! Glad to see someone getting something accomplished! :)

 

Can't wait to get back into coding my game, after school is over with!

 

Keep up the good work!

Share this comment


Link to comment
The good news is that if your game turns out demanding, if you wait awhile people will have better systems to handle it. The bad news is that since you describe your card as "crappy", you may need to get better hardware eventually. By the way, good work so far :).

Share this comment


Link to comment

Thanks, guys.

 

@Shane: The idea is to get it to run well on my crappy hardware, that way I can be sure it runs well on most hardware out there. I rarely ever get anything even close to the current gen hardware, mostly for that reason.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now