Been playing with OpenGL and the Shaders, check this out!

Been playing with OpenGL and the Shaders, check this out!

  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning

jjwalker

Private
Nov 16, 2020
12
0
I have been out of the shader game for a while, worked on STALKER from 2007-2009 but nothing since.

Welp, not anymore :D

I have to fix some errors but check this out :D

I'll share this when I get some stuff ironed out.
 

Attachments

jjwalker

Private
Nov 16, 2020
12
0
So, basically what I am doing is updating the OpenGL shader algorithms to create various effects... I figure since it is 2020 and the game is strictly CPU limited anyway, why not use the video card to do some of the work. The above screenshots and the ones attached to this reply are proof of concept. I have added more detailed shadowing indoors and outdoors, light blending an diffusion and some specular highlights to mimic a small bloom effect of very bright objects (like the white tiles in a bathroom).

This is entirely proof of concept and I have decided to run with it. I need to remove introversions shadowing via the vertex pipeline (if that's possible) since I am now doing it in the fragment shader and also try and add some smoothing so they aren't so stark and hard per se.

The below attached images detail what I mean by light diffusion and specular highlights. You can see some of the blue light from the gym bathroom diffusing out the opening onto the concrete tiles. Also notice the bathroom and the indoor shadowing in general. You'll also notice that the spot lights now blend well with the sunlight during the day. As they are always on, you'll still see that they create a bright spot but now the shader is taking into account that the sun is out instead of just showing a static lightmap. You can also see a good example of the light diffusion from the green grass on the benches and the reflection from a concrete wall illuminating a bench off in the bottom right corner.

So, basically I need to try and discard the shadowing via the vertex pipeline since we are now doing it in the fragment shader, dither and smooth the shadow edges and fix a few other things.

But, as you can see, it can be done! Double 11 hasn't updated the shaders nor the OpenGL implementation at all (they has for the console version though) which I am not bashing them for by any means as this gives me a neat project to work on! :D

I'd like to also note that there is no performance penalty and actually my frame rate went up. I believe if I am successful at removing the old static OpenGL calls, I'll be able to offload more work to the GPU.

As I stated before, I'll share this with yall soon because right now I am still working on it and yall would have an old version within 15 minutes of uploading it :)
 

Attachments