Page 10 of 27

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Thu Apr 19, 2012 2:57 am
by Smurftyours
Armageddon wrote:
ScarT wrote:
Smurftyours wrote:They use ASW as their engine format not 2007, that's how they don't have to deal with that crap.

Actually City 17: Episode One is based on 2007.

They wouldn't port all that over to ASW, it's 2007.

Could have sworn they said the swapped when the sdk took a crap when they updated it and it got super fucked up for while.

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Thu Apr 19, 2012 7:38 am
by ScarT
You're probably thinking of Ivan's Secret, and they recently ditched Source completely.

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Thu Apr 19, 2012 8:28 am
by Gary
I believe Smurf is talking about this: viewtopic.php?p=441342#p441342

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Thu Apr 19, 2012 9:28 pm
by Smurftyours
Mess wrote:The Gear team is currently in the process of converting City 17: Episode One (so pretty much all of the orangebox assets and entities) to the AS codebase seeing as Valve fucked the 2009 codebase for us.

Yeah that is where I remember hearing that, so does that mean they did move off of source 2007 like I initially said?

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Thu Apr 19, 2012 9:48 pm
by Major Banter
I thought they'd already moved by the last update...?

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Fri Apr 20, 2012 2:37 pm
by ben1066
Shame he doesn't really document his csm.

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Fri Apr 20, 2012 9:46 pm
by Gary
I also wonder if he has optimized it since the 2weekmod. Though I'm not sure how to fix it, the system I was playing with only really cared about player location, not the view or angles.

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Fri Apr 20, 2012 9:51 pm
by dark0r
It's in City 17

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Mon Apr 30, 2012 12:17 pm
by Gary
So I woke up today "knowing" how to do this. I learned a little along the way(the five hours I worked on it). I'm surprised I was able to do this without asking anyone for help.

Image

Image

No doubt this needs tweaking. And I'm going to run the code through some of my programming friends to make sure it's done right before releasing it(I don't want to give something out that could be much better with a little more effort).

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Mon Apr 30, 2012 3:35 pm
by Jordash
Is this on ASW or 2007?

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Mon Apr 30, 2012 4:10 pm
by Gary
Swarm. No idea how I would move the ortho projection over. Would have to ask the c17 guys.

Right now I'm perfecting it, then I'll release the code(one file at the moment).

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Mon Apr 30, 2012 6:24 pm
by Epifire
Great job man, I am really impressed. Just a few questions regarding the usage on this improved and fixed version.

How many of these can be used without putting a crimp on the performance? I mainly ask that because when I see this I almost would rather replace a lot of regular lights in my maps with this.

Are there any plans in the foreseeable future of this being transferred into the 2007 version? I know that you said the C17 guys are the ones to talk to about that, but I was just wondering if there was anything to expect for covering '07.

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Mon Apr 30, 2012 6:50 pm
by Gary
Epifire wrote:How many of these can be used without putting a crimp on the performance? I mainly ask that because when I see this I almost would rather replace a lot of regular lights in my maps with this.


I thought you were talking about the CSM for a minute... in regards to how many env_projectedtextures you can use, it depends heavily on your scene(s), shadow map resolution, and engine version(ASW runs them better than 2007).


Epifire wrote:Are there any plans in the foreseeable future of this being transferred into the 2007 version? I know that you said the C17 guys are the ones to talk to about that, but I was just wondering if there was anything to expect for covering '07.


Good question, but there is no doubt without serious modification, the ASW version will look far better than a 2007 one.

The real problems with implementing it:
-I don't believe there is orthographic shadow map projection in 2007. Which is rather important.
-Source 2007 has a slower shadow mapping system.
-Source 2007 has a decent amount of errors in the shadow mapping.

While it would be easy but most likely have some fundamental errors. It would only take a few hours if I used the perspective projection, most of that would be fine tuning. I doubt it would be a good use of my time trying this, no matter what I make, the C17 guy's system will be far superior in all aspects.



More pictures(ASW). I tuned it a little more(made a good difference).
Image

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Mon Apr 30, 2012 8:48 pm
by joe_rogers_11155
do you have a light_environment pointing straight down? i see a faint ring of shadow around all the tree trunks.

Re: Fixing env_pojectedtextue(Src2007 Mods)

PostPosted: Mon Apr 30, 2012 8:55 pm
by Gary
No. That's blob shadows. I was too lazy to properly disable RTT shadows. So I just set r_shadowrendertotexture 0 at runtime.

They can be easily removed by setting "Disable Shadows" to true on the prop_dynamic, or, disabling RTT shadow receiving on the ground brush side with info_no_dynamic_shadow.