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 12-31-2010, 03:36 PM   #241
Axel
Drive Technician
 
Axel's Avatar
Default

@Jarmonik
Quote:
Could you be a little more specific. What scenarios won't load ?
I know that many multistage2.dll based scenarios won't load and DeltaGliderIV won't load but what else is having problems to load ?
Nearly every vessel doesn't load, the list would be shorter to write which is loading fine. The XR2 works and Shuttle_A,DG standard and Atlantis.

Here few examples which are not loading and these are not multistage2.

-DeltagliderEX
-Vagaworld
-Bekuo VASIMR
-World of 2001 and 2010
-Starclipper68

What happens when i try to load? It goes into the scenario, but then it comes a message "Orbiter attempt to delete a texture to avoid a CTD" the other message is "trys to load a NULL mesh" or so. In both cases it freezes, so i can only use taskmanager for exit.

Last edited by Axel; 12-31-2010 at 03:38 PM.
Axel is offline   Reply With Quote
Old 12-31-2010, 09:38 PM   #242
jarmonik
Beta Tester

Default

Quote:
Originally Posted by Axel View Post
 Here few examples which are not loading and these are not multistage2.
Sorry, I forget to mention spacecraft3.dll and spacecraft2.dll. It is true that most addons are relying on these DLLs and therefore aren't working. The best solution would be that the creator of these DLLs would update the them to support graphics clients. The CTD that is caused by addons using these dlls doesn't occur within a graphics client. Also, a graphics client isn't directly involved in the CTD therefore there is nothing I can do about it except creating a replacement dlls which is unlikely going to happen.

Quote:
Originally Posted by Axel View Post
 What happens when i try to load? It goes into the scenario, but then it comes a message "Orbiter attempt to delete a texture to avoid a CTD" the other message is "trys to load a NULL mesh" or so. In both cases it freezes, so i can only use taskmanager for exit.
The problem is that there is an implementation error in oapiSetTexture(), addons are using this function to replace the default texture with some other one like changing a vessel's skin. When the oapiSetTexture() is called by an addon the Orbiter will send "a message" to graphics client to destroy the existing texture. However, a graphics client will never receive the replacement texture from the Orbiter. This process will leave a mesh without a valid texture and it will cause a CTD. Currently D3D9Client doesn't allow the Orbiter to delete any textures those are used by a mesh.

---------- Post added at 23:38 ---------- Previous post was at 18:31 ----------

Quote:
Originally Posted by edsupagood View Post
 Both RC6 and RC5 do not work.
Here is the log with DebugLvl set to 5:
There is something strange going on. Looks like the Orbiter is calling clbkUpdate() before calling clbkPostCreation(). The CTD is obvious if this happens. But why is clbkPostCreation() skipped ?!? I'll try to figure out something...
jarmonik is offline   Reply With Quote
Old 12-31-2010, 10:16 PM   #243
edsupagood
Addon Developer
 
edsupagood's Avatar
Default

Quote:
Originally Posted by jarmonik View Post
 There is something strange going on. Looks like the Orbiter is calling clbkUpdate() before calling clbkPostCreation(). The CTD is obvious if this happens. But why is clbkPostCreation() skipped ?!? I'll try to figure out something...
Thanks so much for looking in to it.
edsupagood is offline   Reply With Quote
Old 01-01-2011, 12:29 AM   #244
jarmonik
Beta Tester

Default

Ok, here is RC7

- The sun issue should be fixed.
- Some VC related fixes are made so pay attention that everything is working well.
- I have added some code that might fix the clbkUpdate() clbkPostCreation() issue.
- AMSO should be working at some level. There is only very little testing done. (Problem: Takes about 5-20 seconds to shutdown a simulation)

The package contains two DLLs activate only one of them. D3D9ClientSL.dll is build by using a static linking and use it only if the other one won't work.

You need a DirectX 9 February 2010 or newer to run D3D9Client
http://www.microsoft.com/downloads/e...7-5ab8109cb4f5
.

Last edited by jarmonik; 06-13-2011 at 01:03 PM.
jarmonik is offline   Reply With Quote
Old 01-01-2011, 02:56 AM   #245
edsupagood
Addon Developer
 
edsupagood's Avatar
Default

Confirming that RC7 has fixed the problem with the clbkUpdate() clbkPostCreation() issue.

Thanks for fixing it
edsupagood is offline   Reply With Quote
Old 01-01-2011, 08:14 PM   #246
Turbo
Orbinaut
Post question

Quote:
Originally Posted by jarmonik View Post
 Ok, here is RC7

The package contains two DLLs activate only one of them. D3D9ClientSL.dll is build by using a static linking and use it only if the other one won't work.
Im just curious, for someone who knows nothing about directX coding, what is the Static linking you are talkin about? I only ask because using the client, I must use the SL one with my nvidia gtx 465 for it to register my Video tab(and i notice you say only use IF you other does not work.)

Thanks for any info you can give, and sorry for the dumb question

On the side, I can also confirm that the error closing launchpad has been fixed
Turbo is offline   Reply With Quote
Old 01-01-2011, 08:41 PM   #247
jarmonik
Beta Tester

Default

Quote:
Originally Posted by Turbo View Post
 Im just curious, for someone who knows nothing about directX coding, what is the Static linking you are talkin about? I only ask because using the client, I must use the SL one with my nvidia gtx 465 for it to register my Video tab(and i notice you say only use IF you other does not work.)
In order to use the non-SL version you need to install VC2008 redistributable (runtime library) package. This is probably the one you need.

The SL version has the required runtime library linked within the dll it-self (notice the larger size of the SL version). The reason why there are two versions is that in the early state of the development of the D3D9Client the non-SL version was more stable than the SL version.

