Jump to content
Sign in to follow this  
  • entries
    37
  • comments
    37
  • views
    37364

new lighting and shadows...

Sign in to follow this  
cr88192

889 views

well, recently I got around to it:
partly switching from stencil shadows to shadow mapping.

put a video up about it here:


I have ended up using a mixed strategy, generally using the shadow-mapping for the terrain, but stencil shadows for characters.

reasons:
the stencil shadows are kind of glitchy, and were very slow for terrain, so ended up sort of semi-permanently disabled for terrain rendering;
shadows maps don't really work well for characters (low resolution + slow update rate + redraw cost = delayed pixel blobs);
stencil shadows however allowed up-to-date shadows which more precisely show object outlines, making them better suited for things that move around (like models and characters).

costs:
stencil shadows cost in terms of projecting and redrawing shadow volumes.

shadow maps cost in a different way:
the cost of redrawing the depth cube-maps every so often;
the apparent overhead of the shadow maps being used by the shaders, which can be much bigger than expected, especially regarding smaller light sources.

so, it is this funny thing:
the sun can redraw faster and use full-scene shadows;
smaller detail point-lights, if shadow-maps are enabled, are actually considerably more expensive.
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
  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!