I ran over a bug I cannot quite pin down while testing Orbiter Galaxy with D3D9 client. The bug is not directly related to orbiter galaxy, it could be a general problem with custom systems in D3D9, or it could be a lack of information on my part.
Anyways, the deal is this: In the systems I'm exporting, (most) planetary textures don't show up on planets when running Orbiter in D3D9. They do show up in Vanilla Orbiter, however.
The problem is not related to the textures themselfes: I can rename the textures to planets of the solar system, load, and they show up. Equally, I can rename default orbiter textures to fit to planets in my custom system, and they don't show up. Here are simplified configs of the system (only one planet remaining, all you need to reproduce):
359.7h0.1g103.9fSystem.cfg:
Code:
; === Configuration file for the 359.7h0.1g103.9f solar system ===
Name = 359.7h0.1g103.9f System
Star1 = OGalaxySystems/359.7h0.1g103.9f/359.7h0.1g103.9f
Planet1 = OGalaxySystems/359.7h0.1g103.9f/359.7h0.1g103.9f a
359.7h0.1g103.9f.cfg:
Code:
; === Configuration file for star 359.7h0.1g103.9f ===
Name = 359.7h0.1g103.9f
Module = Sun
ErrorLimit = 1e-6
SamplingInterval = 1497
Mass = 1.59114e+030
Size = 7.3776e+008
359.7h0.1g103.9f a.cfg:
Code:
; === Configuration file for Planet 359.7h0.1g103.9f 0
Name = 359.7h0.1g103.9f a
EllipticOrbit = TRUE
HasElements = TRUE
; === Orbital Parameters ===
Epoch = 2000
SemiMajorAxis = 5.26156e+010
Eccentricity = 0.0506015
Inclination = 0.0155404
LongAscNode = 5.55839
LongPerihelion = 1.98133
MeanLongitude = 1.59189
; === Physical Parameters ===
Size = 1589166.271982
Mass = 89440431855634733000000.000000
; === Rotation Elements ===
SidRotPeriod = 7359527.230513
SidRotOffset = 0
Obliquity = 1375.095493
LAN = 1
; === Visualization Parameters ===
MaxPatchResolution = 8
MinCloudResolution = 1
MaxCloudResolution = 8
I posted these in text so you can take a look at it, in case it might have something to do with the configs.
If you want to reproduce, there's a zip attached. Drop it into your Orbiter folder, take any default texture and rename it to "359.7h0.1g103.9f a.tex" and start TestScn. In vanilla Orbiter you should see the planet with the texture you renamed, in D3D9 Orbiter you should see the planet black. If not, then the issue is even more complicated than I thought.