Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    235
  • comments
    509
  • views
    172605

Light Rebuilding

Sign in to follow this  
SimmerD

112 views

Light Rebuilding

Yesterday I made some more fixes to the editor, and added the sunlight filter option to the level. This is a
monochrome filter that's modulated with the sunlight static shadow term to represent the sun filtered through clouds,
or a high forest canopy, etc. It can scroll, which gives a nice sense of movement to the level.

Here is a shot of the new area controls :



I also added some tooltips to the editor, although not all of them are showing up. I'm pretty baffled by this -
two similar controls are right next to each other, and one shows its tooltip, and the other doesn't...

The last thing I accomplished was to track when lightmaps needed updaing. This is something I'd been meaning to do
for a while. The editor tracks when anything changes that could effect the lighting for the level, like geometry changes,
static mesh changes, or light changes. When exporting the file for the game engine, it sets a flag in the file that the
lighting is dirty.

When the level is loaded, the flag is checked to see if lighting needs to be re-created. If so, the flag is cleared so
it can be skipped next time. I could actually try to track this on a per-light basis, but it doesn't seem worth it.

This is nice for a couple of reasons - one is one doesn't have to track when to rebuild the lightmaps, and also you can make
many changes to the level, like entities, sounds, fog, etc. and the engine knows not to rebuild the lightmaps. I should do
a similar flag for the navigation map, because that takes a while to build right now.

Gameplay wise, I'm going to add something closer to the final attacking code in the next few days. Right now, you just
fire, and if your gun has energy, it shoots a bolt. This is simple, but lame, because I really want our game to have a
sense of rhythm to it, especially with the combat.

One approach I played with a while ago was to make the attack button start your character aiming, and then you release
it to fire. This doesn't work great because :

a) It's unfamiliar to folks.

b) If you just click & let go, it doesn't seem different than just regular click-to-fire, except its inaccurate.

So, instead, we're going to make the engine track your character's movement over the last few seconds in a moving average.
The most recent movements will be weighted more heavily, and this value, combined with your character's stats and weapon
skill, will affect the accuracy. We will add an accuracy meter, either on the screen bottom, or perhaps by changing the
cursor itself.

I think we will end up tuning it so that you really have to stand still to fire, at least briefly, to have a realistic chance
of hitting something. This will hopefully provide the rhythm I'm looking for, and also will provide a nice cue that the
enemies are about to shoot when they stop & raise their gun.
Sign in to follow this  


2 Comments


Recommended Comments

Seem like your image is broken - could be because you've tried to link in a header file? [lol] (http://spies.net/newareatab.h)...

Anyway...

I like your plan for the weapon accuracy. Are you likely to have any visual indication as to how accurate the shot will be? Some games have a red->green icon (red=no accuracy, green=on target) or a varying size cursor...

My personal benchmark would be Deus Ex's accuracy/skill system for weapons. Get anything close to that and I'll be happy [smile]

Keep up the good work!
Jack

Share this comment


Link to comment
Yes, there will be some sort of accuracy indicator.

It's been a long time since I played Deus Ex. Can you elaborate on how their system worked?

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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!