Author Topic: Variance Shadow Maps (Soft shadows) WIP  (Read 8746 times)

0 Members and 2 Guests are viewing this topic.

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Variance Shadow Maps (Soft shadows) WIP
In between job interviews I've been doing some clean up in the rendering code. I decided to add soft shadows using Valathil's shadow mapping as a base.

There's a bit of a performance cost unfortunately but I think my performance improvements in go_faster_and_prettier still gets us a net gain in performance to allow something like this. And there's a possibility of more optimizations to the graphics code that's still to be done.














 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Variance Shadow Maps (Soft shadows) WIP
sheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeet
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Minecraft
    • Steam
Re: Variance Shadow Maps (Soft shadows) WIP
Looks way too cool to complain about minium performance hits. :yes:
el hombre vicio...

 
Re: Variance Shadow Maps (Soft shadows) WIP
Oh my~

 

Offline The Dagger

  • 29
  • I like zod ships
Re: Variance Shadow Maps (Soft shadows) WIP
It makes me really happy when super-cool stuff comes out of the blue like this. It made my day. Thanks Swifty! :yes:

  

Offline Solatar

  • 211
Re: Variance Shadow Maps (Soft shadows) WIP
Awesome.  One more reason for me to buy a new computer sometime that can actually run FSO with the shader pipeline active. :yes:

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Variance Shadow Maps (Soft shadows) WIP
oh my
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline CommanderDJ

  • Software engineer
  • 210
    • Minecraft
Re: Variance Shadow Maps (Soft shadows) WIP
whaaaaaaaaaaaaaaaaaaaaaaaat
[16:57] <CommanderDJ> What prompted the decision to split WiH into acts?
[16:58] <battuta> it was long, we wanted to release something
[16:58] <battuta> it felt good to have a target to hit
[17:00] <RangerKarl> not sure if talking about strike mission, or jerking off
[17:00] <CommanderDJ> WUT
[17:00] <CommanderDJ> hahahahaha
[17:00] <battuta> hahahaha
[17:00] <RangerKarl> same thing really, if you think about it

 

Offline Kobrar44

  • On Suspended Sentence
  • 29
  • Let me tilerape it for you!
    • Steam
Re: Variance Shadow Maps (Soft shadows) WIP
I wonder if the shadow acne is completely gone by now?
Oh guys, use that [ url ][ img ][ /img ][ /url ] :/

 

Offline Mongoose

  • Rikki-Tikki-Tavi
  • Global Moderator
  • 212
  • This brain for rent.
    • Minecraft
    • Steam
    • Something
Re: Variance Shadow Maps (Soft shadows) WIP
How did...what is...bwuh...*brain melts*

(you know I think I posted about this same exact thing back when Valathil originally unveiled his shadow builds)

 

Offline StarSlayer

  • 211
  • Men Kaeshi Do
    • Steam
Re: Variance Shadow Maps (Soft shadows) WIP
“Think lightly of yourself and deeply of the world”

 
Re: Variance Shadow Maps (Soft shadows) WIP
Oh my ...

 

Offline Fury

  • The Curmudgeon
  • 213
Re: Variance Shadow Maps (Soft shadows) WIP
Swifty, I love you.

 

Offline Luis Dias

  • 211
Re: Variance Shadow Maps (Soft shadows) WIP
INCREDIBRUUU :D

no but really that's awesome.

So.... when is this thing actually coming to the main trunk already?!?!

 

Offline TwentyPercentCooler

  • Operates at 375 kelvin
  • 28
Re: Variance Shadow Maps (Soft shadows) WIP
I love HLP's wizards. It's like walking into a room and a crazy guy with a shotgun pops out from behind the couch and shoots you in the face, except that instead of the shot being made of lead, it's made of awesome.

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: Variance Shadow Maps (Soft shadows) WIP
I love HLP's wizards. It's like walking into a room and a crazy guy with a shotgun pops out from behind the couch and shoots you in the face, except that instead of the shot being made of lead, it's made of awesome.

quoted for truth.  :yes:  :yes:
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Flaser

  • 210
  • man/fish warsie
Re: Variance Shadow Maps (Soft shadows) WIP
Can mod makers parameterize how shadows are applied? (Possibly on a per mission basis) This would be great to simulate the difference say... between fighting in hard vacuum (hard shadows) vs nebulas or atmospheres.

(Note: let's not get bogged down in physics. The whole premise of a space combat dogfighting game is ridiculous and it only works because it rides on a tsunami made of awesome driven by the rule of cool...
I only ask since it's nice for modders to have better control of the aesthetics).
"I was going to become a speed dealer. If one stupid fairytale turns out to be total nonsense, what does the young man do? If you answered, “Wake up and face reality,” you don’t remember what it was like being a young man. You just go to the next entry in the catalogue of lies you can use to destroy your life." - John Dolan

 

Offline Oddgrim

  • 29
  • I like building stuff.
    • Art Thumblr
Re: Variance Shadow Maps (Soft shadows) WIP
Good stuff, hopes to see more of this. I'd love to have this in my client :p
[GhostOfMjn: I can provide hi res vasudan ass]
[Hades]: we have so much in common we should bang.
My models page:
http://p3d.in/u/Oddgrim

 

Offline Swifty

  • 210
  • I reject your fantasy & substitute my own
Re: Variance Shadow Maps (Soft shadows) WIP
Can mod makers parameterize how shadows are applied? (Possibly on a per mission basis) This would be great to simulate the difference say... between fighting in hard vacuum (hard shadows) vs nebulas or atmospheres.

(Note: let's not get bogged down in physics. The whole premise of a space combat dogfighting game is ridiculous and it only works because it rides on a tsunami made of awesome driven by the rule of cool...
I only ask since it's nice for modders to have better control of the aesthetics).
No, it's not possible. The whole point of soft shadows is to basically cover up any details lost when rendering to a shadow map. Sorry.

 

Offline Luis Dias

  • 211
Re: Variance Shadow Maps (Soft shadows) WIP
Yes, his point was whether he could (or not) have access to some blur parameter of sorts. Like 0 = w/out blur, 1 = your version, 2 = double blur, 3,4 = triple, for times the blur (dense nebulas).