New Release D3D9Client Development

Sorry guys, 1 question:

does terrain gets illuminated by spotlights? because I'm coding my crawler which has its own lights and I was getting crazy because I saw no lights on the ground projected from the crawler. Then I tried with the inline client and worked perfectly, so is it known about d3d9? or is there any settings that I need to change?

if it was already treated here sorry, couldn't find it among all the posts
 
Did you try to put your bacon creation code in clbkpoststep? I tell you this because I faced the issue on Antares and fixed it doing so
 
Did you try to put your bacon creation code in clbkpoststep? I tell you this because I faced the issue on Antares and fixed it doing so
I don't think it's safe: if you create a light each step you'll find yourself with a hundreds of lights. Anyway the lights work fine, with the inline I see everything perfectly, and with the d3d9 I see the vehicles perfectly illuminated, it seems that just the terrain in the d3d9 does not receive the light.
 
Bacon creation code? Pigs might fly, or Orbit...

N.
 
I used this code to check the window status
I tried to dig on my own, nothing here either. The bug randomly happens but nothing seems to be the cause. Did we really anger the Probe that much? :hailprobe:

I was getting crazy because I saw no lights on the ground projected from the crawler.

That is the correct behavior. Only ships are taken into account hen calculating light illumination. No terrain lighting for now.
 
Floodlit football anyone? ("Pictown Reserves")
I love it !!
 
Last edited:
Hi All.
Having trouble getting D3D9ClientBeta25.1-forBETA r64(r795) to work with New Orbiter SVN commit (r.64, Sep 10 2016).
Both are in a clean install except for Orbitersound.

Its the old "no video tab" syndrome.

Command window ( that comes up)
D3D9Client module is enabled in Launchpad:
PHP:
Module Sun.dll ............... [Build 160828, API 160828]
Module Mercury.dll ........... [Build 160828, API 160828]
Module Venus.dll ............. [Build 160828, API 160828]
Module VenusAtm2006.dll ...... [Build 160828, API 160828]
Module Earth.dll ............. [Build 160828, API 160828]
Module EarthAtmJ71G.dll ...... [Build 160828, API 160828]
Module Moon.dll .............. [Build 160828, API 160828]
Module Mars.dll .............. [Build 160828, API 160828]
Module MarsAtm2006.dll ....... [Build 160828, API 160828]
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 160828, API 160828]
Module Jupiter.dll ........... [Build 160828, API 160828]
Module Io.dll ................ [Build 160828, API 160828]
Module Europa.dll ............ [Build 160828, API 160828]
Module Ganymede.dll .......... [Build 160828, API 160828]
Module Callisto.dll .......... [Build 160828, API 160828]
Module Satsat.dll ............ [Build 160828, API 160828]
Module Saturn.dll ............ [Build 160828, API 160828]
Module Mimas.dll ............. [Build 160828, API 160828]
Module Enceladus.dll ......... [Build 160828, API 160828]
Module Tethys.dll ............ [Build 160828, API 160828]
Module Dione.dll ............. [Build 160828, API 160828]
Module Rhea.dll .............. [Build 160828, API 160828]
Module Titan.dll ............. [Build 160828, API 160828]
Module Iapetus.dll ........... [Build 160828, API 160828]
Module Uranus.dll ............ [Build 160828, API 160828]
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 160828, API 160828]
Finished initialising world
Module DeltaGlider.dll ....... [Build 160910, API 160910]
Module LuaInline.dll ......... [Build 160910, API 160910]
Module ShuttleA.dll .......... [Build 160828, API 160828]
Module ShuttlePB.dll ......... [Build 160828, API 160828]
Finished initialising status
Finished initialising camera
Finished setting up render state
-----------------
Orbiter NG (no graphics)
Running in server mode (no graphics client attached).
Type "help" for a list of commands.
>

And Orbiter log:
PHP:
**** Orbiter.log
000000.000: Build Sep 10 2016 [v.160910]
000000.000: Timer precision: 4.27633e-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 OrbiterSound.dll ...... [Build 121120, API 100830]
000000.000: Module ScnEditor.dll ......... [Build 160910, API 160910]
============================ ERROR: ===========================
Failed loading module Modules\Plugin\D3D9Client.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 603]
===============================================================

Evidently module not loading but why ?......

Thanks.
 
But if you click on where the red "X" close button should appear, you can still close the window.
 
But if you click on where the red "X" close button should appear, you can still close the window.
Nope...at least not in my Windows7 setup.

I have also disabled all this Windows7-visual-stuff in right-click-compatibility-tab (even switched to WinXP-compatible)..but no luck.
 
Last edited:
Hi All.
Having trouble getting D3D9ClientBeta25.1-forBETA r64(r795) to work with New Orbiter SVN commit (r.64, Sep 10 2016).
Both are in a clean install except for Orbitersound.

Its the old "no video tab" syndrome.

