View previous topic :: View next topic |
Author |
Message |
Nocturn DeleD PRO user
Joined: 08 Aug 2004 Posts: 635
|
Posted: Sun Nov 21, 2004 11:52 pm Post subject: Dynamic Shadow Demo |
|
|
Okay, the lightmapping of the DeleD Editor is cool... but how's that with Dynamic Shadows ? I've started today some little project that simulates a complex Shadow System. I think it's a cool combination and fun to play with. Thanks to DegaC for his help.
Screen :
*link and screenshot removed, lost data - sorry*
Last edited by Nocturn on Sat Jul 01, 2006 11:05 am; edited 1 time in total |
|
Back to top |
|
|
granada Team member
Joined: 07 Aug 2004 Posts: 1955 Location: England
|
Posted: Mon Nov 22, 2004 1:19 am Post subject: |
|
|
Nice demo Nocturn,well done
dave _________________ AMD Phenom(tm)IIx6 1090t Processor 3.20 GHS
8.00 GB memory
Windows 7 64 bit
Nvida Geforce GTX 580 |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Mon Nov 22, 2004 8:18 am Post subject: |
|
|
Looks cool!
Are those stencil shadows, shadowmaps, or some fancy shader? It looks like I can just see some low-res artifacts in the shadows, which would make it shadowmaps probably... but anyways, great job!
The idea behind DeleD lightmapping is that you would use baked-in lightmaps for 99% of the lights in the scene, and then do some dynamic shadowing for
1) all of the dynamic objects in the scene (characters, etc.)
2) dynamic lights (torches, fireballs, etc.)
Even with modern hardware, you don't want to do real-time shadowmapping for a couple o' hundreds of lights in a scene |
|
Back to top |
|
|
Mr.Fletcher DeleD PRO user
Joined: 07 Aug 2004 Posts: 1772 Location: Germany
|
Posted: Mon Nov 22, 2004 1:55 pm Post subject: |
|
|
Yeah, they look like shadowmaps, I also had shadowmaps in previous Haunted versions, but they are pretty useless if they should look good, imo. Another fact is that you can't do real pointlights with shadowmaps, so now, i've got cool stencil shadows, they look quite great. _________________ Behold! The DeleD Wiki! Please help us expanding it
DeleD on IRC |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Mon Nov 22, 2004 2:38 pm Post subject: |
|
|
I'm not familiar with shadowmaps and stencil shadows so can someone tell me the difference between the two? |
|
Back to top |
|
|
Mr.Fletcher DeleD PRO user
Joined: 07 Aug 2004 Posts: 1772 Location: Germany
|
Posted: Mon Nov 22, 2004 4:03 pm Post subject: |
|
|
Well when you use shadowmaps, you first render the whole scene into a depth texture, then you use the projected texture technology from the lightsource to an object with the depth texture bound and the graphics card compares the z-values from depth texture and the geometry and leaves shadows where the test fails. The disadvantages are that it is only a texture, so you won't have sharp shadows. And you have a limited field of view when you render to the texture, so not every object will be in it. But it is quite easy to built in, though.
With stencil shadows, you need to detect the object's silhouette edges and extrude it from the light source away. You use the stencil buffer to decide whether geometry is shadows or not. Here, you have sharp shadows, no artifacts, but the CPU has to work more than with shadowmaps and it is quite hard to implement, though. _________________ Behold! The DeleD Wiki! Please help us expanding it
DeleD on IRC |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Tue Nov 23, 2004 9:26 am Post subject: |
|
|
As an addition to the excellent explanation of Mr Fletcher: See Mathematics for 3D game programming & Computer Graphics (SE), Chapter 10. I happen to know you own that book, Jeroen |
|
Back to top |
|
|
granada Team member
Joined: 07 Aug 2004 Posts: 1955 Location: England
|
Posted: Tue Nov 23, 2004 9:32 am Post subject: |
|
|
I'me lost,can you build a shadow
dave _________________ AMD Phenom(tm)IIx6 1090t Processor 3.20 GHS
8.00 GB memory
Windows 7 64 bit
Nvida Geforce GTX 580 |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Tue Nov 23, 2004 9:34 am Post subject: |
|
|
*lol* _you_ are the one that models the shadows dave, let us worry (and worry and worry and worry) about the math |
|
Back to top |
|
|
Br@iner Member
Joined: 17 Dec 2005 Posts: 15 Location: Poland, Sosnowiec
|
Posted: Sat Dec 31, 2005 11:44 am Post subject: |
|
|
granada wrote: |
Nice demo Nocturn,well done
dave |
Indeed,very well |
|
Back to top |
|
|
|