New Release D3D9Client Development

What kind of layout changes ? I have no idea what you mean by that.
General structure changes, to...
- move ModHTML.exe and over.exe to a "build-tools" branch, and reference them from trunk/, and branches/ [*]
- move the sources of ModHTML.exe to the "build-tools" branch
- include the sources of over.exe to the "build-tools" branch

[*] As ModHTML.exe is identical in all branches/ and trunk/ it seemed favorable if it only needs to be committed at one place - and all branches automatically get the "newest" version on update.
The HTML templates also didn't seem to fit (spread all over the branches/ and trunk/)


...but that's not really very important, just a little "housekeeping" that I thought might be needed.
 
Last edited:
Sometimes local light sources are disabled. I enable, but after some certain scenarios, they can be disabled again...
(D3D9 22 sep on 14 sep Orbiter2016). D3D9 does not like something and it disables?
 
Last edited:
@Marg: Is there a specific scenario that reproduces the problem most often?
From a quick code-review there is no such thing as "auto disable", but from the description it "sounds" like an uninitialized memory or (even worse) an unintentional memory write-access.
If you have a scenario that shows the effect more than others, could you please tell us that scenario?
Best would be a stock orbiter scenario, as addons can make thinks even more complicated.
 
@Marg: Is there a specific scenario that reproduces the problem most often?
From a quick code-review there is no such thing as "auto disable", but from the description it "sounds" like an uninitialized memory or (even worse) an unintentional memory write-access.
If you have a scenario that shows the effect more than others, could you please tell us that scenario?
Best would be a stock orbiter scenario, as addons can make thinks even more complicated.


I have encountered a similar issue as the one mentioned by Marg. I don't remember what it was exactly but probably a configuration changes were disregarded and reverted to default settings. I did mention about the anomaly to you (if you have seen it) but you didn't experience it. I mostly disregarded it as a temporary glitch in my computer. I don't recall seeing it anymore.


If you got time to take a closer look to the issue it's well appriciated.

EDIT: How common the problem is ? has anyone else encountered it ?
 
Last edited:
I'll take a close look at the members in memory *before* our Scene::bLocalLight
...maybe there is some D3D9Client-internal out-of-bounds access.
I'll focus my checks on the 2016 branch, so we are all on the same page.
 
Strange, I cannot launch Orbiter_NG at all. I am confused, I changed nothing on my PC... yesterday it worked, but not now. Hm...
I double click, no results... of course with all "run as administrator" option ON\OFF, etc. Ordinary Orbiter.exe launch window appears, but not Orbiter_NG.
 
@Marg: ...any Virus-Scanner preventing you from starting it?
As those update very regularly, the phrase "... I changed nothing on my PC..." is almost never true nowadays :P

---------- Post added at 23:01 ---------- Previous post was at 22:56 ----------

@jarmonik: FYI
I've looked into the Local-Lights issue, but couldn't find anything obvious...
I took the liberty to fix some warnings cppcheck was complaining about, but those changes don't change anything regarding Marg's (and your) Local-Light issue...
 
In D3D9client.cfg is a line "light congiguration", where is the letter g instead of the f... just to know
 
Oh a typo (embarrassing), I'll take a look if that might cause a problem on write-read circle.

---------- Post added at 23:30 ---------- Previous post was at 23:27 ----------

No, it is written as "LightCongiguration" and also read as "LightCongiguration".
So apart from the typo it's O.K.
Possibly we might change (auto-port) that in the future (although it's not worth it)
 
I've added a missing feature in D3D9Client (trunk) that should now enable planetary bodies that are defined as a mesh and "Size = xxx" parameter in their .cfg file.
(See attachment and the threads here and here for what I mean by that).

Until this revision (r1187) the body mesh had to be scaled (by Shipedit.exe for example) to be rendered correct (full) size with D3D9Client.
Now the mesh can be kept in usual "1.0 based" coordinates and the Scale parameter from the config is applied (as Orbiter 2016 does)!

@Jarmo: It seem that the texturing is not working 100%, though. Could you take a quick look, as it might take you only seconds while I'm a bit lost... :)

For the test I've added 67P/Churyumov-Gerasimenko as it is sooo non-spherical :P
The texture is just a dummy as the texturing is probably not right anyway.

This is not (yet) a new release, we have to sort out the texturing issue first (if it is one), before we create a new D3D9Client-forBETA and back-port it to D3D9Client-for2010 as well.
 

Attachments

  • 67P.jpg
    67P.jpg
    24.4 KB · Views: 64
  • 67P-Test.zip
    67P-Test.zip
    918.7 KB · Views: 12
I've added a missing feature in D3D9Client (trunk) that should now enable planetary bodies that are defined as a mesh and "Size = xxx" parameter in their .cfg file.
(See attachment and the threads here and here for what I mean by that).

Until this revision (r1187) the body mesh had to be scaled (by Shipedit.exe for example) to be rendered correct (full) size with D3D9Client.
Now the mesh can be kept in usual "1.0 based" coordinates and the Scale parameter from the config is applied (as Orbiter 2016 does)!

@Jarmo: It seem that the texturing is not working 100%, though. Could you take a quick look, as it might take you only seconds while I'm a bit lost... :)

For the test I've added 67P/Churyumov-Gerasimenko as it is sooo non-spherical :P
The texture is just a dummy as the texturing is probably not right anyway.

This is not (yet) a new release, we have to sort out the texturing issue first (if it is one), before we create a new D3D9Client-forBETA and back-port it to D3D9Client-for2010 as well.

Wait a minute, that's not a real photo?! :jawdrops:
 
That solution has been a long time in the making. Much much thanks for taking out the time from your schedule to implement it. Now all the minor moons can be modeled again in Orbiter 2016 D3D9!
 
I noticed, that even during nighttime in orbit sun shines through transparent meshes (satellite antennas, etc.). Orbiter 2016 (not BETA), and 6.sep client.
 
I noticed, that even during nighttime in orbit sun shines through transparent meshes (satellite antennas, etc.). Orbiter 2016 (not BETA), and 6.sep client.

Are you using the LensFlare post processing option? If so, I can report this issue as well. It's easily observed with the XR2 3D cockpit HUD.
 
Yes , I use LensFlare postprocessing ON (I think it's just them I see through transparencies). If it could be on the day side, it would be nothing too serious, but on the night side it's a bit odd...
 
Thank you! After downloading the new runtimes, it works swimmingly!

New computer:
MSI GF75 Thin 9SC
Intel I7-9750H @2.6Ghz
NVIDIA GeForce GTX 1650
16GB RAM

New install of Orbiter 2016
New install of D3D9Client
Activated D3D9Client module in Orbiter_ng.exe setup
Noticed when selecting 3D device on Video setup in Orbiter that the NVIDIA GeForce GTX 1650 is not listed for selection - only Intel UHD Graphics 630.

Error: Direct Runtimes may be missing... then CTD

**** Orbiter.log
000000.000: Build Aug 28 2016 [v.160828]
000000.000: Timer precision: 1e-007 sec
000000.000: Found 0 joystick(s)
000000.000: Module AtlantisConfig.dll .... [Build 160828, API 160828]
000000.000: Module AtmConfig.dll ......... [Build 160828, API 160828]
000000.000: Module DGConfigurator.dll .... [Build 160828, API 160828]
000000.000: Module ScnEditor.dll ......... [Build 160828, API 160828]
000000.000: ---------------------------------------------------------------
BaseDir : C:\Orbiter2016\
ConfigDir : C:\Orbiter2016\Config\
MeshDir : C:\Orbiter2016\Meshes\
TextureDir : C:\Orbiter2016\Textures\
HightexDir : C:\Orbiter2016\Textures2\
ScenarioDir: C:\Orbiter2016\Scenarios\
000000.000: ---------------------------------------------------------------
D3D9 DLLs : C:\Windows\SYSTEM32\d3dx9_43.dll [v 9.29.952.3111]
: C:\Windows\SYSTEM32\d3d9.dll [v 10.0.17763.1]
000000.000: ---------------------------------------------------------------
000000.000: Module D3D9Client.dll ........ [Build 190906, API 160828]
000000.000:
000000.000: **** Creating simulation session
000000.000: D3D9: [DirectX 9 Initialized]
D3D9: 3D-Adapter.............. : Intel(R) UHD Graphics 630
D3D9: MaxTextureWidth......... : 8192
D3D9: MaxTextureHeight........ : 8192
D3D9: MaxTextureRepeat........ : 8192
D3D9: VolTexAddressCaps....... : 0x3F
D3D9: NumSimultaneousRTs...... : 4
D3D9: VertexDeclCaps.......... : 0x37F
D3D9: MiscCaps................ : 0x2FCCF2
D3D9: XNA Math Support........ : Yes
D3D9: Vertex Texture.......... : Yes
D3D9: Shadow Mapping.......... : Yes
D3D9: D3DFMT_A16B16G16R16F.... : Yes
D3D9: D3DFMT_A32B32G32R32F.... : Yes
D3D9: D3DFMT_D32F_LOCKABLE.... : No
D3D9: D3DFMT_A2R10G10B10...... : Yes
D3D9: D3DFMT_L8............... : Yes
D3D9: D3DDTCAPS_DEC3N......... : No
D3D9: D3DDTCAPS_FLOAT16_2..... : Yes
D3D9: D3DDTCAPS_FLOAT16_4..... : Yes
D3D9: Runs under WINE......... : No
D3D9: Available Texture Memory : 4080 MB
000000.000: D3D9: [3DDevice Initialized]
D3D9: ERROR: D3D9Surface.cpp Line:2045 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, 0, 0, 0, 0, &FX, &errors)
D3D9: ERROR: Failed to create an Effect (Modules/D3D9Client/CKBlit.fx)
D3D9: ERROR: D3D9Pad.cpp Line:87 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, 0, 0, 0, 0, &FX, &errors)
D3D9: ERROR: Failed to create an Effect (Modules/D3D9Client/Sketchpad.fx)
D3D9: ERROR: D3D9Effect.cpp Line:341 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, macro, 0, D3DXSHADER_NO_PRESHADER|D3DXSHADER_PREFER_FLOW_CONTROL, 0, &FX, &errors)
D3D9: ERROR: Failed to create an Effect (Modules/D3D9Client/D3D9Client.fx)
D3D9: ERROR: PlanetRenderer.cpp Line:193 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, macro, 0, 0, 0, &pShader, &errors)
D3D9: ERROR: Failed to create an Effect (Modules\D3D9Client\Surface.fx)
D3D9: ERROR: Scene.cpp Line:3011 Error:-2147024770 D3DXCreateEffectFromFile(pDev, name, 0, 0, 0, 0, &FX, &errors)
D3D9: ERROR: Failed to create an Effect (Modules/D3D9Client/SceneTech.fx)

