Siege Weaponry, Redoing the UI Backend

Published February 01, 2013
Advertisement
0OS10op.png

Been fleshing out the combat some more. I added a new damage type, Siege Damage, in anticipation of adding siege weaponry such as the above catapult. Catapults (or whatever types of siege machinery I eventually end up with) will be craftable minions that can be summoned onto the battlefield using Kits that you can craft from found materials. They will be useful in later stages of the game, when the rival wizards that you must defeat to obtain materials and magic will be entrenched in fortified bases.

Siege Damage is effective against walls and barricades, but less effective against monsters/NPCs/etc... Of course, there are other types of turrets and magical machines that will be good for mowing down hordes of enemies.

In other news, I've stripped out the old UI system. I've retained the graphics, but I am reworking how the UI works from the ground up. As the UIs got more and more complicated they were getting slower and slower. Most of the underlying code was pretty quick proto stuff, so I've stripped it and am working on a batching system that collects all UI elements into render batches.

I am also in the process of re-thinking shadows. Currently, I have just been using a soft blended fuzzy black disk for shadows, but I am kind of toying with the idea of rendering shadow layers for each sprite. So if the above shot looks odd without the shadows, I've got them disabled right now. I'm still not entirely sure I want to re-render the sprites with shadows, though, especially since it complicates the pipeline a little bit.
2 likes 2 comments

Comments

Servant of the Lord

Very awesome. Your modelling skills are improving alot! Not that I can comment - mine are nonexistant.

February 01, 2013 06:01 AM
Ashaman73

I am also in the process of re-thinking shadows. Currently, I have just
been using a soft blended fuzzy black disk for shadows, but I am kind of
toying with the idea of rendering shadow layers for each sprite. So if
the above shot looks odd without the shadows, I've got them disabled
right now. I'm still not entirely sure I want to re-render the sprites
with shadows, though, especially since it complicates the pipeline a
little bit.

When you render all your sprites with blender, then you should consider rendering the depth map too and use a kind of deferred shading approach to do shadow mapping and later lighting too. An idea:

1. render your sprites and depth map with an orthographic camera.

2. use a single directional, global, lightsource, render the shadows from an according orthographic camera

rendering:

3. write the depth map to a buffer (encoded depth).

4. after 1st pass, render all sprite shadow maps onto the buffer to determine the shadow.

I don't know what API you use (pure 2d, or maybe opengl), when using some shaders, you should include shadows quite easily.

February 01, 2013 06:25 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement