
O
ver the last few months, I've been working a lot on the graphics engine of Freelancer. Inspired by Timeslip's work. I wrote a Direct3D8 to Direct3D9 wrapper for Freelancer to be able to directly access the graphics pipeline.The ultimate goal is to somewhat modernize Freelancer's graphics engine. I'm not sure about the features I will be able to add further on, but let me show you the first enhancements that I already implemented.
Before getting to the eye candy, let me quickly talk about mouse lag. I guess almost everybody is familiar with the mouse lag problem that occurs in some games. In almost every case, the laggy/delayed input is to blame on VSync. If you turn VSync off, it solves a lot of the mouse lag problems for many games, including Freelancer. I did some research on the topic and found this article on a private blog by "Vorlath". Basically, to fix mouse lag in the DirectX pipeline, you have to make sure that after any present call, the screen has really received the frame you just rendered. This is easily done in Direct3D9 as stated in the article and it was one of the first things I implemented. Thank god, no more VSync-related mouse lag in Freelancer!
Lets get to the eye candy. One of the top wanted post-processing effects in older games is bloom. As of now, I added a relatively cheap and subtle bloom effect, but in the future I want to do a proper HDR lighting implementation.
Another post-process effect is Color Correction, which to me seems to be very underrated. You can completely change the feel of the game by including a nice color correction effect. The implementation I chose was very simple, yet powerful, based on this article.
The vast benefit of this method is the what-you-see-is-what-you-get effect. We simply take an ingame screenshot, load that screenshot in Photoshop and do some color correction with the Curves or Levels tool. We then apply the same color correction to a special texture that will be used by the game. Very easy to do, yet very powerful.
Here is a comparison, with color correction added in the second screenshot:

The color correction effect is implemented per-system. Its a very good tool to give systems their very own feeling, making the ingame experience as varied as possible.
For example, we could give rebel and imperial systems their very unique color correction, so you quickly know in which territory you are. Finally a little video to show the effects in motion:
<3
i just spilled white fluid between my legs...
Jesus!!!It's amazing work, guys!(As always)
Good ol' Timeslip, nice to see he's inspiring other modders in other games as well.
Good work here, guys.
I've allways loved this game for it's surprisingly good graphics, and now thats even better.
I wholeheartly awaited an article about the DX9 port. You have specialists for every part of the game: modelling, coding, gameplay. This game has a good chance to become a masterpiece.
omg this is a great game
Thanks for all the overwhelming support! We appreciate all the kudos and we plan to make this the best SW conversion we possibly can!! Don't forget to check our development forum out, too! Freeworlds-tow.net
X-Wing Alliance flash backs about now.
That's exactly the look we're going for :)
Outstanding work, this really adds another layer to the atmosphere :)
Wow! I am SO exited about this, i kinda gave up on FL, it was to complicated for me, and Discovery doesn't work for me, this mod will be absaloutly amazing. Any eta? Will there be a campaign, or a constant war between rebel and imperial factions? Will there be massive battles and missions and that?
w0dk4, that color correction is beautiful and looks far better than the ENB stuff used in nearly every other mod (including our own!). All of you guys are doing a terrific job on this project, and it's always fun to read the articles that pop up in my ModWatch. :D
Thanks for the compliments, Fox. That's very high priase coming from a dev like yourself :)
@ freakinwat: ETA is when we feel it's ready to be done. We're making sure that this mod will be stable upon release and will meet many of the expectations we have set for ourselves as developers. I'm thinking roughly in another 6-12 months of development, though. As for the gameplay, it will likely be a constant war between opposing factions with a strong RP component.
*sniff* Beautiful... *sniff* Just f*ckin' beautiful man...