Downloaded the D3D9Client June 10 runtime from https://www.microsoft.com/en-us/download/details.aspx?id=8109

Error during DirectX Setup: An internal system error occurred. Please refer to DXError.log and DirectX.log in your Windows folder to determine problem.

DirectX.log:

11/23/19 03:42:54: infinst: Installing C:\Users\chris\AppData\Local\Temp\DX18CD.tmp\d3dx9_24_x64.inf [DefaultInstall]
11/23/19 03:42:54: infinst: Target file: 'C:\Windows\system32\d3dx9_24.dll'
Target file is Version 9.5.132.0
Source file is Version 9.5.132.0
11/23/19 03:42:54: infinst: C:\Windows\system32\d3dx9_24.dll have been installed already.
11/23/19 03:42:54: infinst: Installing C:\Users\chris\AppData\Local\Temp\DX18CD.tmp\d3dx9_25_x64.inf [DefaultInstall]
11/23/19 03:42:54: infinst: Target file: 'C:\Windows\system32\d3dx9_25.dll'
Target file is Version 9.6.168.0
Source file is Version 9.6.168.0
11/23/19 03:42:54: infinst: C:\Windows\system32\d3dx9_25.dll have been installed already.
11/23/19 03:42:55: infinst: Installing C:\Users\chris\AppData\Local\Temp\DX18CD.tmp\d3dx9_26_x64.inf [DefaultInstall]
11/23/19 03:42:55: infinst: Target file: 'C:\Windows\system32\d3dx9_26.dll'
Target file is Version 9.7.239.0
Source file is Version 9.7.239.0
11/23/19 03:42:55: infinst: C:\Windows\system32\d3dx9_26.dll have been installed already.
11/23/19 03:42:55: infinst: Installing C:\Users\chris\AppData\Local\Temp\DX18CD.tmp\d3dx9_27_x64.inf [DefaultInstall]
11/23/19 03:42:55: infinst: Target file: 'C:\Windows\system32\d3dx9_27.dll'
Target file is Version 9.8.299.0
Source file is Version 9.8.299.0
11/23/19 03:42:55: infinst: C:\Windows\system32\d3dx9_27.dll have been installed already.
11/23/19 03:42:56: infinst: Installing C:\Users\chris\AppData\Local\Temp\DX18CD.tmp\d3dx9_28_x64.inf [DefaultInstall]
11/23/19 03:42:56: infinst: Target file: 'C:\Windows\system32\d3dx9_28.dll'
Target file is Version 9.10.455.0
Source file is Version 9.10.455.0
11/23/19 03:42:56: infinst: C:\Windows\system32\d3dx9_28.dll have been installed already.
11/23/19 03:42:56: infinst: Installing C:\Users\chris\AppData\Local\Temp\DX18CD.tmp\d3dx9_29_x64.inf [DefaultInstall]
11/23/19 03:42:56: infinst: Target file: 'C:\Windows\system32\d3dx9_29.dll'
Target file is Version 9.11.519.0
Source file is Version 9.11.519.0
11/23/19 03:42:56: infinst: C:\Windows\system32\d3dx9_29.dll have been installed already.
11/23/19 03:42:56: infinst: Installing C:\Users\chris\AppData\Local\Temp\DX18CD.tmp\XACT_x64.inf [DefaultInstall]
11/23/19 03:42:56: infinst: Target file: 'C:\Windows\system32\xactengine2_0.dll'
Target file is Version 9.11.519.0
Source file is Version 9.11.519.0
11/23/19 03:42:56: infinst: C:\Windows\system32\xactengine2_0.dll have been installed already.
11/23/19 03:42:56: infinst: Target file: 'C:\Windows\system32\x3daudio1_0.dll'
Target file is Version 9.11.519.0
Source file is Version 9.11.519.0
11/23/19 03:42:56: infinst: C:\Windows\system32\x3daudio1_0.dll have been installed already.
11/23/19 03:42:57: infinst: Installing C:\Users\chris\AppData\Local\Temp\DX18CD.tmp\d3dx9_30_x64.inf [DefaultInstall]
11/23/19 03:42:57: infinst: Target file: 'C:\Windows\system32\d3dx9_30.dll'
Target file is Version 9.12.589.0
Source file is Version 9.12.589.0
11/23/19 03:42:57: infinst: C:\Windows\system32\d3dx9_30.dll have been installed already.