Last edited by jarmonik; 01-02-2011 at 03:12 PM. Reason: Incorrect link removed
jarmonik is offline   Reply With Quote
Thanked by:
Old 01-01-2011, 09:05 PM   #248
luki1997a
Orbinaut
 
luki1997a's Avatar
Default

Many thanks for RC7! I see, that developing this client is very fast. I check this page everyday. Why the other add-ons such as dgiv doesn't work? I think, there is no diffrence between the original client than yours, except DirectX ver. Can you explain this?
P.S. what about my scene.cpp?
luki1997a is offline   Reply With Quote
Old 01-02-2011, 12:18 PM   #249
Frankynov
Orbinaut
Default

In my case, only the SL version works, although I've the latest runtimes on my Windows 7 Desktop (64 bit though).

I've been playing with AMSO and this is gorgeous ! I can at last watch the launch at a minimum of 150FPS in the worse case, so I'm extremly pleased; 2011 is starting greatly !

I know it was a great step in formward but I've noticed some strange lightning problems. Here are some screenshots with all the same settings on a stock dx7 orbiter and your client.
dx7

dx9

dx7

dx9


Btw have you started to look at the atmosphere rendering ?

Best wishes for 2011 !
Frankynov is offline   Reply With Quote
Old 01-02-2011, 12:44 PM   #250
orb
O-F Administrator
Ninja
 
orb's Avatar

Default

Quote:
Originally Posted by Frankynov View Post
 In my case, only the SL version works, although I've the latest runtimes on my Windows 7 Desktop (64 bit though).
But you don't have Visual Studio 2008 / C++ Express 2008 installed. The dynamic module is linked against debug version of C runtime library - MSVCR90D.dll, whereas SL version contains all the C++ debug code included inside of the module. You don't have those libraries, because they aren't redistributable, and no matter how many versions of MSVC++ redistributable packages you have installed, you will still need Visual C++ Express 2008 / Visual Studio 2008 to have those libraries installed in your system.
orb is offline   Reply With Quote
Thanked by:
Old 01-02-2011, 03:42 PM   #251
Wishbone
Clueless developer
 
Wishbone's Avatar
Default

RC7 is very very impressive (tried on a Giza DeltaGlider), again thank you v. much. The External MFD, though, has readability problems with the font used - it is slightly blurred. Another problem - the improved runway texture (
New Runway Texture - Fix
) doesn't show up.
Wishbone is offline   Reply With Quote
Old 01-02-2011, 08:17 PM   #252
DaveS
Addon Developer
 
DaveS's Avatar


Default

Quote:
Originally Posted by jarmonik View Post
 - Some VC related fixes are made so pay attention that everything is working well.
.
I have found a problem with this. The payload bay is no longer visible from any of the aft flightdeck view positions. This is with SSU.

---------- Post added at 09:17 PM ---------- Previous post was at 06:19 PM ----------

Does the D3D9 client make use of the AtmAttenuationAlt parameter? I'm asking because the times of sunrise/sunset between inline and the D3D9 client is different. The AtmAttenuationAlt parameter was introduced to solve this particular problem of high altitude orbiting spacecrafts experiencing sunset too early when the sun was still above the atmosphere and sunrise when the sun was still being blocked by the atmosphere.

Last edited by DaveS; 01-02-2011 at 08:20 PM.
DaveS is offline   Reply With Quote
Old 01-02-2011, 10:49 PM   #253
edsupagood
Addon Developer
 
edsupagood's Avatar
Default

Quote:
Originally Posted by Wishbone View Post
  Another problem - the improved runway texture (New Runway Texture - Fix) doesn't show up.
What do you mean it doesn't show up? Does it work with the original orbiter.exe graphics?
edsupagood is offline   Reply With Quote
Old 01-02-2011, 10:59 PM   #254
jarmonik
Beta Tester

Default

Quote:
Originally Posted by DaveS View Post
 I have found a problem with this. The payload bay is no longer visible from any of the aft flightdeck view positions. This is with SSU.
---------- Post added at 09:17 PM ---------- Previous post was at 06:19 PM ----------
Does the D3D9 client make use of the AtmAttenuationAlt parameter? I'm asking because the times of sunrise/sunset between inline and the D3D9 client is different. The AtmAttenuationAlt parameter was introduced to solve this particular problem of high altitude orbiting spacecrafts experiencing sunset too early when the sun was still above the atmosphere and sunrise when the sun was still being blocked by the atmosphere.
The AtmAttenuationAlt parameter isn't currently used by the D3D9Client. This issue should automatically take care of it-self when the atmospheric scattering and new lighting environment is implemented. The payload bay issue will be fixed in RC8

---------- Post added at 00:59 ---------- Previous post was at 00:54 ----------

Quote:
Originally Posted by Wishbone View Post
 RC7 is very very impressive (tried on a Giza DeltaGlider), again thank you v. much. The External MFD, though, has readability problems with the font used - it is slightly blurred. Another problem - the improved runway texture (New Runway Texture - Fix) doesn't show up.
The improved runway texture is working well here. Can't reproduce. Could you check it again.

I haven't detected anything strange in External MFD. It is a bit blurred sometimes depending about the size of the display. Usually the quality is about the same as with the glass cockpit and 2D panel MFD. If it is worse than this could you post a screenshot.
jarmonik is offline   Reply With Quote
Thanked by:
Old 01-02-2011, 11:07 PM   #255
edsupagood
Addon Developer
 
edsupagood's Avatar
Default

Why is it when I press F4 to load menu or Ctrl + F4 to load the Custom Functions window, it loads but the window turns white and I get "Connection to Direct3DDevice is lost Exit the simulation with Ctrl+Q and restart."

Why does this happen?
Attached Thumbnails
error.jpg  
edsupagood is offline   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 02:25 AM.

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.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.