Shadow Mapping in Source

Grab your favourite IDE and tinker with the innards of game engines

Re: Shadow Mapping in Source

Postby Botolf on Thu Jun 06, 2013 11:03 pm

After much grappling with command prompts and the like, I got the shaders to compile again. Issues sorted. Cheers!
User avatar
Botolf
Regular
Regular
 
Joined: Sat Jan 16, 2010 7:38 am

Re: Shadow Mapping in Source

Postby NooBster on Wed Jun 26, 2013 12:54 pm

MrTwoVideoCards wrote:Water is not supported in deferred.

Is it not supported completely? Or water can be fixed?
NooBster
Dumpling
Dumpling
 
Joined: Tue Jun 18, 2013 11:54 am

Re: Shadow Mapping in Source

Postby Botolf on Thu Jun 27, 2013 12:59 am

Cheap water works, but the fancy dynamic reflections/refractions water doesn't.
User avatar
Botolf
Regular
Regular
 
Joined: Sat Jan 16, 2010 7:38 am

Re: Shadow Mapping in Source

Postby DmitRex on Mon Jul 01, 2013 7:47 pm

Just checked the deferred stuff out and noticed a bug: when I enable light_deferred_global it works fine in open areas, but closed areas, which must be completely dark, also have light and even shadows going from nowhere. Any fix of this or it still not supported?
User avatar
DmitRex
Dumpling
Dumpling
 
Joined: Mon Jun 18, 2012 7:52 pm
Location: Arctic

Re: Shadow Mapping in Source

Postby MrTwoVideoCards on Mon Jul 01, 2013 8:23 pm

NooBster wrote:
MrTwoVideoCards wrote:Water is not supported in deferred.

Is it not supported completely? Or water can be fixed?


You'd have to do it an entirely different way and hook up the new deferred rt's for the reflection/refraction. Or you could probably so some vector maths for the players camera and do screen space reflections instead, and just warp the framebuffer underneath.

DmitRex wrote:Just checked the deferred stuff out and noticed a bug: when I enable light_deferred_global it works fine in open areas, but closed areas, which must be completely dark, also have light and even shadows going from nowhere. Any fix of this or it still not supported?


Totally a bug, I think it's how bio has written the culling bit for that. Basically if you're not encasing your map in a surrounding skybox you'll see shadows leaking through the back faces of nodraw and nonexistant faces vbsp automatically removes during compile.

I am not sure if anyone plans to fix, but it certainly is a problem in properly optimized maps in terms of excess skybox space.
User avatar
MrTwoVideoCards
Monothetic
 
Joined: Thu Aug 02, 2007 11:18 am
Location: IN YOUR SOUL

Re: Shadow Mapping in Source

Postby DmitRex on Tue Jul 02, 2013 11:23 am

Thanks for the reply. One more issue: a room fully isolated from light (must be 100% dark) have ambient color and to make it dark again I need to set ambient color to black, but in that case other areas will look ugly.
User avatar
DmitRex
Dumpling
Dumpling
 
Joined: Mon Jun 18, 2012 7:52 pm
Location: Arctic

Re: Shadow Mapping in Source

Postby Botolf on Mon Jul 15, 2013 1:55 am

DmitRex wrote:Just checked the deferred stuff out and noticed a bug: when I enable light_deferred_global it works fine in open areas, but closed areas, which must be completely dark, also have light and even shadows going from nowhere. Any fix of this or it still not supported?

With angled light of this sort, you have to create an opaque shield (use displacement for better results than brush) that comes in between the source of the light and the given closed areas. Think of it as ground or as a roof, even if the player by all rights can't see it. You can still nodraw all of your complicated surfaces and the like, just make sure to put one really, really simple shield in between all of that and the light source.

As to your second issue, could you not create a for-purpose deferred light inside the room that emits a solid black light?
User avatar
Botolf
Regular
Regular
 
Joined: Sat Jan 16, 2010 7:38 am

Re: Shadow Mapping in Source

Postby Ken Chan on Tue Aug 13, 2013 4:19 am

Image
*I'm using Global Light entity here*
I ran into a problem that the skybox will act weird when I have env_global_light on, do anyone know how to fix it?
User avatar
Ken Chan
Regular
Regular
 
Joined: Mon Apr 09, 2012 7:16 pm
Location: Hong Kong

Re: Shadow Mapping in Source

Postby Botolf on Thu Aug 15, 2013 1:29 am

Do you have a skybox name defined in your map settings?
User avatar
Botolf
Regular
Regular
 
Joined: Sat Jan 16, 2010 7:38 am

Re: Shadow Mapping in Source

Postby Ken Chan on Fri Aug 16, 2013 5:07 pm

I do have skybox in my map.

I only have the problem with skybox left :(
User avatar
Ken Chan
Regular
Regular
 
Joined: Mon Apr 09, 2012 7:16 pm
Location: Hong Kong

Re: Shadow Mapping in Source

Postby levan563 on Fri Aug 23, 2013 11:51 am

Ken Chan wrote:I do have skybox in my map.

I only have the problem with skybox left :(


Nice work Ken, problem with sky box still dont fix?
The Revenge Leader
levan563
Member
Member
 
Joined: Wed May 23, 2012 5:15 pm
Location: Ukraine

Re: Shadow Mapping in Source

Postby jimonions on Sun Sep 08, 2013 3:59 am

just a quick question is colour correction working for this?
User avatar
jimonions
Regular
Regular
 
Joined: Tue Feb 01, 2011 10:41 am

Re: Shadow Mapping in Source

Postby Gary on Sun Sep 08, 2013 4:57 am

Hey, could someone working on the deferred project please make a dedicated thread? I tried splitting this thread but ran into issues.
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Shadow Mapping in Source

Postby Hollow on Sun Sep 08, 2013 5:22 pm

Oh god, I'll see if me and Cory can whip something up later.
User avatar
Hollow
Ubisoft/Monothetic
 
Joined: Thu Aug 14, 2008 12:38 pm
Location: London, UK

Re: Shadow Mapping in Source

Postby Sandern on Sat Sep 28, 2013 11:27 am

Hollow wrote:Oh god, I'll see if me and Cory can whip something up later.

"later"

I've now been working on mixing lightmaps and swarm-deferred and tested it on a decompiled Dota 2 map:


The lighting from the global deferred light and lightmaps are mixed using darkening and regular deferred point/spot lights are added in separately.

I also have a video of it on my own mod maps, where the effect is a bit more subtle (just gives nice shadows :)).
Sandern
Regular
Regular
 
Joined: Thu Jun 30, 2005 1:08 pm
Location: Netherlands
PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users

cron