Skip to content

Conversation

@n7275
Copy link
Contributor

@n7275 n7275 commented Jan 12, 2026

This is based on https://github.com/Ajaja/spice_orbiter
It replaces the VSOP87, ELP82, Galsat, Satsat, and other legacy customer ephemerides modules, with a orbiter-spice module that loads spice kernels. This will allow better scalability and future-proofing (ephemerides can be updated with a new kernel file, without recompiling orbiter).

TODO:

  • Better file/cmake organization
  • Proper credits
  • Documentation
  • D3D9 Bug?!

@TheGondos
Copy link
Contributor

I tried with the "Tutorials/DG to the Moon" scenario and the Moon and Earth are not quite at the same position as before, by a long shot (also notice the darker lighting on Earth).
VSOP/ELP82 :
image
SPICE :
image
Is a difference of that magnitude to be expected?

@n7275
Copy link
Contributor Author

n7275 commented Jan 18, 2026

I tried with the "Tutorials/DG to the Moon" scenario and the Moon and Earth are not quite at the same position as before, by a long shot (also notice the darker lighting on Earth). VSOP/ELP82 : image SPICE : image Is a difference of that magnitude to be expected?

Can you send me your orbiter.log? I think the kernel I included is too small to cover up to 2010. I need to extend the data (for release we can also package with a larger kernel using github workflows rather than directly committing, like we do for textures)

@n7275
Copy link
Contributor Author

n7275 commented Jan 18, 2026

But no, expected difference is meters to maybe a few km over longer periods. Earth-moon radial distance should have accuracy to reality on the order of 10s of centimeters.

@TheGondos
Copy link
Contributor

**** Orbiter.log
000000.001: Build Jan 18 2026 [v.602931718]
000000.001: Timer precision: 1e-07 sec
000000.088: Found 1 joystick(s)
000000.345: Module LuaMFD.dll ............ [Build 260111, API 260107]
000000.346: Loading module LuaMFD (legacy interface)
000000.353: Module LuaConsole.dll ........ [Build 260111, API 260107]
000000.353: Loading module LuaConsole
000000.359: Module ExtMFD.dll ............ [Build 260111, API 260107]
000000.359: Loading module ExtMFD (legacy interface)
000000.364: Module ScriptMFD.dll ......... [Build 260111, API 260107]
000000.365: Loading module ScriptMFD (legacy interface)
000000.375: Module XRSound.dll ........... [Build 260111, API 260107]
000000.377: Loading module XRSound
000000.394: Module D3D9Client.dll ........ [Build 260111, API 260107]
000000.450: [D3D9] Native Interface
000000.450: [D3D9] DirectX9 Created...
000000.450: [D3D9] Initialize VideoTab...
000000.503: Loading module D3D9Client
000000.511: Module AtlantisConfig.dll .... [Build 260111, API 260107]
000000.511: Loading module AtlantisConfig (legacy interface)
000000.518: Module AtmConfig.dll ......... [Build 260111, API 260107]
000000.519: Loading module AtmConfig (legacy interface)
000000.523: Module DGConfigurator.dll .... [Build 260111, API 260107]
000000.523: Loading module DGConfigurator (legacy interface)
000006.581: Module linked [C:\Windows\SYSTEM32\ntdll.dll] Version=6.2.19041.6456 Size=1720320
000006.582: Module linked [C:\Windows\System32\KERNEL32.DLL] Version=6.2.19041.6456 Size=983040
000006.582: Module linked [C:\Windows\System32\KERNELBASE.dll] Version=6.2.19041.6456 Size=2330624
000006.582: Module linked [C:\Windows\System32\USER32.dll] Version=6.2.19041.6456 Size=1691648
000006.583: Module linked [C:\Windows\System32\win32u.dll] Version=6.2.19041.6456 Size=98304
000006.583: Module linked [C:\Windows\System32\GDI32.dll] Version=6.2.19041.6157 Size=143360
000006.583: Module linked [C:\Windows\System32\gdi32full.dll] Version=6.2.19041.6456 Size=946176
000006.584: Module linked [C:\Windows\System32\msvcp_win.dll] Version=6.2.19041.3636 Size=503808
000006.584: Module linked [C:\Windows\System32\ucrtbase.dll] Version=6.2.19041.3636 Size=1179648
000006.584: Module linked [C:\Windows\System32\SHELL32.dll] Version=6.2.19041.6456 Size=6139904
000006.585: Module linked [C:\Windows\System32\ole32.dll] Version=6.2.19041.5915 Size=929792
000006.585: Module linked [C:\Windows\System32\RPCRT4.dll] Version=6.2.19041.6392 Size=757760
000006.586: Module linked [C:\Windows\System32\combase.dll] Version=6.2.19041.6456 Size=2621440
000006.586: Module linked [C:\Windows\System32\OLEAUT32.dll] Version=6.2.19041.3636 Size=614400
000006.586: Module linked [C:\Windows\System32\ADVAPI32.dll] Version=6.2.19041.6328 Size=512000
000006.587: Module linked [C:\Windows\System32\msvcrt.dll] Version=7.0.19041.3636 Size=782336
000006.587: Module linked [C:\Windows\System32\sechost.dll] Version=6.2.19041.6328 Size=487424
000006.588: Module linked [C:\Windows\System32\bcrypt.dll] Version=6.2.19041.5438 Size=102400
000006.588: Module linked [C:\Windows\System32\IMM32.dll] Version=6.2.19041.6157 Size=151552
000006.588: Module linked [C:\Windows\SYSTEM32\WINMM.dll] Version=6.2.19041.3636 Size=163840
000006.589: Module linked [C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.6456_none_a865dda286726b5c\COMCTL32.dll] Version=6.10.19041.6456 Size=2166784
000006.589: Module linked [C:\Windows\SYSTEM32\UxTheme.dll] Version=6.2.19041.6392 Size=475136
000006.589: Module linked [C:\Windows\SYSTEM32\VERSION.dll] Version=6.2.19041.3636 Size=32768
000006.589: Module linked [C:\github\openorbiter\out\install\windows-x86-debug\Orbiter\zlibd1.dll] Version=1.2.11.0 Size=176128
000006.590: Module linked [C:\Windows\SYSTEM32\DINPUT8.dll] Version=6.2.19041.1 Size=225280
000006.590: Module linked [C:\Windows\SYSTEM32\MSVCP140D.dll] Version=14.44.35211.0 Size=737280
000006.591: Module linked [C:\Windows\SYSTEM32\dwmapi.dll] Version=6.2.19041.6157 Size=155648
000006.591: Module linked [C:\Windows\SYSTEM32\VCRUNTIME140D.dll] Version=14.44.35211.0 Size=126976
000006.591: Module linked [C:\Windows\SYSTEM32\ucrtbased.dll] Version=10.0.26100.4654 Size=1699840
000006.591: Module linked [C:\Windows\SYSTEM32\inputhost.dll] Version=6.2.19041.5848 Size=970752
000006.592: Module linked [C:\Windows\System32\shcore.dll] Version=6.2.19041.5794 Size=552960
000006.592: Module linked [C:\Windows\SYSTEM32\CoreMessaging.dll] Version=6.2.19041.5915 Size=634880
000006.593: Module linked [C:\Windows\System32\WS2_32.dll] Version=6.2.19041.3636 Size=405504
000006.593: Module linked [C:\Windows\SYSTEM32\wintypes.dll] Version=6.2.19041.6456 Size=905216
000006.593: Module linked [C:\Windows\SYSTEM32\PROPSYS.dll] Version=7.0.19041.5794 Size=786432
000006.594: Module linked [C:\Windows\SYSTEM32\CoreUIComponents.dll] Version=6.2.19041.3636 Size=2617344
000006.594: Module linked [C:\Windows\System32\bcryptPrimitives.dll] Version=6.2.19041.5438 Size=389120
000006.594: Module linked [C:\Windows\SYSTEM32\ntmarta.dll] Version=6.2.19041.3636 Size=167936
000006.595: Module linked [C:\Windows\SYSTEM32\kernel.appcore.dll] Version=6.2.19041.3758 Size=61440
000006.595: Module linked [C:\Windows\SYSTEM32\riched20.dll] Version=5.31.23.1231 Size=499712
000006.595: Module linked [C:\Windows\SYSTEM32\USP10.dll] Version=6.2.19041.3636 Size=94208
000006.596: Module linked [C:\Windows\SYSTEM32\msls31.dll] Version=3.10.349.0 Size=200704
000006.596: Module linked [C:\Windows\SYSTEM32\HID.DLL] Version=6.2.19041.3636 Size=40960
000006.596: Module linked [C:\Windows\System32\SETUPAPI.DLL] Version=6.2.19041.5794 Size=4431872
000006.597: Module linked [C:\Windows\System32\cfgmgr32.dll] Version=6.2.19041.3996 Size=241664
000006.597: Module linked [C:\Windows\SYSTEM32\DEVOBJ.dll] Version=6.2.19041.5794 Size=167936
000006.597: Module linked [C:\Windows\System32\WINTRUST.dll] Version=6.2.19041.6456 Size=364544
000006.598: Module linked [C:\Windows\System32\CRYPT32.dll] Version=6.2.19041.6157 Size=1044480
000006.598: Module linked [C:\Windows\SYSTEM32\MSASN1.dll] Version=6.2.19041.3636 Size=57344
000006.598: Module linked [C:\Windows\System32\MSCTF.dll] Version=6.2.19041.5794 Size=868352
000006.599: Module linked [C:\Windows\System32\SHLWAPI.dll] Version=6.2.19041.6392 Size=299008
000006.599: Module linked [C:\Windows\System32\clbcatq.dll] Version=2001.12.10941.16384 Size=516096
000006.599: Module linked [C:\Windows\System32\ieframe.dll] Version=11.0.19041.6456 Size=6557696
000006.600: Module linked [C:\Windows\System32\USERENV.dll] Version=6.2.19041.5794 Size=151552
000006.600: Module linked [C:\Windows\System32\NETAPI32.dll] Version=6.2.19041.3636 Size=81920
000006.600: Module linked [C:\Windows\System32\iertutil.dll] Version=11.0.19041.6456 Size=2326528
000006.601: Module linked [C:\Windows\System32\WINHTTP.dll] Version=6.2.19041.5794 Size=827392
000006.601: Module linked [C:\Windows\System32\netutils.dll] Version=6.2.19041.3636 Size=45056
000006.601: Module linked [C:\Windows\System32\srvcli.dll] Version=6.2.19041.3636 Size=118784
000006.602: Module linked [C:\Windows\System32\WKSCLI.DLL] Version=6.2.19041.3636 Size=69632
000006.602: Module linked [C:\Windows\system32\dataexchange.dll] Version=6.2.19041.5794 Size=200704
000006.602: Module linked [C:\Windows\system32\dcomp.dll] Version=6.2.19041.6157 Size=1462272
000006.603: Module linked [C:\Windows\system32\d3d11.dll] Version=6.2.19041.5794 Size=1966080
000006.603: Module linked [C:\Windows\system32\dxgi.dll] Version=6.2.19041.5794 Size=806912
000006.604: Module linked [C:\Windows\system32\twinapi.appcore.dll] Version=6.2.19041.5848 Size=1642496
000006.604: Module linked [C:\Windows\SYSTEM32\textinputframework.dll] Version=6.2.19041.5794 Size=757760
000006.604: Module linked [C:\Windows\SYSTEM32\windows.storage.dll] Version=6.2.19041.6456 Size=6393856
000006.605: Module linked [C:\Windows\SYSTEM32\Wldp.dll] Version=6.2.19041.5794 Size=151552
000006.605: Module linked [C:\Windows\SYSTEM32\msIso.dll] Version=11.0.19041.6456 Size=286720
000006.605: Module linked [C:\Windows\SYSTEM32\urlmon.dll] Version=11.0.19041.6456 Size=1757184
000006.606: Module linked [C:\Windows\SYSTEM32\SspiCli.dll] Version=6.2.19041.6328 Size=135168
000006.606: Module linked [C:\Windows\SYSTEM32\virtdisk.dll] Version=6.2.19041.3636 Size=61440
000006.606: Module linked [C:\Windows\SYSTEM32\FLTLIB.DLL] Version=6.2.19041.3636 Size=32768
000006.607: Module linked [C:\Windows\System32\mshtml.dll] Version=11.0.19041.6456 Size=19214336
000006.607: Module linked [C:\Windows\SYSTEM32\powrprof.dll] Version=6.2.19041.3636 Size=278528
000006.608: Module linked [C:\Windows\SYSTEM32\CRYPTBASE.DLL] Version=6.2.19041.3636 Size=40960
000006.608: Module linked [C:\Windows\System32\srpapi.dll] Version=6.2.19041.4355 Size=151552
000006.608: Module linked [C:\Windows\SYSTEM32\profapi.dll] Version=6.2.19041.6033 Size=110592
000006.609: Module linked [C:\Windows\system32\windowscodecs.dll] Version=6.2.19041.6456 Size=1515520
000006.610: Module linked [C:\github\openorbiter\out\install\windows-x86-debug\Orbiter\Modules\Plugin\D3D9Client.dll] Version=30.7.0.0 Size=6615040
000006.610: Module linked [C:\Windows\System32\COMDLG32.dll] Version=6.2.19041.5848 Size=716800
000006.610: Module linked [C:\Windows\SYSTEM32\MSIMG32.dll] Version=6.2.19041.3636 Size=24576
000006.611: Module linked [C:\Windows\SYSTEM32\d3dx9d_43.dll] Version=9.29.952.3111 Size=2424832
000006.611: Module linked [C:\Windows\SYSTEM32\d3d9.dll] Version=6.2.19041.5794 Size=1646592
000006.611: Module linked [C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_fe5a9cae5c641286\nvldumd.dll] Version=32.0.15.6636 Size=643072
000006.612: Module linked [C:\Windows\SYSTEM32\cryptnet.dll] Version=6.2.19041.3636 Size=155648
000006.612: Module linked [C:\Windows\SYSTEM32\drvstore.dll] Version=6.2.19041.5794 Size=1048576
000006.612: Module linked [C:\Windows\System32\imagehlp.dll] Version=6.2.19041.3636 Size=102400
000006.613: Module linked [C:\Windows\SYSTEM32\CRYPTSP.dll] Version=6.2.19041.5856 Size=77824
000006.613: Module linked [C:\Windows\system32\rsaenh.dll] Version=6.2.19041.6093 Size=200704
000006.613: Module linked [C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_fe5a9cae5c641286\nvgpucomp32.dll] Version=32.0.15.6636 Size=38436864
000006.614: Module linked [C:\Windows\System32\DriverStore\FileRepository\nvmdi.inf_amd64_fe5a9cae5c641286\nvd3dum.dll] Version=32.0.15.6636 Size=33873920
000006.614: Module linked [C:\Windows\System32\Psapi.dll] Version=6.2.19041.3636 Size=24576
000006.615: Module linked [C:\Windows\system32\msimtf.dll] Version=6.2.19041.1 Size=57344
000006.615: Module linked [C:\Windows\System32\d2d1.dll] Version=6.2.19041.5794 Size=5328896
000006.616: Module linked [C:\Windows\System32\DWrite.dll] Version=6.2.19041.5794 Size=2146304
000006.616: Module linked [C:\Windows\SYSTEM32\d3d10warp.dll] Version=6.2.19041.5794 Size=6037504
000006.616: Module linked [C:\Windows\SYSTEM32\dxcore.dll] Version=6.2.19041.5794 Size=180224
000006.617: Module linked [C:\Windows\SYSTEM32\Secur32.dll] Version=6.2.19041.3636 Size=40960
000006.617: Module linked [C:\Windows\SYSTEM32\MLANG.dll] Version=6.2.19041.3636 Size=212992
000006.617: Module linked [C:\Windows\SYSTEM32\WININET.dll] Version=11.0.19041.5794 Size=4542464
000006.618: Module linked [C:\Windows\SYSTEM32\apphelp.dll] Version=6.2.19041.6157 Size=671744
000006.618: Module linked [C:\Windows\SYSTEM32\SLC.dll] Version=6.2.19041.3636 Size=126976
000006.619: Module linked [C:\Windows\SYSTEM32\sppc.dll] Version=6.2.19041.3636 Size=114688
000006.619: Module linked [C:\Windows\System32\jscript9.dll] Version=11.0.19041.5856 Size=3891200
000006.619: Module linked [C:\Windows\System32\uiautomationcore.dll] Version=7.2.19041.5794 Size=2568192
000006.621:
000006.621: **** Creating simulation session
000006.633: D3D9: [DirectX 9 Initialized]
000006.633: D3D9: 3D-Adapter.............. : NVIDIA GeForce RTX 4060
000006.636: D3D9: MaxTextureWidth......... : 16384
000006.636: D3D9: MaxTextureHeight........ : 16384
000006.636: D3D9: MaxTextureRepeat........ : 8192
000006.636: D3D9: VolTexAddressCaps....... : 0x3F
000006.637: D3D9: NumSimultaneousRTs...... : 4
000006.637: D3D9: VertexDeclCaps.......... : 0x30F
000006.637: D3D9: MiscCaps................ : 0x2FCEF2
000006.637: D3D9: Separate AlphaBlend..... : Yes
000006.638: D3D9: Shadow Mapping.......... : Yes
000006.638: D3D9: D3DFMT_A16B16G16R16F.... : Yes
000006.638: D3D9: Vertex_A16B16G16R16F.... : Yes
000006.638: D3D9: Vertex_A32B32G32R32F.... : Yes
000006.639: D3D9: Vertex_R16F............. : Yes
000006.639: D3D9: Vertex_R32F............. : Yes
000006.639: D3D9: D3DFMT_A32B32G32R32F.... : Yes
000006.639: D3D9: D3DFMT_D32F_LOCKABLE.... : Yes
000006.639: D3D9: D3DFMT_A2R10G10B10...... : Yes
000006.640: D3D9: D3DFMT_L8............... : Yes
000006.640: D3D9: D3DDTCAPS_DEC3N......... : No
000006.640: D3D9: D3DDTCAPS_FLOAT16_2..... : Yes
000006.640: D3D9: D3DDTCAPS_FLOAT16_4..... : Yes
000006.641: D3D9: Runs under WINE......... : No
000006.641: D3D9: D3D9Build Date.......... : 260111
000006.696: D3D9: Available Texture Memory : 4087 MB
000006.699: D3D9: [3DDevice Initialized]
000007.897: Loaded 41057 records from star database
000008.159: D3D9: [D3D9Client Initialized]
000008.311: Module spice.dll ............. [Build 260118, API 260107]
000008.317: spice.dll: Kernel Kernels\orbiter.bsp - OK.
000008.339: spice.dll: Kernel Kernels\codes_300ast_20100725.tf - OK.
000008.343: spice.dll: Kernel Kernels\naif0012.tls - OK.
000008.422: spice.dll: Kernel Kernels\pck00010.tpc - OK.
000008.423: spice.dll: SUN (MJD 51179.0 - 52275.0) - OK
000008.461: GRAVITY MODEL: GravityModels\jgmess_160a_sha.tab LOADED, Terms 65/13040
000008.462: spice.dll: MERCURY (MJD 51179.0 - 52275.0) - OK
000008.487: GRAVITY MODEL: GravityModels\mod_shgj120p.a01 LOADED, Terms 65/7380
000008.488: spice.dll: VENUS (MJD 51179.0 - 52275.0) - OK
000008.492: Module VenusAtm2006.dll ...... [Build 260118, API 260107]
000008.492: Loading module VenusAtm2006 (legacy interface)
000008.704: GRAVITY MODEL: GravityModels\egm96_to360.tab LOADED, Terms 65/65340
000008.737: spice.dll: EARTH (MJD 51179.0 - 52275.0) - OK
000008.742: Module EarthAtmJ71G.dll ...... [Build 260118, API 260107]
000008.742: Loading module EarthAtmJ71G (legacy interface)
000009.174: GRAVITY MODEL: GravityModels\jgl165p1.sha LOADED, Terms 65/13860
000009.175: spice.dll: MOON (MJD 51179.0 - 52275.0) - OK
000009.204: GRAVITY MODEL: GravityModels\jgmro_120f_sha.tab LOADED, Terms 65/7380
000009.205: spice.dll: MARS (MJD 51179.0 - 52275.0) - OK
000009.210: Module MarsAtm2006.dll ....... [Build 260118, API 260107]
000009.210: Loading module MarsAtm2006 (legacy interface)
000009.220: spice.dll: PHOBOS (MJD 51179.0 - 52275.0) - OK
000009.225: spice.dll: DEIMOS (MJD 51179.0 - 52275.0) - OK
000009.231: spice.dll: JUPITER (MJD 51179.0 - 52275.0) - OK
000009.238: spice.dll: IO (MJD 51179.0 - 52275.0) - OK
000009.247: spice.dll: EUROPA (MJD 51179.0 - 52275.0) - OK
000009.254: spice.dll: GANYMEDE (MJD 51179.0 - 52275.0) - OK
000009.261: spice.dll: CALLISTO (MJD 51179.0 - 52275.0) - OK
000009.268: spice.dll: AMALTHEA (MJD 51179.0 - 52275.0) - OK
000009.272: spice.dll: HIMALIA (MJD 51179.0 - 52275.0) - OK
000009.278: spice.dll: SATURN (MJD 51179.0 - 52275.0) - OK
000009.284: spice.dll: MIMAS (MJD 51179.0 - 52275.0) - OK
000009.288: spice.dll: ENCELADUS (MJD 51179.0 - 52275.0) - OK
000009.293: spice.dll: TETHYS (MJD 51179.0 - 52275.0) - OK
000009.298: spice.dll: DIONE (MJD 51179.0 - 52275.0) - OK
000009.303: spice.dll: RHEA (MJD 51179.0 - 52275.0) - OK
000009.308: spice.dll: TITAN (MJD 51179.0 - 52275.0) - OK
000009.315: spice.dll: HYPERION (MJD 51179.0 - 52275.0) - OK
000009.320: spice.dll: IAPETUS (MJD 51179.0 - 52275.0) - OK
000009.325: spice.dll: PHOEBE (MJD 51179.0 - 52275.0) - OK
000009.331: spice.dll: URANUS (MJD 51179.0 - 52275.0) - OK
000009.336: spice.dll: MIRANDA (MJD 51179.0 - 52275.0) - OK
000009.341: spice.dll: ARIEL (MJD 51179.0 - 52275.0) - OK
000009.346: spice.dll: UMBRIEL (MJD 51179.0 - 52275.0) - OK
000009.351: spice.dll: TITANIA (MJD 51179.0 - 52275.0) - OK
000009.356: spice.dll: OBERON (MJD 51179.0 - 52275.0) - OK
000009.363: spice.dll: NEPTUNE (MJD 51179.0 - 52275.0) - OK
000009.368: spice.dll: TRITON (MJD 51179.0 - 52275.0) - OK
000009.374: spice.dll: PROTEUS (MJD 51179.0 - 52275.0) - OK
000009.379: spice.dll: NEREID (MJD 51179.0 - 52275.0) - OK
000009.384: spice.dll: PLUTO (MJD 51179.0 - 52275.0) - OK
000009.389: spice.dll: CHARON (MJD 51179.0 - 52275.0) - OK
000009.394: spice.dll: NIX (MJD 51179.0 - 52275.0) - OK
000009.398: spice.dll: HYDRA (MJD 51179.0 - 52275.0) - OK
000009.404: GRAVITY MODEL: GravityModels\JGDWN_VES20H_SHA.TAB LOADED, Terms 65/230
000009.405: spice.dll: VESTA (MJD 51179.0 - 52275.0) - OK
000009.409: Finished initialising world
000009.860: Module DeltaGlider.dll ....... [Build 260111, API 260107]
000009.872: Module LuaInline.dll ......... [Build 260111, API 260107]
000009.872: Loading module LuaInline
000010.749: Module ShuttleA.dll .......... [Build 260111, API 260107]
000011.123: Finished initialising status
000011.123: Finished initialising camera
000011.124: Finished setting up render state
000011.138: D3D9: [Scene Initialized]
000011.335: Finished initialising panels
000011.372: XRSound 3.00 RC2 [32-bit Debug], Build Date : Jan 11 2026 initialized using sound driver DirectSound8; irrKlang version = 1.6.0. XRSound UpdateInterval = 0.050 (20.0 updates per second)
000011.672: [WARNING] Surface textures are missing for Earth
000015.195: [WARNING] Surface textures are missing for Moon
000015.202: [WARNING] Surface textures are missing for Mars
000015.208: [WARNING] Surface textures are missing for Phobos
000015.214: [WARNING] Surface textures are missing for Deimos
000015.222: [WARNING] Surface textures are missing for Jupiter
000015.228: [WARNING] Surface textures are missing for Io
000015.234: [WARNING] Surface textures are missing for Europa
000015.240: [WARNING] Surface textures are missing for Ganymede
000015.246: [WARNING] Surface textures are missing for Callisto
000015.246: [WARNING] Surface textures are missing for Amalthea
000015.247: [WARNING] Surface textures are missing for Himalia
000015.253: [WARNING] Surface textures are missing for Mimas
000015.259: [WARNING] Surface textures are missing for Enceladus
000015.265: [WARNING] Surface textures are missing for Tethys
000015.271: [WARNING] Surface textures are missing for Dione
000015.277: [WARNING] Surface textures are missing for Rhea
000015.338: [WARNING] Surface textures are missing for Iapetus
000015.339: [WARNING] Surface textures are missing for Phoebe
000015.397: [WARNING] Surface textures are missing for Nix
000015.397: [WARNING] Surface textures are missing for Hydra
000015.403: [WARNING] Surface textures are missing for Vesta
000015.437: D3D9: NewShader [DG\deltaglider_ns]=4
000015.438: D3D9: NewShader [DG\deltaglider_ns]=4

I don't have the textures on my Debug out so ignore the last warnings

@TheGondos
Copy link
Contributor

TheGondos commented Jan 18, 2026

There is something fishy. If I add this for out of bound ephemeris access, I get the D3D9Client to assert when trying to locate the closest planet (probably a NaN issue) :

	char buf[1024];
	sprintf(buf, "kernel_begin=%f kernel_end=%f t=%f", kernel_begin, kernel_end, t);
	show_error(buf);

If I replace it with :

	char buf[1024];
	sprintf(buf, "kernel_begin=%f kernel_end=%f t=%f", kernel_begin, kernel_end, t);
	oapiAddNotification(OAPINOTIF_ERROR, "(t >= kernel_begin) && (t <= kernel_end)", buf);

I get a burst of erroneous accesses (only at the beginning) but no assert...
image

Edit : I stand corrected, more popups appear later, probably because it's interpolating inbetween

@n7275
Copy link
Contributor Author

n7275 commented Jan 18, 2026

I think what needs to happen in this case:

  • Clearly warn the user, and explain what's going on (and how to fix it)
  • Close the simulation, because there is no good reason to run with NaNs polluting the physics.

@TheGondos
Copy link
Contributor

With DE442 the moon looks in the right place

@n7275
Copy link
Contributor Author

n7275 commented Jan 18, 2026

With DE442 the moon looks in the right place

The "orbiter.bsp" I included only covered 1999-2002. That's the problem

@TheGondos
Copy link
Contributor

I think what needs to happen in this case:

* Clearly warn the user, and explain what's going on (and how to fix it)

* Close the simulation, because there is no good reason to run with NaNs polluting the physics.

I agree but we should provide a reasonable default (1950 - 2050 maybe?). No idea how much size it would need though...

@n7275
Copy link
Contributor Author

n7275 commented Jan 18, 2026

I think what needs to happen in this case:

* Clearly warn the user, and explain what's going on (and how to fix it)

* Close the simulation, because there is no good reason to run with NaNs polluting the physics.

I agree but we should provide a reasonable default (1950 - 2050 maybe?). No idea how much size it would need though...

600MB, unfortunately

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants