Author Topic: Antipodes #4  (Read 12073 times)

0 Members and 1 Guest are viewing this topic.

Hiya Folks,

This is Antipodes build #4

Antipodes is a staging ground for changes that will eventually make their way into trunk. Antipodes should not be considered stable.

Antipodes #4 has been completed by Hery, and contains the post-processing code.

This build includes trunk to 5681.

Antipodes 4 Executables
Shaders and Tables for PostProcessing

PDBs (for when you have troubles) can be found in this folder:
Antipodes 4 PDBs

Note that they don't compress well. To use: Download matchine PDBs zip, unzip into the SAME location as the executables.
The PDBs have been versioned in the same fashion as the Antipodes executables, so multiple PDB versions can coexist in the same folder. (although, I recommend removing old ones due to their size)

This build adds post-processing to FSO. The main idea behind this rendering technique is to render the scene to a texture and then draw it to the back buffer applying some additional effects at the same time.
There is a huge number of post-processing effects, currently only bloom and few other, really simple ones are implemented. In addition to that there is a possibility to add new post-processing effects (if they are simple enough) without changing FSO code. It can be done by modifying shaders code and post_processing.tbl

Simple post-processing effects (such as contrast, saturation, film grain) can be controlled by a new SEXP: set-post-effect.

Post-processing is enabled by -post_process flag.
Bloom intensity can be controlled by -bloom_intensity X flag (when X = 0 ther's no bloom and the maximum value is 100).

Apart from that, post-processing patch introduces:
 * shader manager with support for main and post-processing shaders
 * wrappers for OpenGL textures, rendering buffers and FBOs

The new code is documented using doxygen-style comments.
STRONGTEA. Why can't the x86 be sane?

 

Offline Hery

  • 26
Simple instruction what to do with the files from Shaders and Tables for PostProcessing:
1. Copy *.sdr files to data/effects directory
2. Copy *.tbl file to data/tables directory
3. Enable -post_process flag in the launcher

 
It seems like the post process is not applyed on the cockpit, is that normal?
However the cockpit doesn't pass thrgough object anymore! that's nice  ;)
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Hery

  • 26
That's a bug I was aware of but then I forgot :P Fortunately, the build is OK, since the problem is caused by highpass filter.

In order to fix it replace the content of brightpass-f.sdr with the following:
Code: [Select]
uniform sampler2D tex;

const float Luminance = 0.08;
const float fMiddleGray = 0.2;
const float fWhiteCutoff = 0.4;

// High-pass filter
void main() {
vec4 ColorOut = texture2D(tex, gl_TexCoord[0].xy);

ColorOut.rgb *= fMiddleGray / (Luminance + 0.001);
ColorOut.rgb *= (1.0 + (ColorOut.rgb / (fWhiteCutoff * fWhiteCutoff)));
ColorOut.rgb -= 6.0;

ColorOut.rgb /= (10.0 + ColorOut.rgb);

gl_FragColor = ColorOut;
}

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Minecraft
    • Steam
    • Twitter
    • ModDB Feature
And for those of you that didn't get this from any of the earlier packages (or lost it):
postprocess.fs2
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Which version of Fred contains the post process sexps again?

Just the filename please, i've got a load of .exes and can't remember which one to use for BLOOM :D
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 MetalDestroyer

  • Starwars reborn!
  • 210
Which version of Fred contains the post process sexps again?

Just the filename please, i've got a load of .exes and can't remember which one to use for BLOOM :D

Quote from: portej05
Simple post-processing effects (such as contrast, saturation, film grain) can be controlled by a new SEXP: set-post-effect.
« Last Edit: November 29, 2009, 01:54:19 pm by MetalDestroyer »

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Yes I know but I don't see an antipodean fred in the zip. So liek where is it?
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

 
IS there an option somewhere to control the effect applied on the skyboxes pof?
I have one with a moon like planteoid wich is now full bright and has lost all its detail when using post process  ;)
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Hery

  • 26
Currently, the only solution is to decrease bloom intensity using a launcher flag.
It is possible to hack a simple and not very good solution to this problem but I decided that's pointless since tone mapping (which will be introduced in the future) will solve the problem completely.

 
Ok, so i'll wait for tone mapping so.  :D
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Commander Zane

  • 212
  • Spoot Knight of Anvils
What does SSE stand for?

 
The basic gist of it is that they're vector instructions, and can offer performance improvements for certain cases (which is something we really need as much as possible in FSO).

Wikipedia has a writeup on it:
http://en.wikipedia.org/wiki/Streaming_SIMD_Extensions
STRONGTEA. Why can't the x86 be sane?

 
STRONGTEA. Why can't the x86 be sane?

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker- you've probably heard me
    • My old squad sub-domain
Yay! Now with added sex-pee hopefully :D
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 Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
I made my own little unreleased post-processing demo a while back, but I adapted it for the newer post-processing EXE.  Here it is:

http://www.ciinet.org/kevin/Files/pprocess.fs2
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

 
Antipodes #4 has now ended.
Thank you to all who took part.

The Post-Processing changes have been committed in 5715.

Enjoy!
STRONGTEA. Why can't the x86 be sane?

 

Offline pecenipicek

  • Roast Chicken
  • 211
  • Powered by copious amounts of coffee and nicotine
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • PeceniPicek's own deviantart page
Skype: vrganjko
Ho, ho, ho, to the bottle I go
to heal my heart and drown my woe!
Rain may fall and wind may blow,
and many miles be still to go,
but under a tall tree I will lie!

The Apocalypse Project needs YOU! - recruiting info thread.

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Minecraft
    • Steam
    • Twitter
    • ModDB Feature
Updated shaders package linked here for completness sake: http://zacam.ueuo.com/fsu/FSU_and-PostProc_Shaders.7z
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Minecraft
    • Steam
With the new builds it runs faster than before, the only problem is that the bloom is affecting the background nebulae, is that gonna be managed somehow, like a command line or a mission property?.
« Last Edit: December 19, 2009, 05:17:17 pm by Rodo »
el hombre vicio...