Skip to main content
GameDev.net gamedev.net
🔒 Locked

Shadow Volume

Started by rfterdarc Aug 29, 2005 at 9:05 AM 0 replies 1k views
Original Post
rfterdarc
rfterdarc
In the Microsoft DX SDK, theres a ShadowVolume example and on line 1057 theres a function called 'ComputeMeshScaling'. This is used to create a matrix, which is then used to shrink the objects down during rendering. If you make the scaling 1x then the shadow is rendered all over the place. Ive put the shadow volume shader in my engine, the shadows work fine but only when my 3d models are tiny. If i make them 1x scale, then the shadows are all messed up. Any way to make the shadows work with mesh objects that are not tiny?
sirob
sirob
I can't really help you too much, but my shadow volume implementation was extremely similar to the DX sample one. If it's any help, I didn't have that problem at all, but then again, I completely rewrote the shaders.

If you need help rewriting them, or want to post a few screenshots and some code, I'd be glad to help.
Sirob Yes.» - status: Work-O-Rama.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.