Forum

> > CS2D > Mods > Can someone do shaders mod?
Forums overviewCS2D overview Mods overviewLog in to reply

English Can someone do shaders mod?

24 replies
Page
To the start Previous 1 2 Next To the start

old Re: Can someone do shaders mod?

Axelord
BANNED Off Offline

Quote
user cracker has written
hi guys

i got bored from the cs2d potato graphics so i'm asking if someone can make shaders mod


omg, its a 2d game, you expected? having gta v graphics or cod bo3?

to have more graphics, they would have to change the engine that drive the game, and is quite hard work for developers.

the best you can do is play with all the best of graphics and configuration, you should not complain being that it is a free game: P

old Re: Can someone do shaders mod?

SQ
Moderator Off Offline

Quote
What shaders thing do you mean? It's a 2D game for god sake.
You can call lightblend, shadeblend, maskblend image mode a shader.

old Re: Can someone do shaders mod?

Starkkz
Moderator Off Offline

Quote
@to everyone: He probably meant being able to use the OpenGL Shaders programming language.

@user Axelord: löve is a 2D game engine and it does support shaders, it's not a GTA V or BO3 like-engine.
https://love2d.org/wiki/Shader

@user cracker: I had already suggested this before, I think, there's a library for Shaders on BlitzMax but user SQ rejected this idea due to it's instability.

old Re: Can someone do shaders mod?

SQ
Moderator Off Offline

Quote
@user HumayunJ: What the right one has to do with shaders? I'm sorry, I'm graphics guy at Unity and I do not understand this. Ah, just being sarcastic, that effect is achieved through different sprites, otherwise it would be waste of GPU performance.

old Re: Can someone do shaders mod?

DC
Admin Off Offline

Quote
A little site note regarding those 2d/3d posts:
BlitzMax - like nearly every "modern" (lol) 2D engine - is using hardware acceleration from the GPU. So actually everything is rendered using the 3D rendering capabilities of the GPU. 2D sprites consist of 2 tris and are actually a 3D mesh. This is also why it's easily possible to freely rotate, scale and alpha blend stuff.

