Sign in to follow this  
  • entries
    235
  • comments
    509
  • views
    171831

Back to the Original

Sign in to follow this  
SimmerD

87 views

Well, after working on this since about 5 am ( it's 12:30 now ), with about 2 hours of slack in there, I am going back to the old ray casting technique.

It matches the world perfectly, and when I do about 9 raycasts in circle around the characters and average them, I get a smooth response.

I will have to see if performance really is going to be an issue later on. If so, I have some ideas to fix it. One would be to do fewer ray casts each frame, and blend in the new light intensities over a few frames. This would solve the problem of strobing when moving along a shadow border area. I don't get strobing when I do 9 samples, but if I did less, I might.

Another idea would be to prioritize the various characters and not do them all every frame.

Still another idea would be to cache the raycasts from frame to frame, and re-use results from nearby points.

Here is a screen with the good lighting back, and also some blast marks. Note the two blast marks on the arch. One is static, and the other dynamic.

Blast

That reminds me, I have to make it so static decals never are deleted when the game runs out of decal space.

Maybe later I'll describe my system for deciding how to replace decals when too many are created at once.
Sign in to follow this  


1 Comment


Recommended Comments

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