Sign in to follow this  
Unreal

Shadow VOlume Math Problem! help! :(

Recommended Posts

Hello people! I have a problem with some math when rendering shadow volumes. First I calculate the silhuette edges and the I render the shadow volume like this: http://rafb.net/paste/results/ksqbmI23.html The problem is that the shadow direction is always the same for every object (the objects is not at the same position). Take a look at this screen: http://bekengine.periergoi.gr/Screenshots/SV_problem.JPG any idea what is going on? Thanks in advance!

Share this post


Link to post
Share on other sites
looks like you are calculating the volumes in object space, where the light is in world space?

for each mesh, either move the light to object space (faster) or move the objects verticies to world space before calculating the volumne.

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