Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Addons > Addon Development
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Addon Development Developers post news, updates, & discussions here about your projects in development.

Reply
 
Thread Tools
  #1  
Old
SolarLiner's Avatar
SolarLiner SolarLiner is offline
It's necessary, TARS.
Default ReShade for Orbiter D3D9 (WIP Thread)
by SolarLiner 02-11-2016, 09:55 PM

Hi,
As you may have seen, I have posted several screenshots with a custom ReShade configuration for Orbiter. I tested it with Orbiter 2015, but Orbiter 2010 should run as well.


(more)

Requirements
This configuration has been created with and requires jarmonik's D3D9 client. Get it here: http://www.orbiter-forum.com/showthr...postcount=3165 or here (2015 beta versions): http://orbiter-forum.com/showthread.php?t=18431
Thanks Ripley for the correct links!

Installation
As I don't think the Reshade binaries are redistribuable, go get your own Reshade install here: http://reshade.me/

You don't need everything from the zip file, as it also contains Mediator, a small app that allows you to easily apply Reshade to games. Instead, extract ReShade.fx, Reshade32.dll and the ReShade folder to [Orbiter Folder]/Modules/Server. Then, rename Reshade32.dll to d3d9.dll.

Then, unzip my ReShade configuration into the ReShade folder, and confirm any overwrite request.

Open Orbiter, and in the D3D9 Advanced Settings, disable Anti-Aliasing to let ReShade gain access to the Depth Buffer, allowing it to add SSAO and DoF effects. Don't worry though, there's a FXAA technique, so lines won't be aliased anyway.
That step however is only necessary if you want to have those effects in. If the depth buffer isn't found they will disable themselves for better performance.

You may also want to make the Sun bigger than its default size, this has the effect of resizing the sun texture and make it bigger, and that in turns allows the shaders to pick it up as a light source.

Using ReShade and the orbiter configuration
ScrollLock toggles the main screen effects.
F12 toggles the DoF / Focus Blur effect.
F10 show the Depth Buffer.

Have fun and please have some feedback! I'm still tweaking this anyway
Attached Files
File Type: zip ReShadeForOrbiter.zip (33.1 KB, 65 views)

Last edited by SolarLiner; 02-13-2016 at 12:42 PM. Reason: Adding screenshots / Changing links and correcting keys / Adding crucial piece of information
Reply With Quote
Views 5100 Comments 18
Total Comments 18

Comments

Old 02-12-2016, 06:28 AM   #2
Abloheet
Addon Developer
 
Abloheet's Avatar
Default

Not being able to make it work
Abloheet is offline   Reply With Quote
Old 02-12-2016, 12:23 PM   #3
Nikogori
Donator
Default

I'm sorry if this is a dumb question, but can you tell me what Scroll key is? My keyboard has scroll lock key but it doesn't work.
Nikogori is offline   Reply With Quote
Old 02-12-2016, 05:26 PM   #4
SolarLiner
It's necessary, TARS.
 
SolarLiner's Avatar
Default

Quote:
Originally Posted by Abloheet View Post
 Not being able to make it work
That is most interesting. I've read your PM stating you did all the necessary steps. Normally in the upper left there should be a message displaying ReShade's version, the MasterEffect shader suite, and the compilation state of the shaders. Do you get that? It appears when Orbiter is loading.

Quote:
Originally Posted by Nikogori View Post
 I'm sorry if this is a dumb question, but can you tell me what Scroll key is? My keyboard has scroll lock key but it doesn't work.
My bad, wrote this before getting to bed. Edited the post, and I meant the Scroll Lock key.
SolarLiner is offline   Reply With Quote
Thanked by:
Old 02-12-2016, 06:58 PM   #5
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

Quote:
Edited the post, and I meant the Scroll Lock key.
Those still exist? *looks at keyboard* Oh hey there little fellow, haven't noticed you since the late 80s...
jedidia is offline   Reply With Quote
Old 02-12-2016, 07:53 PM   #6
orb
O-F Administrator
Ninja
 
orb's Avatar

Default

Quote:
Originally Posted by jedidia View Post
 haven't noticed you since the late 80s...
Well, it's surely noticeable nowadays while using Linux.
orb is offline   Reply With Quote
Thanked by:
Old 02-13-2016, 02:48 AM   #7
Abloheet
Addon Developer
 
Abloheet's Avatar
Default

Yeah. There was no message from reshade.
Is that because of windows 10, or bcoz of some settings i have applied from the driver for orbiter_ng.exe?
Then i will delete its profile from amd overdrive, and see if it works.
I also read reshade's readme, and placed the reshade32.dll, in orbiter root, and then renamed it to d3d9.dll. Still no success. As last resort, i placed the entire reshade folder in d3d9client's shader folder as well. Still no success

---------- Post added at 08:18 AM ---------- Previous post was at 08:15 AM ----------

The dof effect and ambient occlusion, especially behind the VAB is absolutely amazing!

What is the pic with the shuttle a showcasing anyway?
Abloheet is offline   Reply With Quote
Old 02-13-2016, 09:00 AM   #8
Nikogori
Donator
Default

I believe I followed every step you specified but it doesn't work. I can't see any differences or messages.
I'm using Windows7 64bit.

from left to right: Modules/Server folder, Reshade folder, video tab and advanced.
Click image for larger version

Name:	Reshade.png
Views:	23
Size:	55.1 KB
ID:	14248
Nikogori is offline   Reply With Quote
Thanked by:
Old 02-13-2016, 12:40 PM   #9
SolarLiner
It's necessary, TARS.
 
SolarLiner's Avatar
Default

Quote:
Originally Posted by Nikogori View Post
 I believe I followed every step you specified but it doesn't work. I can't see any differences or messages.
I'm using Windows7 64bit.

from left to right: Modules/Server folder, Reshade folder, video tab and advanced.
Attachment 14248
[Facepalms hard]
Yeah, I did forget an important part of the thing: take the actual injector DLL ...

So what you have to do is take Reshade32.dll from the zip file and place it in the Modules/Server folder, then rename it to d3d9.dll.

I uh... Will be hiding in this corner over here...
SolarLiner is offline   Reply With Quote
Thanked by:
Old 02-13-2016, 01:47 PM   #10
jedidia
shoemaker without legs
 
jedidia's Avatar
Default

Quote:
Well, it's surely noticeable nowadays while using Linux.
Huh... I'm working in Linux every working day for a few months now, but it never occured to me that that button might still do its original job!
jedidia is offline   Reply With Quote
Old 02-13-2016, 02:20 PM   #11
Nikogori
Donator
Default

Thank you. It works and looks great!
Nikogori is offline   Reply With Quote
Thanked by:
Old 02-15-2016, 03:15 PM   #12
Abloheet
Addon Developer
 
Abloheet's Avatar
Default

Ok, It works now. But why is it so dark?
I saw the d3d9 log. It shows that it loads using dx11, and d3d8, 9, 10, 12 are delayed.

I dont know, dx11 for orbiter has been dark before in my computer. When I used asmi's dx 11 client for orbiter beta, it also had the same dark issue. But then, that time's d3d9 client was dark too. That has been fixed now.

So, for now, is there anyway for me to change reshade's brightness, or contrast, or gamma levels by editing some lines in some .fx file?

And, the virtual cockpit gives very bad performance. In general d3d9, it gives 120-150 fps in earth landed external view, and 80 fps in vc.

Using reshade, i get 50-60fps in earth landed external view, and 25-30 fps in vc

---------- Post added at 08:45 PM ---------- Previous post was at 08:43 PM ----------

And it is difficult to read text on the corners of the screen, even with dof off.
They become blurred, the time, fps counter, etc., as if they are being seen through a fish eye lense; even without changing orbiter's field of view
Abloheet is offline   Reply With Quote
Old 02-15-2016, 05:30 PM   #13
SolarLiner
It's necessary, TARS.
 
SolarLiner's Avatar
Default

Quote:
Originally Posted by Abloheet View Post
 Ok, It works now. But why is it so dark?
I saw the d3d9 log. It shows that it loads using dx11, and d3d8, 9, 10, 12 are delayed.

I dont know, dx11 for orbiter has been dark before in my computer. When I used asmi's dx 11 client for orbiter beta, it also had the same dark issue. But then, that time's d3d9 client was dark too. That has been fixed now.
That is out of my range with ReShade, and since it grabs the output to the screen right before it is shown to the display, increasing brightness would result in ugly artifacts. You could try to find the Lift Gamma Gain shader parameters and try to mess around with the values, but the end result won't be too promising.

Quote:
The virtual cockpit gives very bad performance. In general d3d9, it gives 120-150 fps in earth landed external view, and 80 fps in vc.

Using reshade, i get 50-60fps in earth landed external view, and 25-30 fps in vc
Known issue, but irresolvable for me. The way the Depth Buffer is handled in the D3D9 client makes computing soft shadows (from SSAO) quite hard, and that results in massive drops in framerate. So, stick to the 2D or Glass Panel.

Quote:
And it is difficult to read text on the corners of the screen, even with dof off.
They become blurred, the time, fps counter, etc., as if they are being seen through a fish eye lense; even without changing orbiter's field of view
This is from the Chromatic Aberration effect. It simulates lenses imperfections by shifting the colors on the edges of the picture slightly. It is subtle but adds to the quality; the only problems are text in the corner. This is why you have a key that toggles ReShade on and off, at anytime if you want to read something that is blurred by something else, you can disable it temporarily.
There also is an effect mask I could setup that would prevent ReShade from having an effect where text is located, but once again, it would look pretty bad when the text disappears.
SolarLiner is offline   Reply With Quote
Thanked by:
Old 02-23-2016, 05:00 PM   #14
SolarLiner
It's necessary, TARS.
 
SolarLiner's Avatar
Default

Working on a toggleable night vision shader:


SolarLiner is offline   Reply With Quote
Thanked by:
Old 03-09-2016, 03:04 PM   #15
Abloheet
Addon Developer
 
Abloheet's Avatar
Default

sorry to say, solarliner, but with the latest version of the orbiter beta(r51) and latest d3d9client(beta20 for r51), reshade is giving worse and worse performance. dont know why, mayb bcause of some changes to orbiter and the client performance. so, with a heavy heart, i am removing reshade from my orbiter installation. it was good fun to use it
Abloheet is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Addons > Addon Development


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 03:34 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.