Next check D3D9ClientLog

D3D9Client Log:

(0: 0.0s 00.01ms)(0x2078) [Not Compiled With nVidia API]
(1: 0.0s 02.87ms)(0x2078) ================ clbkInitialise ===============
(2: 0.0s 00.04ms)(0x2078) Orbiter Version = 160828
(3: 0.0s 10.25ms)(0x2078) Index:0 320 x 200 48Hz (22)
(4: 0.0s 00.72ms)(0x2078) Index:1 320 x 200 120Hz (22)
(5: 0.0s 01.22ms)(0x2078) Index:2 320 x 240 48Hz (22)
(6: 0.0s 01.01ms)(0x2078) Index:3 320 x 240 120Hz (22)
(7: 0.0s 00.64ms)(0x2078) Index:4 400 x 300 48Hz (22)
(8: 0.0s 00.44ms)(0x2078) Index:5 400 x 300 120Hz (22)
(9: 0.0s 00.69ms)(0x2078) Index:6 512 x 384 48Hz (22)
(10: 0.0s 00.44ms)(0x2078) Index:7 512 x 384 120Hz (22)
(11: 0.0s 00.44ms)(0x2078) Index:8 640 x 400 48Hz (22)
(12: 0.0s 00.44ms)(0x2078) Index:9 640 x 400 120Hz (22)
(13: 0.0s 00.44ms)(0x2078) Index:10 640 x 480 48Hz (22)
(14: 0.0s 00.44ms)(0x2078) Index:11 640 x 480 120Hz (22)
(15: 0.0s 00.44ms)(0x2078) Index:12 800 x 600 48Hz (22)
(16: 0.0s 00.44ms)(0x2078) Index:13 800 x 600 120Hz (22)
(17: 0.0s 00.44ms)(0x2078) Index:14 1024 x 768 48Hz (22)
(18: 0.0s 00.43ms)(0x2078) Index:15 1024 x 768 120Hz (22)
(19: 0.0s 00.44ms)(0x2078) Index:16 1152 x 864 48Hz (22)
(20: 0.0s 00.44ms)(0x2078) Index:17 1152 x 864 120Hz (22)
(21: 0.0s 00.43ms)(0x2078) Index:18 1280 x 600 48Hz (22)
(22: 0.0s 00.96ms)(0x2078) Index:19 1280 x 600 120Hz (22)
(23: 0.0s 00.49ms)(0x2078) Index:20 1280 x 720 48Hz (22)
(24: 0.0s 00.45ms)(0x2078) Index:21 1280 x 720 120Hz (22)
(25: 0.0s 00.44ms)(0x2078) Index:22 1280 x 768 48Hz (22)
(26: 0.0s 00.46ms)(0x2078) Index:23 1280 x 768 120Hz (22)
(27: 0.0s 00.44ms)(0x2078) Index:24 1280 x 800 48Hz (22)
(28: 0.0s 00.47ms)(0x2078) Index:25 1280 x 800 120Hz (22)
(29: 0.0s 00.44ms)(0x2078) Index:26 1280 x 960 48Hz (22)
(30: 0.0s 00.44ms)(0x2078) Index:27 1280 x 960 120Hz (22)
(31: 0.0s 00.59ms)(0x2078) Index:28 1280 x 1024 48Hz (22)
(32: 0.0s 00.44ms)(0x2078) Index:29 1280 x 1024 120Hz (22)
(33: 0.0s 00.63ms)(0x2078) Index:30 1360 x 768 48Hz (22)
(34: 0.0s 00.65ms)(0x2078) Index:31 1360 x 768 120Hz (22)
(35: 0.0s 00.11ms)(0x2078) Index:32 1366 x 768 48Hz (22)
(36: 0.0s 00.22ms)(0x2078) Index:33 1366 x 768 120Hz (22)
(37: 0.0s 00.13ms)(0x2078) Index:34 1400 x 1050 48Hz (22)
(38: 0.0s 00.11ms)(0x2078) Index:35 1400 x 1050 120Hz (22)
(39: 0.0s 00.11ms)(0x2078) Index:36 1440 x 900 48Hz (22)
(40: 0.0s 00.11ms)(0x2078) Index:37 1440 x 900 120Hz (22)
(41: 0.0s 00.11ms)(0x2078) Index:38 1600 x 900 48Hz (22)
(42: 0.0s 00.11ms)(0x2078) Index:39 1600 x 900 120Hz (22)
(43: 0.0s 00.10ms)(0x2078) Index:40 1680 x 1050 48Hz (22)
(44: 0.0s 00.11ms)(0x2078) Index:41 1680 x 1050 120Hz (22)
(45: 0.0s 00.11ms)(0x2078) Index:42 1920 x 1080 48Hz (22)
(46: 0.0s 00.11ms)(0x2078) Index:43 1920 x 1080 120Hz (22)
(47: 27.8s 27766.21ms)(0x2078) Scenario = .\Scenarios\(Current state).scn
(48: 27.8s 11.55ms)(0x2078) ================ clbkCreateRenderWindow ===============
(49: 27.8s 05.18ms)(0x2078) Window Handle = 0x1C080A
(50: 27.8s 05.50ms)(0x2078) [VideoConfiguration] Adapter=0, ModeIndex=43
(51: 27.8s 00.17ms)(0x2078) 3D-Adapter.............. : Intel(R) UHD Graphics 630
(52: 27.8s 01.02ms)(0x2078) dwFSMode................ : 1
(53: 27.8s 02.33ms)(0x2078) MaxTextureBlendStages... : 8
(54: 27.8s 00.03ms)(0x2078) MaxTextureWidth......... : 8192
(55: 27.8s 05.14ms)(0x2078) MaxTextureHeight........ : 8192
(56: 27.8s 01.35ms)(0x2078) MaxTextureRepeat........ : 8192
(57: 27.8s 01.09ms)(0x2078) VolTexAddressCaps....... : 0x3F
(58: 27.8s 04.92ms)(0x2078) MaxVolumeExtent......... : 2048
(59: 27.8s 00.02ms)(0x2078) MaxPrimitiveCount....... : 8388607
(60: 27.8s 00.01ms)(0x2078) MaxVertexIndex.......... : 16777215
(61: 27.8s 00.01ms)(0x2078) MaxAnisotropy........... : 16
(62: 27.8s 00.01ms)(0x2078) MaxSimultaneousTextures. : 8
(63: 27.8s 00.01ms)(0x2078) MaxStreams.............. : 16
(64: 27.8s 00.01ms)(0x2078) MaxStreamStride......... : 255
(65: 27.8s 00.01ms)(0x2078) MaxVertexBlendMatrices.. : 4
(66: 27.8s 00.01ms)(0x2078) MaxVShaderInstrExecuted. : 4294967295
(67: 27.8s 00.01ms)(0x2078) MaxPointSize............ : 256.000000
(68: 27.8s 00.01ms)(0x2078) VertexShaderVersion..... : 0x300
(69: 27.8s 00.01ms)(0x2078) PixelShaderVersion...... : 0x300
(70: 27.8s 00.01ms)(0x2078) NumSimultaneousRTs...... : 4
(71: 27.8s 00.89ms)(0x2078) D3DPTEXTURECAPS_POW2.... : 0
(72: 27.8s 00.01ms)(0x2078) NONPOW2CONDITIONAL...... : 0
(73: 27.8s 00.01ms)(0x2078) VertexDeclCaps.......... : 0x37F
(74: 27.8s 00.66ms)(0x2078) MiscCaps................ : 0x2FCCF2
(75: 27.8s 00.64ms)(0x2078) DevCaps................. : 0x19AE50
(76: 27.8s 00.01ms)(0x2078) DevCaps2................ : 0x51
(77: 27.8s 00.01ms)(0x2078) XNA Math Support........ : Yes
(78: 27.8s 03.65ms)(0x2078) Vertex Texture.......... : Yes
(79: 27.8s 00.89ms)(0x2078) Shadow Mapping.......... : Yes
(80: 27.8s 00.75ms)(0x2078) D3DFMT_A16B16G16R16F.... : Yes
(81: 27.8s 03.00ms)(0x2078) D3DFMT_A32B32G32R32F.... : Yes
(82: 27.8s 03.35ms)(0x2078) D3DFMT_D32F_LOCKABLE.... : No
(83: 27.9s 03.01ms)(0x2078) D3DFMT_A2R10G10B10...... : Yes
(84: 27.9s 00.71ms)(0x2078) D3DFMT_L8............... : Yes
(85: 27.9s 00.67ms)(0x2078) D3DDTCAPS_DEC3N......... : No
(86: 27.9s 00.70ms)(0x2078) D3DDTCAPS_FLOAT16_2..... : Yes
(87: 27.9s 00.68ms)(0x2078) D3DDTCAPS_FLOAT16_4..... : Yes
(88: 27.9s 00.71ms)(0x2078) Runs under WINE......... : No
(89: 27.9s 03.12ms)(0x2078) Window Size = [1920, 1080]
(90: 27.9s 00.01ms)(0x2078) Window LeftTop = [0, 0]
(91: 27.9s 49.98ms)(0x2078) Available Texture Memory : 4080 MB
(92: 27.9s 06.70ms)(0x2078) === [3DDevice Initialized] ===
(93: 27.9s 01.13ms)(0x2078) ----- Initialize D3D9ClientSurface Tech -----
(94: 27.9s 00.46ms)(0x2078) [ERROR] D3D9Surface.cpp Line:2045 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, 0, 0, 0, 0, &FX, &errors)
(95: 27.9s 00.64ms)(0x2078) [ERROR] Failed to create an Effect (Modules/D3D9Client/CKBlit.fx)
(96: 34.7s 6822.77ms)(0x2078) Render Target = 0xB641A0
(97: 34.7s 00.04ms)(0x2078) DepthStencil = 0x9BA9C20
(98: 34.7s 00.63ms)(0x2078) [ERROR] D3D9Pad.cpp Line:83 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, 0, 0, 0, 0, &FX, &errors)
(99: 34.7s 01.05ms)(0x2078) [ERROR] Failed to create an Effect (Modules/D3D9Client/Sketchpad.fx)
(100: 35.4s 689.54ms)(0x2078) [NEW FONT] ( Courier New), Size=20, Weight=400 Pitch&Family=31
(101: 35.4s 03.59ms)(0x2078) Font Video Memory Usage = 512 kb
(102: 35.4s 00.88ms)(0x2078) Font and Charter set creation succesfull
(103: 35.4s 01.02ms)(0x2078) Splash Window Size = [1920, 1080]
(104: 35.4s 00.01ms)(0x2078) Splash Window LeftTop = [0, 0]
(105: 35.5s 110.54ms)(0x2078) Starting to initialize D3D9Client.fx a rendering technique...
(106: 35.5s 00.55ms)(0x2078) [ERROR] D3D9Effect.cpp Line:341 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, macro, 0, D3DXSHADER_NO_PRESHADER|D3DXSHADER_PREFER_FLOW_CONTROL, 0, &FX, &errors)
(107: 35.6s 01.25ms)(0x2078) [ERROR] Failed to create an Effect (Modules/D3D9Client/D3D9Client.fx)
(108: 35.6s 01.22ms)(0x2078) TileManager::GlobalInit()...
(109: 35.6s 68.96ms)(0x2078) Starting to initialize Surface.fx a shading technique...
(110: 35.6s 00.15ms)(0xC38) TileBuffer::LoadTile thread started
(111: 35.6s 00.09ms)(0x3460) TileLoader::Load thread started
(112: 35.6s 01.38ms)(0x2078) [ERROR] PlanetRenderer.cpp Line:198 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, macro, 0, 0, 0, &pShader, &errors)
(113: 35.6s 01.27ms)(0x2078) [ERROR] Failed to create an Effect (Modules\D3D9Client\Surface.fx)
(114: 35.6s 07.68ms)(0x2078) CSphereManager::GlobalInit()...
(115: 35.6s 14.91ms)(0x2078) [ERROR] Scene.cpp Line:3089 Error:-2147024770 D3DXCreateEffectFromFile(pDev, name, 0, 0, 0, 0, &FX, &errors)
(116: 35.6s 03.97ms)(0x2078) [ERROR] Failed to create an Effect (Modules/D3D9Client/SceneTech.fx)

Any thoughts???
 
Is the source code for the D3D9Client available? Codeplex seems to have shut down.

Codeplex is not used for quite a while now...
Builds are published here: http://users.kymp.net/~p501474a/D3D9Client/
The source code is served here: svn://mirror.orbiter-radio.co.uk/D3D9client/
(
svn://mirror.orbiter-radio.co.uk/D3D9client/trunk for Orbiter BETA,
svn://mirror.orbiter-radio.co.uk/D3D9client/branches/2016 for Orbiter 2016 and
svn://mirror.orbiter-radio.co.uk/D3D9client/branches/2010-P1 for Orbiter 2010-P1
)
 
D3D9: ERROR: D3D9Surface.cpp Line:2045 Error:-2147024770 D3DXCreateEffectFromFileA(pDev, name, 0, 0, 0, 0, &FX, &errors)
D3D9: ERROR: Failed to create an Effect (Modules/D3D9Client/CKBlit.fx)


These errors are pointing into a missing runtimes or other D3D dependencies.
Could you check that you have in your "/windows/system32/" folder following files:
d3d9.dll
d3dx9_43.dll
D3DCompiler_43.dll
 
Back
Top