Command window ( that comes up)
D3D9Client module is enabled in Launchpad:
PHP:
Module Sun.dll ............... [Build 160828, API 160828]
Module Mercury.dll ........... [Build 160828, API 160828]
Module Venus.dll ............. [Build 160828, API 160828]
Module VenusAtm2006.dll ...... [Build 160828, API 160828]
Module Earth.dll ............. [Build 160828, API 160828]
Module EarthAtmJ71G.dll ...... [Build 160828, API 160828]
Module Moon.dll .............. [Build 160828, API 160828]
Module Mars.dll .............. [Build 160828, API 160828]
Module MarsAtm2006.dll ....... [Build 160828, API 160828]
Module Phobos.dll ............ [Build ******, API 060425]
Module Deimos.dll ............ [Build ******, API 060425]
Module Galsat.dll ............ [Build 160828, API 160828]
Module Jupiter.dll ........... [Build 160828, API 160828]
Module Io.dll ................ [Build 160828, API 160828]
Module Europa.dll ............ [Build 160828, API 160828]
Module Ganymede.dll .......... [Build 160828, API 160828]
Module Callisto.dll .......... [Build 160828, API 160828]
Module Satsat.dll ............ [Build 160828, API 160828]
Module Saturn.dll ............ [Build 160828, API 160828]
Module Mimas.dll ............. [Build 160828, API 160828]
Module Enceladus.dll ......... [Build 160828, API 160828]
Module Tethys.dll ............ [Build 160828, API 160828]
Module Dione.dll ............. [Build 160828, API 160828]
Module Rhea.dll .............. [Build 160828, API 160828]
Module Titan.dll ............. [Build 160828, API 160828]
Module Iapetus.dll ........... [Build 160828, API 160828]
Module Uranus.dll ............ [Build 160828, API 160828]
Module Miranda.dll ........... [Build ******, API 060425]
Module Ariel.dll ............. [Build ******, API 060425]
Module Umbriel.dll ........... [Build ******, API 060425]
Module Titania.dll ........... [Build ******, API 060425]
Module Oberon.dll ............ [Build ******, API 060425]
Module Neptune.dll ........... [Build 160828, API 160828]
Finished initialising world
Module DeltaGlider.dll ....... [Build 160910, API 160910]
Module LuaInline.dll ......... [Build 160910, API 160910]
Module ShuttleA.dll .......... [Build 160828, API 160828]
Module ShuttlePB.dll ......... [Build 160828, API 160828]
Finished initialising status
Finished initialising camera
Finished setting up render state
-----------------
Orbiter NG (no graphics)
Running in server mode (no graphics client attached).
Type "help" for a list of commands.
>

And Orbiter log:
PHP:
**** Orbiter.log
000000.000: Build Sep 10 2016 [v.160910]
000000.000: Timer precision: 4.27633e-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 OrbiterSound.dll ...... [Build 121120, API 100830]
000000.000: Module ScnEditor.dll ......... [Build 160910, API 160910]
============================ ERROR: ===========================
Failed loading module Modules\Plugin\D3D9Client.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 603]
===============================================================

Evidently module not loading but why ?......

Thanks.

Having the same issue here (just got a new PC and reinstalled Orbiter). Inline client works fine, however if I try to active D3D9 in the modules tab I do not see the video tab.

Code:
**** Orbiter.log
000000.000: Build Aug 28 2016 [v.160828]
000000.000: Timer precision: 2.55136e-007 sec
000000.000: Found 1 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]
============================ ERROR: ===========================
Failed loading module Modules\Plugin\D3D9Client.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 600]
===============================================================
============================ ERROR: ===========================
Failed loading module Modules\Plugin\D3D9Client.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 600]
===============================================================
============================ ERROR: ===========================
Failed loading module Modules\Plugin\D3D9Client.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 600]
===============================================================
============================ ERROR: ===========================
Failed loading module Modules\Plugin\D3D9Client.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 600]
===============================================================
000000.000: 
000000.000: **** Creating simulation session
000000.000: Module Sun.dll ............... [Build 160828, API 160828]
VSOP87(E) Sun: Precision 1e-006, Terms 554/6634
000000.000: Module Mercury.dll ........... [Build 160828, API 160828]
VSOP87(B) Mercury: Precision 1e-005, Terms 167/7123
000000.000: Module Venus.dll ............. [Build 160828, API 160828]
000000.000: Module VenusAtm2006.dll ...... [Build 160828, API 160828]
VSOP87(B) Venus: Precision 1e-005, Terms 79/1710
000000.000: Module Earth.dll ............. [Build 160828, API 160828]
000000.000: Module EarthAtmJ71G.dll ...... [Build 160828, API 160828]
VSOP87(B) Earth: Precision 1e-008, Terms 2564/2564
000000.000: Module Moon.dll .............. [Build 160828, API 160828]
ELP82: Precision 1e-005, Terms 116/829
000000.000: Module Mars.dll .............. [Build 160828, API 160828]
000000.000: Module MarsAtm2006.dll ....... [Build 160828, API 160828]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
000000.000: Module Phobos.dll ............ [Build ******, API 060425]
000000.000: Module Deimos.dll ............ [Build ******, API 060425]
000000.000: Module Galsat.dll ............ [Build 160828, API 160828]
000000.000: Module Jupiter.dll ........... [Build 160828, API 160828]
VSOP87(B) Jupiter: Precision 1e-006, Terms 1624/3625
000000.000: Module Io.dll ................ [Build 160828, API 160828]
000000.000: Module Europa.dll ............ [Build 160828, API 160828]
000000.000: Module Ganymede.dll .......... [Build 160828, API 160828]
000000.000: Module Callisto.dll .......... [Build 160828, API 160828]
000000.000: Module Satsat.dll ............ [Build 160828, API 160828]
000000.000: Module Saturn.dll ............ [Build 160828, API 160828]
VSOP87(B) Saturn: Precision 1e-006, Terms 2904/6365
000000.000: Module Mimas.dll ............. [Build 160828, API 160828]
SATSAT Mimas: Terms 113
000000.000: Module Enceladus.dll ......... [Build 160828, API 160828]
SATSAT Enceladus: Terms 33
000000.000: Module Tethys.dll ............ [Build 160828, API 160828]
SATSAT Tethys: Terms 101
000000.000: Module Dione.dll ............. [Build 160828, API 160828]
SATSAT Dione: Terms 59
000000.000: Module Rhea.dll .............. [Build 160828, API 160828]
SATSAT Rhea: Terms 68
000000.000: Module Titan.dll ............. [Build 160828, API 160828]
SATSAT Titan: Terms 100
000000.000: Module Iapetus.dll ........... [Build 160828, API 160828]
SATSAT Iapetus: Terms 605
000000.000: Module Uranus.dll ............ [Build 160828, API 160828]
VSOP87(B) Uranus: Precision 1e-006, Terms 1827/5269
000000.000: Module Miranda.dll ........... [Build ******, API 060425]
000000.000: Module Ariel.dll ............. [Build ******, API 060425]
000000.000: Module Umbriel.dll ........... [Build ******, API 060425]
000000.000: Module Titania.dll ........... [Build ******, API 060425]
000000.000: Module Oberon.dll ............ [Build ******, API 060425]
000000.000: Module Neptune.dll ........... [Build 160828, API 160828]
VSOP87(B) Neptune: Precision 1e-006, Terms 391/2024
000000.000: Finished initialising world
000000.000: Module DeltaGlider.dll ....... [Build 160828, API 160828]
000000.000: Module LuaInline.dll ......... [Build 160828, API 160828]
000000.000: Module ShuttleA.dll .......... [Build 160828, API 160828]
000000.000: Module ShuttlePB.dll ......... [Build 160828, API 160828]
000000.000: Finished initialising status
000000.000: Finished initialising camera
000000.000: Finished setting up render state

Installing the June 2010 DirectX End User Runtimes did not fix the issue either.
 
Last edited:
Did you install only the June DX Runtime files? You need the February runtimes as that's the DX9 SDK version that the sources were compiled against.
 
Did you install only the June DX Runtime files? You need the February runtimes as that's the DX9 SDK version that the sources were compiled against.

EDIT: Problem fixed! The two weren't actually installed correctly.
 
Last edited:
The inline client provides a command line or icon parameter to start a specific scenario with the option "-s scenario". I can't get it to work with D3D9.
 
Last edited:


---------- Post added at 11:27 ---------- Previous post was at 10:24 ----------

A bug for the D3D9 developers:

If taking a screenshot (with Orbiter's native function CTRL+PrintScreen), it immediately CTDs as soon as you click on "take snapshot" button.

Orbiter2016 + D3D9 R1

Reproduced, but only using "copy to clipboard". "Save to file" works OK for me.
 
It should work if you launch
Modules\Server\orbiter.exe -s "full scenario path"
The scenario I was referring to with "full scenario path" was the "(Current state).scn", located in Scenarios folder.

In that case, writing (for inline)
Code:
orbiter.exe -s "(Current state)"

or (for graphics client)
Code:
Modules\Server\orbiter.exe -s "(Current state)"

was enough.


But if you want to launch another scenario in a subfolder, I just found out you have to write the "..\" part too
Code:
orbiter.exe -s "..\Scenarios\Delta-glider\DG-S ready for takeoff"


Otherwise:
Code:
============================ ERROR: ===========================
Scenario not found: Scenarios\Delta-glider\DG-S ready for takeoff
[Orbiter::Launch | .\Orbiter.cpp | 674]
===============================================================
 
The scenario I was referring to with "full scenario path" was the "(Current state).scn", located in Scenarios folder.

In that case, writing (for inline)
Code:
orbiter.exe -s "(Current state)"

or (for graphics client)
Code:
Modules\Server\orbiter.exe -s "(Current state)"

was enough.


But if you want to launch another scenario in a subfolder, I just found out you have to write the "..\" part too
Code:
orbiter.exe -s "..\Scenarios\Delta-glider\DG-S ready for takeoff"


Otherwise:
Code:
============================ ERROR: ===========================
Scenario not found: Scenarios\Delta-glider\DG-S ready for takeoff
[Orbiter::Launch | .\Orbiter.cpp | 674]
===============================================================

I got it working from the information in your first post. Thanks for the amplification.
 
Back
Top