Problem Some celestial bodies aren't rendered when using D3D9 client in Orbiter 2016

Noonan

New member
Joined
May 19, 2013
Messages
3
Reaction score
0
Points
0
Hi everyone.

I'm coming back to Orbiter after some time. I've updated to the new version (last time I played it was Orbiter 2010), but I'm experiencing a curious problem with some celestial bodies add-ons when I launch Orbiter with Orbiter_ng.exe using the D3D9 client: the "asteroid-shaped" ones - those which use meshes - aren't rendered.

The add-ons are [ame=https://www.orbithangar.com/searchid.php?ID=1801]Asteroid Pack[/ame], [ame=https://www.orbithangar.com/searchid.php?ID=3364]Haumea[/ame] (both do not work at all), and [ame=https://www.orbithangar.com/searchid.php?ID=4595]Pluto and Moons[/ame] (Pluto and Charon work well, but Nix and Hydra do not - that's why I think the problem lies on the meshes somewhat). All of those were tested by some users with Orbiter 2016 and work well according to them, so I wonder what the problem might be?

I've added everything to Sol.cfg and the planets/asteroids actually show up in the camera menu, so they do exist in-game, I can select them as targets, I can rotate the view around where they're supposed to be... But there's just no graphics of them. The entities are there, but invisible.

Celestial bodies that use meshes and come with vanilla Orbiter - Mars' moons, Vesta - work without any problem.

Also, when I load Orbiter from Orbiter.exe directly, without the external graphics clients, everything works fine, everything shows up, so it must be some configuration of the D3D9 client, I guess.

Any ideas?

(Sorry if any of that is unclear, English is not my first language, but I've tried my best.)
 
Last edited:

BrianJ

Addon Developer
Addon Developer
Joined
Apr 19, 2008
Messages
1,676
Reaction score
900
Points
128
Location
Code 347
Hi,
default Orbiter graphics require moon/asteroid meshes to have a 1m mean radius (its multiplied by the radius parameter in the moon/asteroid .cfg). D3D9 graphics doesn't do the same thing, so the mesh doesn't get rendered. Could be the problem.
Cheers,
Brian
 

Noonan

New member
Joined
May 19, 2013
Messages
3
Reaction score
0
Points
0
kuddel, it's a different issue. I have all the files, and the problem only happens with add-ons. Vanilla Orbiter textures and meshes are ok.

BrianJ, so there's no solution? On reddit I was suggested to alter the MaxPatchResolution parameter in the cfg files from 0 to 14 or 16, but it didn't work. I've also tried commenting out the line and messing with the visualization parameters, copying and pasting some lines from Vesta.cfg, changing the values, without success.

The only change I've noticed is that when I alter the MaxPatchResolution parameter, the object "appears" as a black shadow (probably a sphere, but I'm not sure since I can't see it), i.e., when rotating the view, the Sun and other stars disappear and then reappear on the other side of where the asteroid should be.

I guess I'll have to do without the external client or without asteroids.
 
Last edited:

BrianJ

Addon Developer
Addon Developer
Joined
Apr 19, 2008
Messages
1,676
Reaction score
900
Points
128
Location
Code 347
Hi,
Code:
MaxPatchResolution = 0
means use a mesh.

With default Orbiter2016 graphics, if you use a higher MaxPatchResolution value you get a sphere. I'm not sure what D3D9 graphics client does.

An idea I may have tried but can't remember if it worked:
To use asteroid meshes with D3D9, you could use ShipEdit.exe (in Orbiter/Orbitersdk/utils folder) to scale up the mesh by the "Size" parameter in the asteroid's .cfg file. (You may need to reinstate the Texture entry at the end of the mesh file afterwards, ShipEdit removes it).
Back up any mesh files you intend to modify before you start, just in case.

Cheers,
Brian
 

Noonan

New member
Joined
May 19, 2013
Messages
3
Reaction score
0
Points
0
Thanks for the help, BrianJ. I may try your suggestion over the weekend - don't know how difficult that would be, I have little experience with meshes and all that. But I'll try and report the results then.

Until then, I'll do without asteroids.

Thanks again!
 

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,651
Reaction score
785
Points
128
Hi everyone.
I'm coming back to Orbiter after some time. I've updated to the new version (last time I played it was Orbiter 2010), but I'm experiencing a curious problem with some celestial bodies add-ons when I launch Orbiter with Orbiter_ng.exe using the D3D9 client: the "asteroid-shaped" ones - those which use meshes - aren't rendered.


This problem should be fixed from the next build of the client. Haumea is working now. Didn't test the rest. New release is still pending...may take a while.
 

yitianetie

Member
Joined
Mar 24, 2020
Messages
50
Reaction score
18
Points
23
Location
Brittany
This problem still appears with the last version of D3D9 (r.1317). For examples, Nix and Hydra does not appear though they have mesh files. They have been downloaded from there :
https://www.orbithangar.com/showAddon.php?id=b4d76bfa-c637-45dc-a023-386fe1a01f21

Sometimes, we can notice the surface textures if we zoom very closely but it disappear when you move the camera.

And this is the log below, but which does not display relative errors :

Code:
**** 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: ---------------------------------------------------------------
BaseDir    : D:\Orbiter\Orbiter2016\
ConfigDir  : D:\Orbiter\Orbiter2016\Config\
MeshDir    : D:\Orbiter\Orbiter2016\Meshes\
TextureDir : D:\Orbiter\Orbiter2016\Textures\
HightexDir : D:\Orbiter\Orbiter2016\Textures2\
ScenarioDir: D:\Orbiter\Orbiter2016\Scenarios\
000000.000: ---------------------------------------------------------------
D3D9 DLLs  : C:\WINDOWS\SYSTEM32\d3d9.dll [v 10.0.18362.387]
           : C:\WINDOWS\SYSTEM32\d3dx9_43.dll [v 9.29.952.3111]
000000.000: ---------------------------------------------------------------
000000.000: Module D3D9Client.dll ........ [Build 200727, API 160828]
000000.000: Module ExtMFD.dll ............ [Build 160828, API 160828]
000000.000: Module Rcontrol.dll .......... [Build 160828, API 160828]
000000.000: Module ScnEditor.dll ......... [Build 160828, API 160828]
000000.000: Module CustomMFD.dll ......... [Build 160828, API 160828]
000000.000: Module ScriptMFD.dll ......... [Build 160828, API 160828]
============================ ERROR: ===========================
Failed loading module Modules\Plugin\ApolloRTCCMFD.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 600]
===============================================================
============================ ERROR: ===========================
Failed loading module Modules\Plugin\ProjectApolloMFD.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 600]
===============================================================
000000.000: Module Multistage2015_MFD.dll  [Build 170506, API 160828]
000000.000: Module OrbiterSound.dll ...... [Build 200706, API 160828]
000000.000: Module GenericCamera.dll ..... [Build 200505, API 160828]
000000.000: Module ReFuelMFD.dll ......... [Build ******, API 060425]
000000.000: ---------------------------------------------------------------
000000.000: >>> WARNING: Obsolete API function used: oapiRegisterMFDMode
000000.000: At least one active module is accessing an obsolete interface function.
000000.000: Addons which rely on obsolete functions may not be compatible with
000000.000: future versions of Orbiter.
000000.000: ---------------------------------------------------------------
000000.000: Module VNCMFD.dll ............ [Build 161230, API 160828]
000000.000: Module HoverMFD.dll .......... [Build 161003, API 160828]
000000.000: Module AttitudeMFD.dll ....... [Build ******, API 060425]
000000.000: Module AeroBrakeMFD.dll ...... [Build ******, API 100830]
000000.000: Module TransX2.dll ........... [Build 180707, API 160828]
============================ ERROR: ===========================
Failed loading module Modules\Plugin\Surface Speed MFD.dll (code 126)
[Orbiter::LoadModule | .\Orbiter.cpp | 600]
===============================================================
000000.000: 
000000.000: **** Creating simulation session
000000.000: D3D9: [DirectX 9 Initialized]
D3D9: 3D-Adapter.............. : NVIDIA GeForce GTX 950M
D3D9: MaxTextureWidth......... : 16384
D3D9: MaxTextureHeight........ : 16384
D3D9: MaxTextureRepeat........ : 8192
D3D9: VolTexAddressCaps....... : 0x3F
D3D9: NumSimultaneousRTs...... : 4
D3D9: VertexDeclCaps.......... : 0x30F
D3D9: MiscCaps................ : 0x2FCEF2
D3D9: XNA Math Support........ : Yes
D3D9: Vertex Texture.......... : Yes
D3D9: Separate AlphaBlend..... : Yes
D3D9: Shadow Mapping.......... : Yes
D3D9: D3DFMT_A16B16G16R16F.... : Yes
D3D9: D3DFMT_A32B32G32R32F.... : Yes
D3D9: D3DFMT_D32F_LOCKABLE.... : Yes
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: D3D9Build Date.......... : 200727
D3D9: Available Texture Memory : 4088 MB
000000.000: D3D9: [3DDevice Initialized]
000000.000: D3D9: [Loading Constellations]
000000.000: D3D9: [D3D9Client Initialized]
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 ShuttlePB.dll ......... [Build 160828, API 160828]
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: Finished initialising status
000000.000: Finished initialising camera
000000.000: Finished setting up render state
000000.000: D3D9: [Scene Initialized]
000000.000: Finished initialising panels
000038.569: D3D9: [Session Closed. Scene deleted.]
000038.569: D3D9: [Destroy Render Window Called]
000038.569: **** Closing simulation session

Is it possible to fix this issue in the next releases ?
 
Top