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

new lighting and shadows...

Sign in to follow this  
cr88192

910 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.

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!