New Release D3D9Client Development

FordPrefect

Addon Developer
Addon Developer
Donator
Joined
Feb 7, 2008
Messages
407
Reaction score
41
Points
28
Hello, thanks to you both! Jarmo, here's the D3D9ClientLog file. I did not change the D3D9Client module in Orbiter, it was running fine before that said upgrade.
 

Attachments

  • D3D9ClientLog.zip
    1.2 KB · Views: 2

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,669
Reaction score
798
Points
128
Hello, thanks to you both! Jarmo, here's the D3D9ClientLog file. I did not change the D3D9Client module in Orbiter, it was running fine before that said upgrade.

(26: 6.67s 2066us)(0x35C) [VideoConfiguration] Adapter=0, ModeIndex=23
(27: 6.67s 2084us)(0x35C) MaxTextureBlendStages..: 0
(28: 6.67s 2094us)(0x35C) MaxTextureWidth........: 0
(29: 6.67s 2103us)(0x35C) MaxTextureHeight.......: 0
(30: 6.67s 2111us)(0x35C) MaxPrimitiveCount......: 0
(31: 6.67s 2120us)(0x35C) MaxVertexIndex.........: 0
(32: 6.67s 2129us)(0x35C) MaxSimultaneousTextures: 0
(33: 6.67s 2137us)(0x35C) MaxStreams.............: 0
(34: 6.67s 2146us)(0x35C) MaxStreamStride........: 0
(35: 6.67s 2155us)(0x35C) MaxVertexBlendMatrices.: 0
(36: 6.67s 2200us)(0x35C) MaxVShaderInstrExecuted: 0
(37: 6.67s 2211us)(0x35C) MaxPointSize...........: 0.000000
(38: 6.67s 2220us)(0x35C) VertexShaderVersion....: 0x0
(39: 6.67s 2229us)(0x35C) PixelShaderVersion.....: 0x0
(40: 6.67s 2238us)(0x35C) NumSimultaneousRTs.....: 0
(41: 6.67s 2247us)(0x35C) D3DPTEXTURECAPS_POW2...: 0
(42: 6.67s 2255us)(0x35C) NONPOW2CONDITIONAL.....: 0
All hardware specs are zero. Video modes are OK. Something must have gone wrong during the update.

---------- Post added at 19:29 ---------- Previous post was at 19:19 ----------

BTW, do you have any ENB series tweaks installed ? Any directx 9 DLLs in the Orbiter's root folder ?
 

FordPrefect

Addon Developer
Addon Developer
Donator
Joined
Feb 7, 2008
Messages
407
Reaction score
41
Points
28
All hardware specs are zero. Video modes are OK. Something must have gone wrong during the update.

---------- Post added at 19:29 ---------- Previous post was at 19:19 ----------

BTW, do you have any ENB series tweaks installed ? Any directx 9 DLLs in the Orbiter's root folder ?

No ENB series tweaks installed (don't like them), also no directX 9 DLLs in Orbiter root folder present.

Thanks Jarmo! After nearly rebooting a "hundred times", deinstalling and reinstalling the ATI drivers update and Windows DirectX libraries, I have found out, that it's the latest update AMD Catalyst™ Control Center / AMD Vision™ Engine Control Center 11.6 which must be faulty! All the problems do NOT occur with the previous version I used, which was 10.3. So, now I'm back at 10.3 and stay there for the time being.

Thank you very much Jarmo for looking into this. :tiphat:
 
Last edited:

dbeachy1

O-F Administrator
Administrator
Orbiter Contributor
Addon Developer
Donator
Beta Tester
Joined
Jan 14, 2008
Messages
9,218
Reaction score
1,566
Points
203
Location
VA
Website
alteaaerospace.com
Preferred Pronouns
he/him
:blink: Eek, good to know! BTW I'm running Catalyst 11.5 from a month or two ago and it's fine with D3D9, so you should be able to update to Catalyst 11.5 if you want to. I'm gonna hold off on upgrading to 11.6 -- thanks for the heads-up! :tiphat:

EDIT #2:
Turns out that AMD hotfix is for AGP cards, so it's not related to the bug here. :(

There also seems to be other problems with 11.6 causing blue screen crashes on installation on some machines. :blink:
 
Last edited:

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
I can confirm this and I did found the bug. But I don't understand why RC24 is working, it has the same bug.

I also noticed this from a couple releases ago forward on both my Intel-graphics-driven machines and with the XR2 and/or my latest build of the Cortez, but thought it was a driver issue. It seemed to me that the sun was actually missing, not just ambient light.

Starting a default scenario with DG at KSC brings the sun back, then quitting that scenario and going back to the other, sun and ambient light are back.
 

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,669
Reaction score
798
Points
128
D3D9ClientRC26

- Ambient light issue should be fixed. (again)
- Startup is improved. This will allow to start simulation without having a long timestep in a begining of the simulation.

The Shuttle Fleet related animation issues aren't cause by the client. Everything seems to be working perfectly well from the Client's side. It seems that the animations simply aren't "trigered/played" from the shuttle fleet. It is possible that execution of the code is aborted after receiving a NULL pointer from GetMesh() and therefore the animation sequence isn't triggered. There is nothing that I can do about it.
 
Last edited:

Columbia42

Member
Joined
Dec 4, 2009
Messages
884
Reaction score
0
Points
16
Location
C:\ProgramFiles\Orbiter
I just encountered an unusual problem with D3D9 Client. For some reason I get a CTD when I set the camera target to a base I just created. There are no vessels, just the base itself. Is there something I can do to fix this problem?

EDIT: This issue happens in previous releases as well as RC26.
 
Last edited:

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,669
Reaction score
798
Points
128
I just encountered an unusual problem with D3D9 Client. For some reason I get a CTD when I set the camera target to a base I just created. There are no vessels, just the base itself. Is there something I can do to fix this problem?

EDIT: This issue happens in previous releases as well as RC26.

Is there anything written into the log file /Modules/D3D9Client/D3D9ClientLog.html ?
Does it happen with any other base ?
Can you create a distribution package of your base and attach in your post ?
 

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
Not sure if this has been reported yet, and it may have been an issue with earlier releases, just hadn't tried it yet, but it appears none of the UMMU custom HUD screens work, nor do the custom HUD screens in UCGO vessels. Help screens (press H) for either addon also do not work.

In both cases, default surface HUD is displayed instead, and it is possible to switch to Orbit HUD mode, but then it becomes stuck on Orbit.

Can provide screenshots if needed.
 

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,669
Reaction score
798
Points
128
Not sure if this has been reported yet, and it may have been an issue with earlier releases, just hadn't tried it yet, but it appears none of the UMMU custom HUD screens work, nor do the custom HUD screens in UCGO vessels. Help screens (press H) for either addon also do not work.

Sounds like those addons are relying on drawing the HUD using GDI which is a bad idea. The sketchpad implemented HUDs should work perfectly and efficiently on D3D9Client. You should be able to get the GDI HUDs working by enabling the GDI compatibility mode from the Video tab but you will lose a lot of framerate.
 

n122vu

Addon Developer
Addon Developer
Donator
Joined
Nov 1, 2007
Messages
3,196
Reaction score
51
Points
73
Location
KDCY
Sounds like those addons are relying on drawing the HUD using GDI which is a bad idea. The sketchpad implemented HUDs should work perfectly and efficiently on D3D9Client. You should be able to get the GDI HUDs working by enabling the GDI compatibility mode from the Video tab but you will lose a lot of framerate.

Yes, that works. And actually, for the two scenarios I tried, no impact on FPS.

Thanks,
n122vu
 

Columbia42

Member
Joined
Dec 4, 2009
Messages
884
Reaction score
0
Points
16
Location
C:\ProgramFiles\Orbiter
Is there anything written into the log file /Modules/D3D9Client/D3D9ClientLog.html ?
Does it happen with any other base ?
Can you create a distribution package of your base and attach in your post ?

Here's the D3D9 Log:

Code:
(0: 0.00s 1us)(0x88C) ================ clbkInitialise ===============
(1: 0.03s 28198us)(0x88C) Index:0 640 x 480 60Hz (22)
(2: 0.03s 28534us)(0x88C) Index:1 640 x 480 75Hz (22)
(3: 0.03s 29975us)(0x88C) Index:2 640 x 480 60Hz (22)
(4: 0.03s 30975us)(0x88C) Index:3 640 x 480 75Hz (22)
(5: 0.04s 32012us)(0x88C) Index:4 800 x 600 60Hz (22)
(6: 0.04s 33005us)(0x88C) Index:5 800 x 600 75Hz (22)
(7: 0.04s 33999us)(0x88C) Index:6 800 x 600 60Hz (22)
(8: 0.04s 35161us)(0x88C) Index:7 800 x 600 75Hz (22)
(9: 0.04s 36169us)(0x88C) Index:8 1024 x 768 60Hz (22)
(10: 0.04s 37229us)(0x88C) Index:9 1024 x 768 75Hz (22)
(11: 0.04s 38247us)(0x88C) Index:10 1024 x 768 60Hz (22)
(12: 0.04s 39350us)(0x88C) Index:11 1024 x 768 75Hz (22)
(13: 0.04s 40375us)(0x88C) Index:12 1152 x 864 60Hz (22)
(14: 0.05s 41368us)(0x88C) Index:13 1152 x 864 75Hz (22)
(15: 0.05s 42563us)(0x88C) Index:14 1152 x 864 60Hz (22)
(16: 0.05s 43592us)(0x88C) Index:15 1152 x 864 75Hz (22)
(17: 0.05s 44590us)(0x88C) Index:16 1280 x 720 60Hz (22)
(18: 0.05s 45585us)(0x88C) Index:17 1280 x 720 75Hz (22)
(19: 0.05s 46621us)(0x88C) Index:18 1280 x 720 60Hz (22)
(20: 0.05s 47621us)(0x88C) Index:19 1280 x 720 75Hz (22)
(21: 0.05s 48614us)(0x88C) Index:20 1280 x 768 60Hz (22)
(22: 0.05s 49607us)(0x88C) Index:21 1280 x 768 75Hz (22)
(23: 0.05s 50847us)(0x88C) Index:22 1280 x 768 60Hz (22)
(24: 0.06s 51889us)(0x88C) Index:23 1280 x 768 75Hz (22)
(25: 0.06s 52886us)(0x88C) Index:24 1280 x 800 60Hz (22)
(26: 0.06s 53912us)(0x88C) Index:25 1280 x 800 75Hz (22)
(27: 0.06s 54903us)(0x88C) Index:26 1280 x 800 60Hz (22)
(28: 0.06s 55887us)(0x88C) Index:27 1280 x 800 75Hz (22)
(29: 0.06s 56874us)(0x88C) Index:28 1280 x 960 60Hz (22)
(30: 0.06s 57853us)(0x88C) Index:29 1280 x 960 75Hz (22)
(31: 0.06s 58969us)(0x88C) Index:30 1280 x 960 60Hz (22)
(32: 0.06s 59375us)(0x88C) Index:31 1280 x 960 75Hz (22)
(33: 0.06s 59460us)(0x88C) Index:32 1280 x 1024 60Hz (22)
(34: 0.06s 59541us)(0x88C) Index:33 1280 x 1024 75Hz (22)
(35: 0.06s 59618us)(0x88C) Index:34 1280 x 1024 60Hz (22)
(36: 0.06s 59827us)(0x88C) Index:35 1280 x 1024 75Hz (22)
(37: 0.06s 59907us)(0x88C) Index:36 1024 x 768 60Hz (22)
(38: 1.47s 2us)(0x88C) ================ clbkCreateRenderWindow ===============
(39: 1.49s 22626us)(0x88C) [VideoConfiguration] Adapter=0, ModeIndex=36
(40: 1.49s 22705us)(0x88C) MaxTextureBlendStages..: 8
(41: 1.49s 22735us)(0x88C) MaxTextureWidth........: 8192
(42: 1.49s 22762us)(0x88C) MaxTextureHeight.......: 8192
(43: 1.49s 22789us)(0x88C) MaxPrimitiveCount......: 5592405
(44: 1.49s 22815us)(0x88C) MaxVertexIndex.........: 16777215
(45: 1.49s 22842us)(0x88C) MaxSimultaneousTextures: 8
(46: 1.49s 22869us)(0x88C) MaxStreams.............: 16
(47: 1.49s 22895us)(0x88C) MaxStreamStride........: 508
(48: 1.49s 22922us)(0x88C) MaxVertexBlendMatrices.: 4
(49: 1.49s 22948us)(0x88C) MaxVShaderInstrExecuted: 4294967295
(50: 1.49s 22974us)(0x88C) MaxPointSize...........: 256.000000
(51: 1.49s 23002us)(0x88C) VertexShaderVersion....: 0x300
(52: 1.49s 23028us)(0x88C) PixelShaderVersion.....: 0x300
(53: 1.49s 23055us)(0x88C) NumSimultaneousRTs.....: 4
(54: 1.49s 23080us)(0x88C) D3DPTEXTURECAPS_POW2...: 0
(55: 1.49s 23113us)(0x88C) NONPOW2CONDITIONAL.....: 0
(56: 2.05s 164333us)(0x88C) [NEW FONT] ( Courier New), Size=18, Weight=400 Pitch&Family=30
(57: 2.05s 165002us)(0x88C) TextMetrics: Ascent = 14
(58: 2.05s 165047us)(0x88C) TextMetrics: Descent = 4
(59: 2.05s 165074us)(0x88C) TextMetrics: Height = 18
(60: 2.05s 165100us)(0x88C) TextMetrics: AvgWidth= 10
(61: 2.05s 165125us)(0x88C) TextMetrics: MaxWidth= 11
(62: 2.06s 169472us)(0x88C) Font and Charter set creation succesfull
(63: 2.23s 114766us)(0x88C) Starting to initialize basic a rendering technique...
(64: 5.74s 3628138us)(0x88C) Starting to initialize basic a rendering technique...
(65: 9.56s 36us)(0x88C) [NEW FONT] ( Arial), Size=15, Weight=400 Pitch&Family=30
(66: 9.56s 449us)(0x88C) TextMetrics: Ascent = 12
(67: 9.56s 487us)(0x88C) TextMetrics: Descent = 3
(68: 9.56s 513us)(0x88C) TextMetrics: Height = 15
(69: 9.56s 539us)(0x88C) TextMetrics: AvgWidth= 5
(70: 9.56s 564us)(0x88C) TextMetrics: MaxWidth= 32
(71: 9.57s 3981us)(0x88C) Font and Charter set creation succesfull
(72: 9.89s 60us)(0x88C) [NEW FONT] ( Courier New), Size=-14, Weight=400 Pitch&Family=30
(73: 9.90s 448us)(0x88C) TextMetrics: Ascent = 13
(74: 9.90s 489us)(0x88C) TextMetrics: Descent = 4
(75: 9.90s 515us)(0x88C) TextMetrics: Height = 17
(76: 9.90s 541us)(0x88C) TextMetrics: AvgWidth= 8
(77: 9.90s 566us)(0x88C) TextMetrics: MaxWidth= 9
(78: 9.90s 4073us)(0x88C) Font and Charter set creation succesfull
(79: 9.90s 4180us)(0x88C) [NEW FONT] ( Arial), Size=14, Weight=400 Pitch&Family=30
(80: 9.90s 4579us)(0x88C) TextMetrics: Ascent = 11
(81: 9.90s 4614us)(0x88C) TextMetrics: Descent = 3
(82: 9.90s 4639us)(0x88C) TextMetrics: Height = 14
(83: 9.90s 4665us)(0x88C) TextMetrics: AvgWidth= 5
(84: 9.90s 4690us)(0x88C) TextMetrics: MaxWidth= 29
(85: 9.90s 8015us)(0x88C) Font and Charter set creation succesfull
(86: 15.86s 50us)(0x88C) [NEW FONT] ( Courier New), Size=-13, Weight=400 Pitch&Family=30
(87: 15.87s 17593us)(0x88C) TextMetrics: Ascent = 12
(88: 15.87s 17657us)(0x88C) TextMetrics: Descent = 4
(89: 15.87s 17685us)(0x88C) TextMetrics: Height = 16
(90: 15.87s 17711us)(0x88C) TextMetrics: AvgWidth= 8
(91: 15.87s 17736us)(0x88C) TextMetrics: MaxWidth= 9
(92: 15.90s 42073us)(0x88C) Font and Charter set creation succesfull
(93: 15.90s 42197us)(0x88C) [NEW FONT] ( Arial), Size=-9, Weight=400 Pitch&Family=30
(94: 15.91s 55596us)(0x88C) TextMetrics: Ascent = 9
(95: 15.91s 55646us)(0x88C) TextMetrics: Descent = 3
(96: 15.91s 55673us)(0x88C) TextMetrics: Height = 12
(97: 15.91s 55699us)(0x88C) TextMetrics: AvgWidth= 4
(98: 15.91s 55724us)(0x88C) TextMetrics: MaxWidth= 24
(99: 15.94s 80723us)(0x88C) Font and Charter set creation succesfull
(100: 15.94s 80871us)(0x88C) [NEW FONT] ( Arial), Size=-13, Weight=400 Pitch&Family=30
(101: 15.95s 94361us)(0x88C) TextMetrics: Ascent = 13
(102: 15.95s 94413us)(0x88C) TextMetrics: Descent = 3
(103: 15.95s 94440us)(0x88C) TextMetrics: Height = 16
(104: 15.95s 94466us)(0x88C) TextMetrics: AvgWidth= 6
(105: 15.95s 94491us)(0x88C) TextMetrics: MaxWidth= 35
(106: 15.97s 115091us)(0x88C) Font and Charter set creation succesfull
(107: 16.08s 2337us)(0x88C) [NEW FONT] ( Arial), Size=14, Weight=400 Pitch&Family=30
(108: 16.08s 2721us)(0x88C) TextMetrics: Ascent = 11
(109: 16.08s 2759us)(0x88C) TextMetrics: Descent = 3
(110: 16.08s 2785us)(0x88C) TextMetrics: Height = 14
(111: 16.08s 2811us)(0x88C) TextMetrics: AvgWidth= 5
(112: 16.08s 2836us)(0x88C) TextMetrics: MaxWidth= 18
(113: 16.08s 6241us)(0x88C) Font and Charter set creation succesfull
(114: 16.08s 6355us)(0x88C) [NEW FONT] ( Courier New), Size=14, Weight=400 Pitch&Family=30
(115: 16.08s 6700us)(0x88C) TextMetrics: Ascent = 11
(116: 16.08s 6735us)(0x88C) TextMetrics: Descent = 3
(117: 16.08s 6761us)(0x88C) TextMetrics: Height = 14
(118: 16.08s 6786us)(0x88C) TextMetrics: AvgWidth= 7
(119: 16.08s 6811us)(0x88C) TextMetrics: MaxWidth= 7
(120: 16.09s 10069us)(0x88C) Font and Charter set creation succesfull
(121: 16.09s 49us)(0x88C) [NEW FONT] ( Arial), Size=-21, Weight=400 Pitch&Family=30
(122: 16.09s 563us)(0x88C) TextMetrics: Ascent = 19
(123: 16.09s 601us)(0x88C) TextMetrics: Descent = 5
(124: 16.09s 627us)(0x88C) TextMetrics: Height = 24
(125: 16.09s 653us)(0x88C) TextMetrics: AvgWidth= 9
(126: 16.09s 685us)(0x88C) TextMetrics: MaxWidth= 56
(127: 16.09s 5127us)(0x88C) Font and Charter set creation succesfull
(128: 16.10s 2us)(0x88C) ================ clbkPostCreation ===============
(129: 17.36s 2us)(0x88C) RegisteringVisual (Sun) hVessel=0x0, hObj=0xE3B048, Vis=0x2868530, Rec=0x2868510, Type=3
(130: 17.39s 40us)(0x88C) RegisteringVisual (Mercury) hVessel=0x0, hObj=0x296B688, Vis=0x2868690, Rec=0x2868670, Type=4
(131: 17.41s 11756us)(0x88C) RegisteringVisual (Venus) hVessel=0x0, hObj=0x2950030, Vis=0x286C8E8, Rec=0x286C8C8, Type=4
(132: 17.41s 63us)(0x88C) FogParams: alt_ref=4000, dens_0=5e-005, dens_ref=3e-005
(133: 17.41s 147us)(0x88C) RegisteringVisual (Earth) hVessel=0x0, hObj=0x296BD70, Vis=0x2874E28, Rec=0x2874E08, Type=4
(134: 17.42s 2283us)(0x88C) Reading Tile Data for Earth_tile.bin
(135: 18.27s 16us)(0x88C) RegisteringVisual (Moon) hVessel=0x0, hObj=0x5378008, Vis=0x7266EA0, Rec=0x720AFE8, Type=4
(136: 18.27s 1609us)(0x88C) Reading Tile Data for Moon_tile.bin
(137: 18.69s 80us)(0x88C) RegisteringVisual (Mars) hVessel=0x0, hObj=0x5367008, Vis=0x8B10860, Rec=0x8C6BB70, Type=4
(138: 18.72s 4us)(0x88C) RegisteringVisual (Phobos) hVessel=0x0, hObj=0x4DE4840, Vis=0x7963008, Rec=0x8E17FE8, Type=4
(139: 18.75s 4us)(0x88C) RegisteringVisual (Deimos) hVessel=0x0, hObj=0x4DF6818, Vis=0x7935A30, Rec=0x7D2EF58, Type=4
(140: 18.76s 226us)(0x88C) RegisteringVisual (Jupiter) hVessel=0x0, hObj=0x4DE7810, Vis=0x8B2F008, Rec=0x7963348, Type=4
(141: 18.77s 10us)(0x88C) RegisteringVisual (Io) hVessel=0x0, hObj=0x295D008, Vis=0x8B2F668, Rec=0x8F91FE8, Type=4
(142: 18.77s 11us)(0x88C) RegisteringVisual (Europa) hVessel=0x0, hObj=0x4E1D860, Vis=0x8B2F9E8, Rec=0x8DF5FE8, Type=4
(143: 18.78s 11us)(0x88C) RegisteringVisual (Ganymede) hVessel=0x0, hObj=0x4DFF840, Vis=0x8D91658, Rec=0x8D0DFE8, Type=4
(144: 18.79s 12us)(0x88C) RegisteringVisual (Callisto) hVessel=0x0, hObj=0x4E02810, Vis=0x8D91B80, Rec=0x8F28FE8, Type=4
(145: 18.79s 10us)(0x88C) RegisteringVisual (Saturn) hVessel=0x0, hObj=0x4DED860, Vis=0x8B4E3C8, Rec=0x8FD7FE8, Type=4
(146: 18.80s 11us)(0x88C) RegisteringVisual (Mimas) hVessel=0x0, hObj=0x53555A0, Vis=0x8B4EBF0, Rec=0x8D4F710, Type=4
(147: 18.81s 96us)(0x88C) RegisteringVisual (Enceladus) hVessel=0x0, hObj=0x5355C88, Vis=0x8C8B6C8, Rec=0x8BCB670, Type=4
(148: 18.81s 70us)(0x88C) RegisteringVisual (Tethys) hVessel=0x0, hObj=0x54ED050, Vis=0x8C8BA48, Rec=0x8D2EFE8, Type=4
(149: 18.82s 19us)(0x88C) RegisteringVisual (Dione) hVessel=0x0, hObj=0x54ED738, Vis=0x99D7008, Rec=0x8E7DFE8, Type=4
(150: 18.83s 21us)(0x88C) RegisteringVisual (Rhea) hVessel=0x0, hObj=0x29A2FF0, Vis=0x99D7388, Rec=0x8CEC3F0, Type=4
(151: 18.83s 164us)(0x88C) RegisteringVisual (Titan) hVessel=0x0, hObj=0x29A36D8, Vis=0x99D7708, Rec=0x8AB3FE8, Type=4
(152: 18.84s 11us)(0x88C) RegisteringVisual (Hyperion) hVessel=0x0, hObj=0x4E03800, Vis=0x99D7A88, Rec=0x90F0170, Type=4
(153: 18.85s 21us)(0x88C) RegisteringVisual (Iapetus) hVessel=0x0, hObj=0x4E03EE8, Vis=0x9956DA0, Rec=0x9040FE8, Type=4
(154: 18.85s 12us)(0x88C) RegisteringVisual (Uranus) hVessel=0x0, hObj=0x4E06010, Vis=0x9981220, Rec=0x9086FE8, Type=4
(155: 18.86s 11us)(0x88C) RegisteringVisual (Miranda) hVessel=0x0, hObj=0x4E066F8, Vis=0x99815A0, Rec=0x8EC1FE8, Type=4
(156: 18.87s 12us)(0x88C) RegisteringVisual (Ariel) hVessel=0x0, hObj=0x4E07820, Vis=0x9981708, Rec=0x8DD3FE8, Type=4
(157: 18.87s 10us)(0x88C) RegisteringVisual (Umbriel) hVessel=0x0, hObj=0x4E07F08, Vis=0x28B3508, Rec=0x9981870, Type=4
(158: 18.88s 10us)(0x88C) RegisteringVisual (Titania) hVessel=0x0, hObj=0x4E085F0, Vis=0x28B3A30, Rec=0x8DB2FE8, Type=4
(159: 18.89s 10us)(0x88C) RegisteringVisual (Oberon) hVessel=0x0, hObj=0x4E29008, Vis=0x28AE350, Rec=0x85AAF58, Type=4
(160: 18.89s 11us)(0x88C) RegisteringVisual (Neptune) hVessel=0x0, hObj=0x4E296F0, Vis=0x28AE878, Rec=0x869DF58, Type=4
(161: 18.90s 91us)(0x88C) RegisteringVisual (Triton) hVessel=0x0, hObj=0x4E3DCA0, Vis=0x28AEBF8, Rec=0x8948F58, Type=4
(162: 18.91s 10us)(0x88C) RegisteringVisual (Proteus) hVessel=0x0, hObj=0x4E3E388, Vis=0x992BC20, Rec=0x8A56F58, Type=4
(163: 18.91s 11us)(0x88C) RegisteringVisual (Nereid) hVessel=0x0, hObj=0x4E3EA70, Vis=0x992B008, Rec=0x8590EE0, Type=4
(164: 18.92s 73us)(0x88C) Vessel(0x4E3FF80) ProjectAlpha_ISS has 1 meshes
(165: 18.93s 2us)(0x88C) Mesh(0x4DB0B88) Offset = (0, 0, 0)
(166: 18.93s 79us)(0x88C) Vessel(ISS) Vis=0x992B388 has no animations
(167: 18.93s 109us)(0x88C) RegisteringVisual (ISS) hVessel=0x4E3FF80, hObj=0x4E3F158, Vis=0x992B388, Rec=0x8682EE0, Type=10
(168: 24.52s 18578us)(0x88C) New Base Visual(0x287EC28) hBase=0x2A0AA70
(169: 27.86s 28718us)(0x88C) New Base Visual(0x9162720) hBase=0x46E7EE0
(170: 29.03s 1166625us)(0x88C) --------------ExitModule------------
(171: 29.03s 1168045us)(0x88C) Log Closed

This doesn't happen with any other bases. Unfortunately any distribution of the base in question would be much too large to upload. If it helps in any way this base includes lots of VERY hi-res meshes.
 

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,669
Reaction score
798
Points
128
Here is a debug build of the client. Could you run the scenario with it and post the log file again. Also, the detailed application crash information would help.
 
Last edited:

Poscik

Addon Developer
Addon Developer
Joined
Mar 28, 2008
Messages
512
Reaction score
3
Points
18
Location
Sulejówek
I just found (with dbeachy1 help) serious bug I think. I'm attaching two screenshots. First is from Inline client:
bug1.JPG


hDevHeatShieldMesh is returned from GetDevMesh(VISHANDLE,something) in clbkVisualCreated. Value 28 seems correct here.
i is temporary index, don't focus on it at all.
mat1 is MATERIAL pointer obtained via oapiMeshMaterial(hDevHeatShieldMesh,number)
num is returned from oapiMeshMaterialCount(hDevHeatShieldMesh) and shows 1 here, as I have only one material in this mesh. Now compare with D3D9 client results:
bug2.JPG


Look at hDevHeatShieldMesh and num values.
 

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,669
Reaction score
798
Points
128
mat1 is MATERIAL pointer obtained via oapiMeshMaterial(hDevHeatShieldMesh,number)
num is returned from oapiMeshMaterialCount(hDevHeatShieldMesh)
Look at hDevHeatShieldMesh and num values.

At first, the Orbiter API doesn't have oapiMeshMaterial() and oapiMeshMaterialCount() functions those would support DEVMESHHANDLE as an input parameter. The value "1144210489" is perfectly ok, since it is containing the ID letters used by the client 'D3D9'. I posted a proposal for an "Improved backwards compatibility" http://www.orbiter-forum.com/project.php?issueid=794 in the project tools section of this forum. If it's implemented then this problem you are having would cure it self automatically. Since, there is no feedback I don't know what's the current status of the request. There are alternatives but right now it's probably best to wait and see if a new beta of the Orbiter would appear.
 

Poscik

Addon Developer
Addon Developer
Joined
Mar 28, 2008
Messages
512
Reaction score
3
Points
18
Location
Sulejówek
I know there are no functions that support DEVMESHHANDLE, but it works in inline. And as I heard, there is no way to modify material parameters directly in external graphics client. I have to use oapiSetMaterial(DEVMESHANDLE,num,&mat) to change it. And oapiSetMaterial has DEVMESHHANDLE by default. I can tell you how I'm modyfying texture alpha channel.
First I'm calling oapiSetMeshProperty() with my DEVMESHHANDLE -> then calling oapiMeshMaterialCount() with DEVMESHHANDLE too. It should return 1, but you can see what it returns -> oapiMeshMaterial() with DEVMESHHANDLE, initialize second material and apply memcpy on those two -> modyfying alpha channel on second cloned material -> applying it via oapiSetMaterial() with DEVMESHHANDLE.

Do you think I can override it by getting the material from MESHHANDLE, modify it and then apply to DEVMESHHANDLE?


[EDIT]
No question ;) I did what I was asking for, and works veeery well now!
 
Last edited:

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,669
Reaction score
798
Points
128
This should work:

MESHHANDLE hMesh = vessel->GetMeshTemplate(mesh_idx);
DEVMESHHANDLE hDevMesh = vessel->GetDevMesh(visual, mesh_idx);

int mat_count = oapiMeshMaterialCount(hMesh); // Can't put hDevMesh here. Won't work

MATERIAL *mat = oapiMeshMaterial(hMesh, mat_idx); // Can't put hDevMesh here. Won't work

oapiSetMaterial(hDevMesh, mat_idx, mat);
 

Poscik

Addon Developer
Addon Developer
Joined
Mar 28, 2008
Messages
512
Reaction score
3
Points
18
Location
Sulejówek
I did it little bit different, but works fine :) Anyway, thank you.
 

jarmonik

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 28, 2008
Messages
2,669
Reaction score
798
Points
128
I just encountered an unusual problem with D3D9 Client. For some reason I get a CTD when I set the camera target to a base I just created. There are no vessels, just the base itself. Is there something I can do to fix this problem?

I found a few things those could have caused the CTD. Does this build work ?
 
Last edited:
Top