Regarding the shaders:
It DOES NOT simply work like
∗ shader magic ∗ BOOM ∗ awesome graphics ∗
Also
• BlitzMax doesn't have direct and simple shader support
• @user cracker: What exactly are you thinking about? What kind of shaders? (it doesn't really matter but I would like to know)

old I dont think possible...

sonkii
User Off Offline

Quote
Cs2d is a 2D game ,i dont think shader mod possible...

Wait,what? a shader in 2d game?!
It will decrease amount of peformance.Since CS2D was reccomended on slower pc,It will be reccommended on faster pc.Still not possible...

I think

Edit:Ignore about my english....

I dont think your own pc doesnt like CS2D graphics.
edited 1×, last 11.06.16 12:34:08 pm

old Re: Can someone do shaders mod?

Pagyra
User Off Offline

Quote
Anyway but CS2D with ENB series injector version works and especially with enbinjector.ini someting like this:
1
2
3
4
5
[LIBRARY]
LibraryName=sys\enbseries.dll

[TARGETPROCESS]
ProcessName0=CounterStrike2D.exe
But it work not completely correct - there are many features that dont works ... or may be i dont know how it can be enabled for CS2D, but anyway in this case - it's just fact that these "shaders" work with CS2D, but it have not correctly settings and I have not checked what features are working or enabled in standart settings and which are not.
As you can see in these screenshots - there is overall illumination of frame and it depends on brightness level of all pixels on screen - but it is standard settings and pallette, which not adapted for CS2D and certainly it need to fine tuning for all options.
So if anyone is interested - I think he will be able to make correct settings and pallette than it is in moment, and in combination with light and shadow engine it will be very nice and cool feature for CS2D especially for moviemaking.

• And more than this - there are a lot of analogues of ENBseries like: ReShade / SweetFX / GEMFX / GeDoSaTo / MasterEffect / Inject FXAA / Inject SMAA / nVidia FXAA Tool/... and so on and etc.
+ Also there are some separate programs - for example:
RadeonPro Integration
So relatively to have a better graphics with using these "shaders" - it would be nice to see variants to combine some of it in one pack - for this you can add it main dlls to ENB Series ini
to have ability to connect multiple dlls in enbseries.ini:
1
2
3
4
[PROXY]
EnableProxyLibrary = true
InitProxyFunctions = true
ProxyLibrary = d3d9.dll
same it is can be work via injector version with enbinjector.ini and there it can be used to transfer dlls in separate folder from CounterStrike2D.exe - someting like this:
1
2
3
4
5
[LIBRARY]
LibraryName=sys\enbseries.dll

[TARGETPROCESS]
ProcessName0=CounterStrike2D.exe

So it can work same like as it works in GTA 5, Skyrim, so on.
There are some video for example:
(ENB+SweetFX+ReShade)
https://www.youtube.com/watch?v=wd9liBq7m_M
(ENB+SweetFX+FXAA)
http://www.youtube.com/watch?v=ljR3K9G1NFI

• And question for user DC
- What you can say about these topics?
http://www.blitzbasic.com/Community/posts.php?topic=105697
http://www.blitzbasic.com/Community/posts.php?topic=85263
http://www.blitzbasic.com/Community/posts.php?topic=103476
http://www.blitzbasic.com/Community/posts.php?topic=43559
...
edited 14×, last 11.06.16 01:09:17 pm

Admin/mod comment

More tag added for larger / multiple images. / user GeoB99

old Re: Can someone do shaders mod?

DC
Admin Off Offline

Quote
@user Pagyra: These seem to be OpenGL shaders only or am I wrong? What about DirectX? CS2D performs bad for many users when running it with OpenGL. Therefore OpenGL-only solutions are not an option.

old Re: Can someone do shaders mod?

Pagyra
User Off Offline

Quote
user DC I'm not programmer, and more i don't know Blitzmax.

There are dozens of layered parallax 2D shaders or same fake 3d shaders (Same way as has been added to the game engine code of light and shadow).

• Depth of field (blur the background or foreground layers in real time)
• Bloom
• Full screen distortion effects
• Localised distortion effects (think sound waves around explosions)
• Various lighting and shadow effects

Which can be done in pure 2D as animated image layers or with possibility of movement of game camera.

I am hoping you can add a simple way to use same shaders on CS2D. Or you can add some injections of dlls libraries (like ENB and so on)
This can be done with using lua ... but it's very inconvenient way.


And what about add some sprite lamp for skins, tiles and other images?
Sample preview >
edited 1×, last 12.06.16 08:35:10 pm

old Re: Can someone do shaders mod?

_Yank
User Off Offline

Quote
To anyone that says that shaders don't work or don't look good on 2D games, you're completely wrong. There's tons of 2D games (specially the modern ones) that use shaders! Want an example ? Rayman, Starbound, Don't Starve (though it is not fully 3D), Shank, Snayke, Roguelands, Magicite, etc (the last 2 ones make a pretty neat use of it, I wish I could show you them without shaders so you could see the absurd difference)

And actually, I think that CS2D uses shaders (or at least some sort of) for lighting in this new version. (thus the reason for older systems not supporting the new lighthing on openGL mode)

@user Pagyra:
• Depth of field would not fit on CS2D at all, it just doesn't makes sense for a 2D *not so detailed* game to use a shader like that, in my opinion.
• Bloom is a simple interesting shader effect but I (and most of CS2D players, I think, ugh) would not like these over satured and eye-cancerous colors on our screens.
• These distortion and shockwave effects (on explosions at least, not sure what you meant by fullscreen), I would quite like.. They are nice, look pretty neat and also, improve the climax a lot. I do remember that someone made a script that simulated that just can't remember its name..
• There's already some decent light and shadow effects (although I'm up for the idea of being able to query them through lua since we now use a fully (or almost) dynamic lighting engine)
• The parallax stuff, these are not implemented through shaders... from what I know.
• The sprite lamp thing, it would for sure look cool but every skin (or almost every skin) would need to be re-drawn without any shadow and stuff for it to look and work properly. Also it would take some performance so...

Anyways,
shaders would be quite complicated to add to CS2D because they would need to be written 2x (a directX version and an openGL one)..

Although I agree that they could be added, not as a graphic enchancement feature but as a customization one, where you could choose one (or two ugh) shaders to give more life to your game, just like Minecraft, Mari0 or PPSSPP. These games/apps feature shaders for fun and to bring the user some customization of the look of their game (shaders like CRT TV Effect, Scanlines, Bloom, HQ4X scaling, Inverted Colors, Sepia, Curvature, etc) and the user isn't forced to use them or all of them.

Or(/And ) you could add a shader sytem where the user could create, customize or add their own shaders (in GLSL or HLSL format (or whatever format the shader API blitz uses)), this would be the most simple way and would not require much work. So yeah, there's my idea.
edited 4×, last 13.06.16 11:09:31 pm
To the start Previous 1 2 Next To the start
Log in to reply Mods overviewCS2D overviewForums overview