|
|
|
|
|
|
|
|
|
|
|
Re: New feature: XBR-filter(scaler) for ja2 1.13[message #336012]
|
Mon, 22 September 2014 17:22 
|
|
StaticZ |
  |
Messages:27
Registered:September 2014 Location: Russia |
|
|
RoWa21awesome, so you are currently working to get the filter implemented in the dev source??
edit: i see you use resharper. good choice 
edit2: if you have any patch file (even if you make small progress) give it to me and I can commit your work. It's not modification of JA2 sources it's individual application that inject own code to running procces to set hooks for WinApi functions and DirectX methods. So it will have be compatible with most games that use DirectDraw or GDI for drawing. I begin working on it as I hate fullscreen mode and too lazy to switch desctop color mode, besides on modern monitors PPI (Pixels Per Inch) is much higher and JA2 mercs looks like units from RTS like Age Of Empires. =) So for now it support only DirectDraw2, that is used by JA2, but in future I will add other versions and possible Direct3D.
UriensOk, now a question - will this help game play at the 'standard' 800x600 or 1024x768 size units/objects in game while looking far less blocky (like playing on larger resolutions)? Yes, its fully customisable. You can run game in any resolution it supported and draw it's screen on window with sizes you wish. You can apply one or several filters (like upscalers xbr, 2xsai and others) to capture screen and get result ither without stretching in selected part of a whindow (alligning to the center or for example to the right-bottom corner) or stretch it to all widow rect as with keeping aspect ratio so without it. You also don't need to change desctop color format, so you can play in 32bit mode. There are also few other options like low-cpu, FPS limit, changing window caption, svaing screen shoots in different formats (yes it can do JA2 but png is much better then TGA) and others. But you have to remember that some filters are very slow for using in realtime with high resolutions. For example now on my PC (i7-4820K 3.7GHz) with resolution 1280x720 scaled to 2560x1440 with 2xSai filter I get little more then 100 FPS, but with filter XBR little more then 10 FPS. Sure it's problem of filter algorithm realeasation and can be improved in future. Now the main task is to make it all working and in future I will work for improvments, adding new filters or rewriting old. For example slow filters can be rewritten with CUDA technology that will solve speed issues. Also in future plans are adding ability to render image by Direct3D that will make possible to use different shader effects and make more quality final image scaling.
For now supporting filters are:
~ #00 - None [ ] - don't use upscale filter (1x)
~ #01 - Simple [2x 3x 4x] - fastest, no smoothing, no filtering
~ #02 - Pixelate [2x 3x 4x] - retro style
~ #03 - Scanlines [2x ] - retro style
~ #04 - ScanlinesTV [2x ] - retro style
~ #05 - MotionBlur [2x ] - blur effect for screen update
~ #10 - 2xSaI [2x ]
~ #11 - SuperEagle [2x ]
~ #12 - Super2xSaI [2x ]
~ #13 - AdMame [2x ]
~ #20 - lq [2x ]
~ #21 - hq [2x ]
~ #22 - xbra [2x 3x 4x]
~ #23 - xbrb [2x 3x 4x]
~ #24 - xbrc [2x 3x 4x]
[Updated on: Mon, 22 September 2014 17:26] by Moderator Report message to a moderator
|
Private 1st Class
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: New feature: XBR-filter(scaler) for ja2 1.13[message #336273]
|
Sun, 28 September 2014 16:09 
|
|
StaticZ |
  |
Messages:27
Registered:September 2014 Location: Russia |
|
|
RoWa21Can you give a short example on how to run the JA2 1.13 EXE together with the "exshell.exe".
I have edited the exshell.ecd file and correctly set the path to the EXE file inside my JA2 1.13 directory.
But how do I run the "exshell.exe" together with my JA2 1.13 EXE file. Please give a short example.
Just run "exshell.exe", if all are is OK it will lunch application that you set in config itself. "exshell.exe" simply run application from config file and inject "exshell.dll" to it. After this it terminate itself and you will see your game running, if it doesn't switched in windowed mode, then it means thats setting hooks from loaded "exshell.dll" failed. Most possible reason is that are something wrong in config, for example encoding, or skipping some keys or smth else. In example what I gave you had only change path for your game (don't forget to switched windowed mode OFF and for test set 640x480 resolution mode). Ah and one more check what exectly are loading, i.e. are your values in loading sections queue and possibly they are overide:
~ Using sections (exshell will look for walues in this sections in left-to right order)
$LoadProfile: { "ShellOptions", "EXSProfile01", "DefaultConf" }
There are no any difference in what sections are declared keys, only 3 restrictions are:
* "[Localisation]" sections is hardcoded and used for parsing language info
* "$LoadProfile" key must be in root section (before sections declarations) and all other keys can't be in root section.
* "$ImageFilter" keys must be declare after declaring "$UsingBliter" key.
So you can move keys, create own sections, remove old how you whant. I made ability for ovveriding values from section for more comfortable changing profiles.
[Updated on: Sun, 28 September 2014 16:11] by Moderator Report message to a moderator
|
Private 1st Class
|
|
|
|