source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

Missing shader files and shader project

Open AniCator opened this issue 13 years ago • 33 comments

All of the shaders and the project itself are missing. There isn't even a src/materialsystem directory.

I know that having support for shaders on all platforms is a difficult thing to do but can't at least the Windows code be added back? Or will we have to try to merge it from Source2007 code manually?

AniCator avatar Jun 28 '13 15:06 AniCator

Yes it would be good to have the materialsystem code access , because i will not being able to port my project on that engine branch without it.

ghost avatar Jun 28 '13 18:06 ghost

Yes, we've got a bunch of custom shaders running on our mod and it'd be great to have support for them in 2013.

AniCator avatar Jun 28 '13 18:06 AniCator

Same problem here, I won't be able to port my project from Alien Swarm to this engine either. It's also nice if we can keep overriding the base shader names like in the Alien Swarm SDK. In Source SDK 2007 this is not possible (all "custom" sdk shader names have a SDK_ prefix).

Sandern avatar Jun 28 '13 18:06 Sandern

I'm working on the project with AniCator - we have custom shaders, and have modified existing Source shaders to fix isues such as the Flashlightstate_t attenuation.

For us this is a dealbreaker - we'd love to move to SDK 2013 to gain the cross platform support, but as it stands it's not worth it for us without custom shader support. Thanks for looking into this.

alanedwardes avatar Jun 28 '13 21:06 alanedwardes

Source 2007 shaders will work, you just need to copy over the materialsystem folder as well as some various perl scripts. Here's a quick fix. http://pastebin.com/raw.php?i=DryN9Q15

Chris528 avatar Jun 28 '13 22:06 Chris528

We will be adding the missing material system files in an update next week.

alfred-valve avatar Jun 28 '13 22:06 alfred-valve

Thanks alfred. :+1:

AniCator avatar Jun 29 '13 00:06 AniCator

that's just great, Alfred :)

ghost avatar Jun 29 '13 02:06 ghost

Anything new on this?

d10sfan avatar Jul 09 '13 14:07 d10sfan

Still working on it. Sometimes "next week" takes a while.

JoeLudwig avatar Jul 09 '13 15:07 JoeLudwig

We all know about your clocks, Valve!

AniCator avatar Jul 09 '13 16:07 AniCator

Will be released alongside Ricochet 2 I guess

JoelLinn avatar Jul 16 '13 10:07 JoelLinn

Valve time... it's ok. =)

Barnacle avatar Jul 16 '13 15:07 Barnacle

This is fixed in the update that just went up.

JoeLudwig avatar Jul 18 '13 16:07 JoeLudwig

Thanks a ton, Joe! :tada:

AniCator avatar Jul 18 '13 16:07 AniCator

Hello, I post on this older issue because i got some problems, I will try to explain as well just below.

So, I am working on some conversion of some shaders from the Alienswarm engine branch.

First i tried to convert the parallaxtest shaders, but wasn't able to properly integrated the shader in sdk 2013,

I want to use the parallax occlusion mapping with the lightmappedgeneric (dx9) and vertexlitgeneric (dx9) like it is with the Alienswarm, but the source code hasn't been committed on the repository.

I can't add the portions of code (dedicated to the Parallax), into the lightmappedgeneric and vertexlitgeneric shader. So the only possibility I have, is a full port of the ASW materialsystem, a messy task.

to @JoeLudwig, I have a request. Is it possible to commit the full materialsystem source code, as it was with episodic SDK ?

I don't need all the "SDK_" Fallback shader program name , it could just be a simple note on the wiki, because we know than a fallback preffix is necessay for the shader to work and to not be override by the shader from the platform tools. . A second reason why it's important to commit the shaders codes, it a problem because people can't learn shaders authoring on this engine branch; if you are new and have to understand globally the materialsystem, there is nothing to start. Myself i had to read the ASW source code,to decrypt the functioning of the parallax mapping support through the VertexLitGeneric and LightmappedGeneric shaders :/.

I think it important, as it a wide source of information that are missing from the sdk.

Nicolas Kirsch

ghost avatar Aug 31 '13 22:08 ghost

We pulled all of the SDK_* shaders right out of our 2007 repo and they worked fine in 2013 (inc. LightmappedGeneric, VertexLitGeneric etc) - we only needed to juggle around some #ifdef GAME_SHADER_DLL pieces of code to get it all playing nicely.

We needed to use our own to fix issues with env_projectedtexture and to add @AniCator's LightmappedGeneric phong.

If I'm understanding you though, this will let you do what you want to do right?

alanedwardes avatar Aug 31 '13 22:08 alanedwardes

Hello Alan, yes I think it fit my need, but it should be better if valve release the source code that fit the engine branch (2013) I think there is some more because 2013 is (in some way) based on the 2009/L4D engine branch.

Thanks for the fast reply :)

ghost avatar Aug 31 '13 23:08 ghost

Okay, sure.

From what I've seen though, 2013 has nothing to do with the Left 4 Dead branch, it is just the 2007 engine with the GL backend and some other stuff - nothing like shaders or code pulled in from other Valve games. I think it's (roughly) what the Steam version of Half-Life 2, the episodes and Portal 1 are running now, so I don't think you're missing out on anything by not having the exact shaders.

It is a bit weird they weren't added though admittedly. It would've saved us a few days work, so if they add them now I'll be a tad peeved ;)

alanedwardes avatar Aug 31 '13 23:08 alanedwardes

i can't really say what is the 2013 engine branch, i discover news things every days:) Well if they add the shader sources now, it can save my time and probably not only mine but for other people who port their mods to 2013, and there are some for sure, so please Valve release the sources ;) also it would be preferable than i ma not the only person to ask for that.

ghost avatar Aug 31 '13 23:08 ghost