Shadow Mapping in Source

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

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby Smurftyours on Thu Apr 19, 2012 2:57 am

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.
jangalomph wrote:Wise words from a wise man. ^
User avatar
Smurftyours
Senior Member
Senior Member
 
Joined: Tue Aug 04, 2009 6:11 pm
Location: California, US.

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby ScarT on Thu Apr 19, 2012 7:38 am

You're probably thinking of Ivan's Secret, and they recently ditched Source completely.
User avatar
ScarT
Senior Member
Senior Member
 
Joined: Sat Apr 02, 2005 7:33 pm
Location: Denmarkian Land

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby Gary on Thu Apr 19, 2012 8:28 am

I believe Smurf is talking about this: viewtopic.php?p=441342#p441342
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: Fixing env_pojectedtextue(Src2007 Mods)

Postby Smurftyours on Thu Apr 19, 2012 9:28 pm

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?
jangalomph wrote:Wise words from a wise man. ^
User avatar
Smurftyours
Senior Member
Senior Member
 
Joined: Tue Aug 04, 2009 6:11 pm
Location: California, US.

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby Major Banter on Thu Apr 19, 2012 9:48 pm

I thought they'd already moved by the last update...?
ImageImageImage
Major Banter
Veteran
Veteran
 
Joined: Tue Apr 01, 2008 10:52 pm
Location: UK

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby ben1066 on Fri Apr 20, 2012 2:37 pm

Shame he doesn't really document his csm.
ben1066
Dumpling
Dumpling
 
Joined: Fri Feb 17, 2012 11:15 pm

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby Gary on Fri Apr 20, 2012 9:46 pm

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.
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: Fixing env_pojectedtextue(Src2007 Mods)

Postby dark0r on Fri Apr 20, 2012 9:51 pm

It's in City 17
dark0r
Been Here A While
Been Here A While
 
Joined: Sat Mar 25, 2006 10:16 am
Location: de_hell

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby Gary on Mon Apr 30, 2012 12:17 pm

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).
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: Fixing env_pojectedtextue(Src2007 Mods)

Postby Jordash on Mon Apr 30, 2012 3:35 pm

Is this on ASW or 2007?
User avatar
Jordash
Been Here A While
Been Here A While
 
Joined: Mon Sep 21, 2009 10:36 am
Location: Perth, Australia

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby Gary on Mon Apr 30, 2012 4:10 pm

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).
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: Fixing env_pojectedtextue(Src2007 Mods)

Postby Epifire on Mon Apr 30, 2012 6:24 pm

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.
Image
User avatar
Epifire
Senior Member
Senior Member
 
Joined: Fri Mar 25, 2011 8:54 pm
Location: Minnesota, where you're froze 24/7

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby Gary on Mon Apr 30, 2012 6:50 pm

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
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: Fixing env_pojectedtextue(Src2007 Mods)

Postby joe_rogers_11155 on Mon Apr 30, 2012 8:48 pm

do you have a light_environment pointing straight down? i see a faint ring of shadow around all the tree trunks.
"Day breaks, but decay soon follows." - Ava Winona
Currently developing in radio silence... 99 Bolts
Here's another project of mine... Assault on Overwatch
Are you new to Source SDK? VDC
joe_rogers_11155
Veteran
Veteran
 
Joined: Wed Oct 08, 2008 11:11 pm
Location: United States

Re: Fixing env_pojectedtextue(Src2007 Mods)

Postby Gary on Mon Apr 30, 2012 8:55 pm

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.
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
PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users

cron