Sign in to follow this  
Alex Swinney

Best way to render shadows WITHOUT shaders?

Recommended Posts

I am wanting to implement some sort of shadow that looks real (not cheap) but I want to stay away from shaders (for now). One might wonder why, and I'll tell you, I am wanting to keep my program simple while I am still learning and also I need this to run on my prof's laptop;). Anyway, I implemented shadow volumes in code, but the effect is I went from >300fps to <.-05 fps, so that's a no go. I just want something that will look good (not great) but also give me ~60fps.

Share this post


Link to post
Share on other sites
If you want shadows that looks real I think you must implement stencil shadows. You can find a lot of information at www.codesampler.com or at the web sites of nVidia and ATI.

VinCenT.

Share this post


Link to post
Share on other sites
Quote:
Original post by Alex Swinney
Anyway, I implemented shadow volumes in code, but the effect is I went from >300fps to <.-05 fps, so that's a no go.

Seems like something's wrong with your implementation, say, like using inefficient algorithms for silhouette detection.

What kind of system do you have? What kind of environment did you test this on?

Shadow volumes consume lots of fillrate, and for things like trees and fences (or walls with lots of holes) they should be avoided.

Share this post


Link to post
Share on other sites
I basically adapted the codesampler 'tutorial' of DX9 Shadow Volumes..My system is actually quite new:

A64 3500+
1GB RAM
6800 Ultra

page here: http://www.codesampler.com/dx9src.htm

source here: http://www.codesampler.com/source/dx9_shadow_volume.zip

I have been thinking I must have missed something as well..

Share this post


Link to post
Share on other sites

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

Sign in to follow this