Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, Nymphodora), 1,012 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 5 1 2 3 4 5
Variance Shadow Mapping for the Sun #176325
01/04/08 02:39
01/04/08 02:39
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
I played around with shadowmapping for a cuple of weeks now and had an other breakthrough yesterday. That resulted in support for the sun with a quite high shadowresolution near to the player.

This is how it works:
I render three depthmaps from three views at the position of the sun. They are all facing the camera but have different arc values. Now when calculating the shadows I always use the depthmap with the highest resolution possible.

This is WIP and needs a lot of more work but I already like to show it of.
Things I know about:
-The shadows are one frame behind the camera.
-There is a lot of aliasing on the shadows.
-When shadows are overlapping there are sometimes non shadowed parts which should be shadowed.

The depthmapresolution used here is 512*512.

I would like to get some feedback on how it works on your computer and what you think about it

Thanks,
Slin

A screenshot and the download:

Download (3.15mb)

You can move the sun around with q and e. You have to press 0 before you can move around and you can open the debugpanel through pressing F11.

Re: Variance Shadow Mapping for the Sun [Re: Slin] #176326
01/04/08 03:25
01/04/08 03:25
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Sorry slin, couldnt review it on my pc, the demo shows up no probs but no shadows which I presume is higher shader requirements than my system has (1.1 I think).

Re: Variance Shadow Mapping for the Sun [Re: Slin] #176327
01/04/08 03:25
01/04/08 03:25
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
Looks pretty cool!

Wish I could play the demo, when I first ran the exe got and error about missing 'd3dx9_30.dll' so I copied it into the directory when I ran again got a crash...I have no idea what it could be.

Re: Variance Shadow Mapping for the Sun [Re: DavidLancaster] #176328
01/04/08 03:34
01/04/08 03:34
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
@ DavidLancaster, that happened to me too but then I used the other exe to get a view in, does that mean I used the wrong one?

Re: Variance Shadow Mapping for the Sun [Re: Nems] #176329
01/04/08 07:17
01/04/08 07:17
Joined: Dec 2003
Posts: 129
Osnabrück, Germany
Ready Offline
Member
Ready  Offline
Member

Joined: Dec 2003
Posts: 129
Osnabrück, Germany
It just crashes for me and says something non specific (VSM_main.exe encountered a problem and must be closed bla bla bla)


Do not underestimate people because they have a low post count... :0
Re: Variance Shadow Mapping for the Sun [Re: Ready] #176330
01/04/08 08:39
01/04/08 08:39
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
It needs Shadermodel 2.0.
You probably need the d3dx_35.dll (http://www.dll-files.com/dllindex/dll-files.shtml?d3dx9_35) to run it, because it needs a simple plugin which uses the directx SDK... But I am not sure about it-_-
Thanks for testing

Re: Variance Shadow Mapping for the Sun [Re: Slin] #176331
01/04/08 09:41
01/04/08 09:41
Joined: Mar 2005
Posts: 969
ch
Loopix Offline
User
Loopix  Offline
User

Joined: Mar 2005
Posts: 969
ch
That looks promissing...althoug I can't run it. It crashes on my GTS 8800 with no specific error messages.

Slin, please keep on working on it! Once it is more stable...would you be willing to release the full source (for further public improovement!)?
If yes...I suggest to make a sponsor call and you could decide to release the full source after you 've got a certain amount of money (100-200$?). If you prefere to sell the stuff and become real rich...that's fine too

Is there any chance to get rid off the SetLightMatrices.dll...set the matrices somehow in c-script and still being able to use this shadow method in A7??

Re: Variance Shadow Mapping for the Sun [Re: Ready] #176332
01/04/08 09:51
01/04/08 09:51
Joined: Sep 2007
Posts: 67
Seevetal, Germany
Rasterbar Offline
Junior Member
Rasterbar  Offline
Junior Member

Joined: Sep 2007
Posts: 67
Seevetal, Germany
I have the the same Crash.

Quote:

It just crashes for me and says something non specific (VSM_main.exe encountered a problem and must be closed bla bla bla)




Re: Variance Shadow Mapping for the Sun [Re: Slin] #176333
01/04/08 09:51
01/04/08 09:51
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I tried it out, and put the dll in the folder with the demo, but still no luck. Looks quite interesting though.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Variance Shadow Mapping for the Sun [Re: William] #176334
01/04/08 09:54
01/04/08 09:54
Joined: Mar 2006
Posts: 237
Deutschland, NRW, Recklinghaus...
TSG_Christof Offline
Member
TSG_Christof  Offline
Member

Joined: Mar 2006
Posts: 237
Deutschland, NRW, Recklinghaus...
Geforce 7950 GX2 (Shader Model 3.0) Graka and it is Crash.

Page 1 of 5 1 2 3 4 5

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1