Author Topic: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?  (Read 1978 times)

0 Members and 1 Guest are viewing this topic.

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
I'm running two SLI linked Geforce 8600GTs. I've noticed the term shaders used extensively on my forays into this board. I'm not ashamed to say i've no idea what they are in relation to the SCP engine. I've never used any before and am curious as to how i can make the SCP even more Bee-yoo-tee-full.

Some guidance/advice in this matter would be appreciated. Thanks :yes:
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
Shaders are 'scripts' that tell the graphic engine how and what to render for certain materials, a 'standard' shader, for example, would tell the system to render colour as colour, shine as shine etc, but the language itself allows for a lot of flexibility. Things like faux-refraction on glass, or special effects can be scripted into the game, rather than hard coded into the graphics engine.

As for learning to write them... Still working on that bit :nervous:

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
I noticed that SOL uses them on the Harlock (found it on youtube) and wondered if there were any going that i missed during my hiatus.

Do they have to be FS2 specific or would my card manufacturer have a generic set of "improve-all/any" like bloom etc?
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
Well, for starters, if you enable normal maps in the Launcher, you will see added awesomeness on most ships in the mediavps.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
Appreciate the answer E or The_E, (which do you prefer?) but i'm not that idiotic with my SCP experience :lol:
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
I noticed that SOL uses them on the Harlock (found it on youtube) and wondered if there were any going that i missed during my hiatus.

Do they have to be FS2 specific or would my card manufacturer have a generic set of "improve-all/any" like bloom etc?

There are a set of shaders that come with the latest .vps, can't remember the filename. I know some people were using a generic bloom filter for a while with SCP, but I think the technology that supported that went defunct.

I suppose the best place to start would be to unpack the shaders vp and look at the ones that already exist, but be prepared for brain-melt ;)

That said, the shaders themselves should default to being automatically 'on', so you should already be getting the benefit of them.

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
Umm, i downloaded complete.vp, i assume (possibly) that they are are in a shaders folder?

* Colonol Dekker goes to look.....

It's late now so i'm heading of to sleepytown. I'll update tomorrow night.

Cheers everyone.
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
Is it possible to make motion blur using shaders?

What the current shader pack do?(what visible changes except normal maps)
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline Flipside

  • əp!sd!l£
  • 212
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
You'd need someone more experienced at shaders to give you more detail to be honest, someone like Vasudan Admiral or, I think, Nuke understand far more of the shader details than I do.

Theoretically, yes, Shaders should allow you to do things like motion blur, but I really have no idea how much functionality of shaders is available to the SCP.

Edit: Freespace Wiki has some stuff on it:

http://www.hard-light.net/wiki/index.php/OpenGL_Shaders_(GLSL)#Description_of_shaders

 

Offline Tomo

  • 28
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
If you're using the MV_Complete, then you're already using the shaders.
The shaders in FSO are making things 'shiny', 'semi-transparent', and lighting things - fire a primary weapon close by a ship and watch it light up - that's the shaders in action.

In a bit more detail:

There are two kinds of shaders:
A) Vertex Shaders.
These 'transform' the raw vertices of the models (the ships, missiles etc) to how they should look from the camera (your viewpoint).
They only know the X,Y,Z coordinates of the specific vertex, plus 'global-per-model' and 'global-per-viewpoint' information.

B) Pixel or Fragment Shaders (DirectX calls these Pixel shaders, OpenGL calls these Fragment shaders)
These 'colour in' the objects - they apply light and shade, the textures etc.
These only know things interpolated between vertices, plus 'global-per-model' (eg texture) and 'global-per-viewpoint' (eg lights) information.

However, there are several fundamental limitations of shaders:

1) They don't know how things are connected together - thus you can't calculate shadows here. You have to work out the shadow map/stencil buffer first, then get the shader to apply it.
2) They don't know how things move - unless you manually tell them. So you could do motion blur, but you'd have to manually tell the shader how it was moving.

What they do is officially called "Transformation and Lighting", but that can mean... anything really.

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
Ok. This is informative :yes: I extracted my complete.vp last night. Which folder do the shaders reside in? Or are they compiled meaning when I try and open them in notepad i'll just recieve gibberish?
 
I get what shaders do now, to a barest extent how they do it. . But i'm not sure how they operate as scp plugins. I know they used to be compiled as part of the executable, also I know that this is no longer the case. Sorry if I sound all over the place but i'm on a train passing city thameslink and it's mania.
Campaigns I've added my distinctiveness to-
- Blue Planet: Battle Captains
-Battle of Neptune
-Between the Ashes 2
-Blue planet: Age of Aquarius
-FOTG?
-Inferno R1
-Ribos: The aftermath / -Retreat from Deneb
-Sol: A History
-TBP EACW teaser
-Earth Brakiri war
-TBP Fortune Hunters (I think?)
-TBP Relic
-Trancsend (Possibly?)
-Uncharted Territory
-Vassagos Dirge
-War Machine
(Others lost to the mists of time and no discernible audit trail)

Your friendly Orestes tactical controller.

Secret bomb God.
That one time I got permabanned and got to read who was being bitxhy about me :p....
GO GO DEKKER RANGERSSSS!!!!!!!!!!!!!!!!!
President of the Scooby Doo Model Appreciation Society
The only good Zod is a dead Zod
NEWGROUNDS COMEDY GOLD, UPDATED DAILY
http://badges.steamprofile.com/profile/default/steam/76561198011784807.png

 

Offline Jeff Vader

  • The Back of the Hero!
  • Moderator
  • 212
  • Bwahaha
Re: Shaders, Shaders, Shaders.what are they how do i use them with FS2Open?
Which folder do the shaders reside in?
I've seen references that the .sdr files reside in \data\effects\ .
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []