Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Visualization Project Orbiter external graphics development.

Reply
 
Thread Tools
Old 10-11-2010, 06:00 PM   #31
Poscik
Addon Developer
 
Poscik's Avatar
Default

Try this Xyon.
D3D9Client.zip
Poscik is offline   Reply With Quote
Old 10-11-2010, 06:06 PM   #32
jarmonik
Beta Tester

Default

Quote:
Originally Posted by Poscik View Post
 And another "bug" in D3D9: I replaced solar system to SolM, and when simulation begins, loading screen don't want to disappear. Simulation works "in background". I just pressed Ctrl+Q, and Orbiter turned off very well.
That's a good news. It's not a bug. Scene rendering is currently disabled and Scene.cpp will require a lot of work until it can be enabled. I am not giving up yet, there must be a reason for failure of Phobos. I'll implement the video tab and if it doesn't solve the problem I'll ask Martin to run the client under a debug version of the Orbiter, that would show the parameters those are used in initialization of the Phobos.dll and Satsat.dll
jarmonik is offline   Reply With Quote
Thanked by:
Old 10-11-2010, 06:12 PM   #33
Xyon
Puts the Fun in Dysfunctional
 
Xyon's Avatar


Default

Quote:
Originally Posted by Poscik View Post
 Try this Xyon.
Attachment 5958
Aha! Now I crash where the rest of you do! \o/
Xyon is online now   Reply With Quote
Old 10-12-2010, 09:14 PM   #34
jarmonik
Beta Tester

Default

I have implemented the video tab but it didn't have any effect in the problem with Phobos. It would appear that the "DG Mk4 in Orbit" scenario seems to "crash" in a phobos.dll and "Atlantis cockpit" scenario is "crashing" in a saturn.dll.

---------- Post added 13-10-10 at 00:07 ---------- Previous post was 12-10-10 at 16:58 ----------

This is geting more and more complicated... I placed a wrapper dll between the Orbiter and the Phobos as well as Mars for reference. The parameters passed from the orbiter to the Phobos.dll are the same for both clients D3D7 and D3D9Clients. Of course, some handles are different but they both look good. But anyway the problem is isolated to clbkFastEphemeris() which is called but will never return. There could be uninitialized local variable inside the module, that is for some reason, giving trouble with the D3D9Client. The same problem seems to apply to Saturn.dll, Mimas.dll, Enceladus.dll and probably many more.

Code:
Module Mars.dll .............. [Build 101012, API 100830]
-- MARS module wrapper loaded --
Module xMars.dll ............. [Build 100830, API 100830]
InitModule(HINSTANCE hModule=0x3C70000)
InitInstance(OBJHANDLE hBody=0x791FB58)
WrapperPlanet(CELBODY pPlanet=0x7920240)
clbkInit(FILEHANDLE cfg=0x9FEE70)...
Module MarsAtm2006.dll ....... [Build 100830, API 100830]
VSOP87(B) Mars: Precision 1e-005, Terms 405/6400
...return
bEphemeris() called
clbkFastEphemeris(double simt=0, int req=15, double ptr ret=0x4DBDE0)...
...return(int 12)


Module Phobos.dll ............ [Build 101012, API 100830]
-- PHOBOS module wrapper loaded --
Module xPhobos.dll ........... [Build ******, API 060425]
InitModule(HINSTANCE hModule=0x7B30000)
InitInstance(OBJHANDLE hBody=0x7918B50)
WrapperPlanet(CELBODY pPlanet=0x2155C10)
clbkInit(FILEHANDLE cfg=0x9FEC30)...
...return
bEphemeris() called
clbkFastEphemeris(double simt=0, int req=15, double ptr ret=0x4DBDE0)...


---------- Post added at 00:14 ---------- Previous post was at 00:07 ----------

I thought that writing a graphics client would have been easier task.
jarmonik is offline   Reply With Quote
Thanked by:
Old 10-12-2010, 10:22 PM   #35
Poscik
Addon Developer
 
Poscik's Avatar
Default

I'm trying to fix it, but still no results. As I mentioned earlier, we should write completely new client. Much faster than working out this error.
Poscik is offline   Reply With Quote
Old 10-13-2010, 03:50 PM   #36
jarmonik
Beta Tester

Default

Quote:
Originally Posted by Poscik View Post
 I'm trying to fix it, but still no results. As I mentioned earlier, we should write completely new client. Much faster than working out this error.
The implementation that I have been working is only containing online code in D3D9Client.cpp, D3D9Surface.cpp, D3D9Frame.cpp and Texture.cpp. Everything else is offline. These files are rewriten from most parts. Even if we could make a new client based more or less in the existing code of the D3D7Client there is only a very little chance that we will avoid this error. I already re-implemented the D3D9Client.cpp without using the D3D9ClientSurface class, just with a basic surfaces, but it didn't help.

The problem is that I have no means to debug the problem where it manifests it self. The Phobos.dll has been successfully used with the Orbiter very long time, therefore, it's unreasonable to expect that the Phobos.dll and many other modules would have a fundamental bug of somekind.

A Buffer overflow in D3D9Client is unlikely the reason because the Orbiter have not yet loaded the Phobos.dll when the Client runs the splash screen and loads a few textures. There is no client code executed between loading the Phobos.dll and getting stuck in a loop. This is the most frustrating bug I have ever encountered.

---------- Post added at 18:50 ---------- Previous post was at 17:10 ----------

I'll try to continue a development without Phobos and Saturn system. Removing them allows to pass the bug or what ever it is. There is nothing I can do about it. But nobody's going to use the client if it won't work with those modules so the problem must be solved. I'll leave the debugging of the Orbiter itself for Martin.
jarmonik is offline   Reply With Quote
Thanked by:
Old 10-15-2010, 03:07 PM   #37
Weirdo Earthtorch
Orbinaut
Default

I'm no programmer and have little understanding of the issues discussed, so feel free to shoot me down, but discussion of phobos.dll in relation to graphics clients reminds me of a bug I posted in the D3D7 client http://orbiter-forum.com/project.php?issueid=129. Martin explained at the time that
Quote:
Rendering mesh-based planet surfaces isn't yet supported by the D3D7Client.
(i.e. phobos, deimos, not sure about the Saturn system)
I wondered if the issue is related?
Weirdo Earthtorch is offline   Reply With Quote
Thanked by:
Old 10-15-2010, 09:09 PM   #38
jarmonik
Beta Tester

Default

I made some progress with the Client. The 2D panel cockpit and the glass cockbit is online and working. But there is a terrible performance impact during MFD update. There is still a lot of work with it. There are also problems with the Orbiter like DeltaGlider falling down from an orbit.

Installation note: Place the MeshTech.fx in the Orbiter's root folder.
Installation note: Remove Phobos and Saturn system from the Sol.cfg
Installation note: Software Vertex processing must be unchecked from Video Tab

Last edited by jarmonik; 09-20-2012 at 09:41 PM.
jarmonik is offline   Reply With Quote
Thanked by:
Old 10-15-2010, 09:12 PM   #39
jarmonik
Beta Tester

Default

Also note that Phobos and Saturn system must be removed from Sol.cfg take a backup before editing it.
jarmonik is offline   Reply With Quote
Old 10-15-2010, 10:25 PM   #40
Xyon
Puts the Fun in Dysfunctional
 
Xyon's Avatar


Default

Same again; Error loading module Modules\Plugin\D3D9Client.dll (code 14001)

Would this be because I don't have the DX9 SDK perhaps?
Xyon is online now   Reply With Quote
Old 10-15-2010, 10:35 PM   #41
orb
O-F Administrator
Ninja
 
orb's Avatar

Default

Quote:
Originally Posted by Xyon View Post
 Same again; Error loading module Modules\Plugin\D3D9Client.dll (code 14001)

Would this be because I don't have the DX9 SDK perhaps?
Could be because you don't have VC++ 2008, but you have VC++ 2010 and there is no MSVCR90D.dll debug library there against which it was compiled?
orb is offline   Reply With Quote
Thanked by:
Old 10-15-2010, 10:36 PM   #42
Poscik
Addon Developer
 
Poscik's Avatar
Default

Here you are Xyon.
D3D9Client.zip
Poscik is offline   Reply With Quote
Thanked by:
Old 10-15-2010, 10:39 PM   #43
Xyon
Puts the Fun in Dysfunctional
 
Xyon's Avatar


Default

Possibly. I have a lot of VC++2008 runtimes, though probably not the ones I need.

---------- Post added at 23:39 ---------- Previous post was at 23:36 ----------

Quote:
Originally Posted by Poscik View Post
 Here you are Xyon.
Attachment 5991
Well, that module loaded OK, but CTDs before getting anywhere.

Code:
**** Orbiter.log
Build Aug 30 2010 [v.100830]
Timer precision: 3.39777e-007 sec
Found 0 joystick(s)
Module AtlantisConfig.dll .... [Build 100830, API 100830]
Module AtmConfig.dll ......... [Build 100830, API 100830]
Module DGConfigurator.dll .... [Build 100830, API 100830]
Module D3D9Client.dll ........ [Build 101016, API 100830]

**** Creating simulation session
Xyon is online now   Reply With Quote
Old 10-15-2010, 10:42 PM   #44
jarmonik
Beta Tester

Default

Quote:
Originally Posted by Xyon View Post
 Same again; Error loading module Modules\Plugin\D3D9Client.dll (code 14001)

Would this be because I don't have the DX9 SDK perhaps?
The error could be caused by missing VC++ 2008 runtime libraries. I made a static build and it shouldn't need those runtime libraries anymore.

I am really worried about how the Orbiter behaves under D3D9Client. Something is badly wrong.

Last edited by jarmonik; 10-30-2010 at 07:43 PM.
jarmonik is offline   Reply With Quote
Thanked by:
Old 10-15-2010, 10:46 PM   #45
Xyon
Puts the Fun in Dysfunctional
 
Xyon's Avatar


Default

Same visual issue, but for this:

Click image for larger version

Name:	d3d9.png
Views:	50
Size:	19.9 KB
ID:	5993
Xyon is online now   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Visualization Project

Tags
d3d9client, graphicsclient


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 07:39 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright 2007 - 2012, Orbiter-Forum.com. All rights reserved.