• ORBITER-FORUM will be temporarily closed at 2020-09-23 08:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.

New Release D3D9Client Development

jarmonik

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,104
Reaction score
61
Points
48
Website
users.kymp.net
Something I have been meaning to ask about is how the rest of the texture generation tools in D3D9DebugControls are coming along? I would love to update the SSU textures so that they're ready for 2016.
The rest of the tools ? There are no other tools scheduled than ability to bake base tiles to planetary textures and some other terrain editing tools.

The ground work is laid and ready, we have a surface snap and a proper terrain/mouse cursor interaction implemented. Which was likely the hardest part. But no progress other than that.
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
9,362
Reaction score
81
Points
138
Location
between the planets
We should prepare an official microtexture distribution package so would you care to share the textures you have ?
Sorry, I have only what has been distributed in the past. Not much of an image editor...
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
8,768
Reaction score
31
Points
123
The rest of the tools ? There are no other tools scheduled than ability to bake base tiles to planetary textures and some other terrain editing tools.
I was thinking of the material texture generators (specular, roughness, reflection etc).
 

jarmonik

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,104
Reaction score
61
Points
48
Website
users.kymp.net
I was thinking of the material texture generators (specular, roughness, reflection etc).
On that sector everything is ready and implemented as far as I can tell. I am going to leave the "advanced renderer" (i.e. Vessel.fx) for Felix24 so he can implement that by his own preferences. The client can switch between Vessel.fx and PBR.fx in a per meshgroup basis.

I guess I should focus in writing some documentation regarding the PBR system and client architecture in general. Right now the client is in a good condition and ready for Orbiter 2016 release. Except the documentation of course.
 

DaveS

Space Shuttle Ultra Project co-developer
Addon Developer
Donator
Beta Tester
Joined
Feb 4, 2008
Messages
8,768
Reaction score
31
Points
123
On that sector everything is ready and implemented as far as I can tell. I am going to leave the "advanced renderer" (i.e. Vessel.fx) for Felix24 so he can implement that by his own preferences. The client can switch between Vessel.fx and PBR.fx in a per meshgroup basis.
As far as I can tell, it doesn't save the modifications you do. That is what I talking about.
 

jarmonik

Addon Developer
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,104
Reaction score
61
Points
48
Website
users.kymp.net
As far as I can tell, it doesn't save the modifications you do. That is what I talking about.
I haven't heard that before. I'll check it out, I may have forgotten something. However, the texture "tuning" values aren't saved they are intended to be applied to the textures them selves.

---------- Post added at 23:48 ---------- Previous post was at 23:23 ----------

As far as I can tell, it doesn't save the modifications you do. That is what I talking about.
A quick test didn't reveal any problem there. Could you check that destination files aren't flagged as "read only" ?
 

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
2,893
Reaction score
9
Points
38
Location
Rome
Website
www.tuttovola.org
Before release I wanted to show you this problem regarding recorded flights annotations.
Installation is latest Orbiter 2016 RC1 in its own new folder, no other addons (other than D3D9), the scenario is \Scenarios\Tutorials\DG to the Moon:


Orbiter 2016 RC1 (inline)



Orbiter 2016 RC1 + D3D9 24



Orbiter 2016 RC1 + D3D9 24.1



Displayed text definitely has some problems.
 

kuddel

Donator
Donator
Joined
Apr 1, 2008
Messages
1,486
Reaction score
18
Points
38
Displayed text definitely has some problems.
That issue is already solved (a more recent version of D3D9Client including that fix should already be posted her, I think)
 

GLS

Addon Developer
Addon Developer
Joined
Mar 22, 2008
Messages
3,922
Reaction score
46
Points
73
I found 2 problems with the text output in r24.1.
I have the following code to output text so that it ends at the specified coordinates (for instance 21º)....
Code:
skp->SetTextAlign( oapi::Sketchpad::RIGHT );
sprintf_s( cbuf, 8, "%3.0f%c", dtmp, 176 );
skp->Text( 377, 325, cbuf, strlen( cbuf ) );
...but the "º" (that's char 176) shows up to the right of the coordinates, like it wasn't recognized as text but still being printed.

Another issue is having something like this
Code:
sprintf_s( cbuf, 8, "%c", 255 );
so I can get a specific char. If I want char 254 it works and prints what I want, but when using 255 nothing is printed.
 

SolarLiner

It's necessary, TARS.
Addon Developer
Joined
Jun 14, 2010
Messages
1,847
Reaction score
0
Points
0
Location
404 ROAD NOT FOUND
Here's a new build of the HDR branch for RC1
Changes:
  • New Lens Flare shader - completely rewritten to go with LGPL (the old one was taken and modified from a Shadertoy shader; this one should operate the same, might even perform better (simpler shader for almost the same result), and is 100% my creation)
  • Reverted tonemap formula back to Reinhard - more natural result, less contrasted but brighter
  • The graphics client now better uses the new dynamic range
  • Actually is the most recent one. I feel pretty much stupid at this point... :hide:
Warning: Disabling post-processing effects will result in a overexposed and flat image.

----
jarmo and kuddel: Using build_release.bat gives mea "forUnknown" filename - which apparently is the result of over.exe giving nonsense for the batch script; changing the flag to over /L runs better, but the filename syntax differs. Any idea?
Running over.exe prints this:
Code:
C:\Games\Orbiter\D3D9Client\branches\HDR\Utils\D3D9Client>over /N                                                                                                                                             
Retrieving version information from Orbiter repository...                                                                                                                                                           
160712:0451
(program appears to hang for a minute after printing the command - I'm assuming it's trying to connect to a remote repository)
 

Attachments

Last edited:

Ripley

Tutorial translator
Donator
Joined
Sep 12, 2010
Messages
2,893
Reaction score
9
Points
38
Location
Rome
Website
www.tuttovola.org
That issue is already solved (a more recent version of D3D9Client including that fix should already be posted her, I think)
I don't know if this test version posted by Jarmonik is the "more recent version" Kuddel wrote about, but my recorded flights annotations problem is still the same with it.
Text goes off screen to the far right, as in my last screenshot at post #3987
 

GLS

Addon Developer
Addon Developer
Joined
Mar 22, 2008
Messages
3,922
Reaction score
46
Points
73
Could you check if this build fixes these two issues and the polygon of course.
Also surface tile load issues should be addressed.
All 3 fixed! Thank you so much! :hail:
 

Marg

Member
Joined
Mar 20, 2008
Messages
363
Reaction score
6
Points
18
Here's a new build of the HDR branch for RC1
Changes:
  • New Lens Flare shader - completely rewritten to go with LGPL (the old one was taken and modified from a Shadertoy shader; this one should operate the same, might even perform better (simpler shader for almost the same result), and is 100% my creation)
  • Reverted tonemap formula back to Reinhard - more natural result, less contrasted but brighter
  • The graphics client now better uses the new dynamic range
Warning: Disabling post-processing effects will result in a overexposed and flat image.

----
jarmo and kuddel: Using build_release.bat gives mea "forUnknown" filename - which apparently is the result of over.exe giving nonsense for the batch script; changing the flag to over /L runs better, but the filename syntax differs. Any idea?
Running over.exe prints this:
Code:
C:\Games\Orbiter\D3D9Client\branches\HDR\Utils\D3D9Client>over /N                                                                                                                                             
Retrieving version information from Orbiter repository...                                                                                                                                                           
160712:0451
(program appears to hang for a minute after printing the command - I'm assuming it's trying to connect to a remote repository)
Somehow does not work. I noticed that some files are not in this pack... for example sketchpad.fx. I see black and white overexposed image again.
(postprocessing is enabled).
 

Eduard

New member
Joined
Dec 18, 2015
Messages
54
Reaction score
0
Points
0
Warning: Disabling post-processing effects will result in a overexposed and flat image.
Ok, I enabled following option:
Video->Advanced->Enable post-processing effects
But then, de result changes from this:
16.07.24 13-28-49 GL-01S.jpg
to this:
16.07.24 13-29-11 GL-01S.jpg
Still bad. In fact even worse. But from space, I can see the nice shiny sun now (beautifull, seriously good work!).

Another thing:
Why is this option still disabled by default in the D3D9Client.cfg within your ZIP file?
 
Last edited:

Eduard

New member
Joined
Dec 18, 2015
Messages
54
Reaction score
0
Points
0
Could you check if this build fixes these two issues and the polygon of course.
Also surface tile load issues should be addressed.
As far as I can see the low and high res textures are all loading now.

But in both now posted versions the orange screentexts in the "DG to the moon" scenario still run out of the screen.
 

Eduard

New member
Joined
Dec 18, 2015
Messages
54
Reaction score
0
Points
0
Okay, so the problem was that I was having two working copies of the code, and I published an older, definitely not for-release version...

This one should look and feel and be better now.
Much better, but is the following a known issue (Sun is visible through buildings)?:
16.07.24 20-09-53 GL-01S.jpg



Furthermore, I am experiencing an extreme drop in framerate now. For example, when orbiting the Earth:
Old framerate: 250 - 300 fps
New framerate: 40 - 50 fps

I believe this problem is partially due to enabling post-processing effects.
I tested that now with the previous build (D3D9ClientBeta24.1-forBETA r58(r733).zip), resulting in a drop to about: 75 to 90 fps.

But the extremely low framerates of 40 - 50 are only with the newest build.

(All mentioned values here are based on the setting "Disable vertical sync" enabled. Otherwise framerates are locked to a maximum of 60 fps.)

My screen resolution: 3840x2160 (4k Ultra HD).
 
Last edited:
Top