Post news Report RSS Freeworlds: Tides of War - DX9 Port, Mouse Lag, Bloom & Color Correction

This update describes the latest work on the Freelancer graphics engine, in order to get the best looking Star Wars visuals possible.

Posted by on


Written By: W0dk4

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:

Without Color Correction

With Color Correction

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:


As always, any questions, suggestions or comments are welcomed!

-------------------------
Please follow us also on:
PhotobucketPhotobucket


Post comment Comments
OldBoy
OldBoy - - 114 comments

<3

Reply Good karma Bad karma+1 vote
reelo2228
reelo2228 - - 56 comments

i just spilled white fluid between my legs...

Reply Good karma Bad karma0 votes
3dBoy
3dBoy - - 31 comments

Jesus!!!It's amazing work, guys!(As always)

Reply Good karma Bad karma+1 vote
Elementalist
Elementalist - - 732 comments

Good ol' Timeslip, nice to see he's inspiring other modders in other games as well.

Good work here, guys.

Reply Good karma Bad karma+1 vote
vp21ct
vp21ct - - 84 comments

I've allways loved this game for it's surprisingly good graphics, and now thats even better.

Reply Good karma Bad karma+1 vote
Dnst
Dnst - - 366 comments

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.

Reply Good karma Bad karma+1 vote
Velox
Velox - - 83 comments

omg this is a great game

Reply Good karma Bad karma+1 vote
FW:ToW_Sushi Author
FW:ToW_Sushi - - 1,450 comments

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

Reply Good karma+2 votes
Packer
Packer - - 494 comments

X-Wing Alliance flash backs about now.

Reply Good karma Bad karma+1 vote
FW:ToW_Sushi Author
FW:ToW_Sushi - - 1,450 comments

That's exactly the look we're going for :)

Reply Good karma+1 vote
KodY
KodY - - 102 comments

Outstanding work, this really adds another layer to the atmosphere :)

Reply Good karma Bad karma+1 vote
freakinwat
freakinwat - - 69 comments

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?

Reply Good karma Bad karma+1 vote
foxBoxInc
foxBoxInc - - 133 comments

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

Reply Good karma Bad karma+1 vote
FW:ToW_Sushi Author
FW:ToW_Sushi - - 1,450 comments

Thanks for the compliments, Fox. That's very high priase coming from a dev like yourself :)

Reply Good karma+1 vote
FW:ToW_Sushi Author
FW:ToW_Sushi - - 1,450 comments

@ 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.

Reply Good karma+1 vote
Renorick
Renorick - - 477 comments

*sniff* Beautiful... *sniff* Just f*ckin' beautiful man...

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: