I am stuck. The MFD's do not show up in the VC. I made simple rectangles facing the pilot. They load as blank rectangles with default material.
Attributed the mesh index and mesh group to the MFDs, registered them with oapiVCRegisterMFD. Now they show up as black rectangles, but no MFD is drawn. Anybody got an idea why this could be?
Hi Franz,
I was planning to write about this sooner (when reading previous posts where you have mentioned the black MFD's problem) but I was not able yet to hunt some of my development notes... So, what follows next may not be helpful, but here it goes!
I think that have experienced a similar issue, although this was with a spacecraft3.dll vessel. Everything was correctly coded but the MFDs were not showing up...
... And now this is the part that I do not remember: I think that the problem was either related with some video definitions of the graphics card (Mobile Intel(R) 945 Express Chipset on Windows XP SP3) and/or was solved (or came back again) after installing a certain (?) version of Visual C++ routines and/or was also dependent of Orbiter version...
Yes, I know, not really helpful... I will try to hunt for those missing 'simcosmos' development notes or do a few new tests with some files (both from me and you and both on the EeePC and on the main computer = with a dedicated NVIDIA graphics card) to see if we narrow this down to reach any specific conclusion.
EDIT
Ok, did a number of quick tests, with:
- Orbiter's default Deltaglider
- one virtual cockpit of my own that had in the archives and powered by Vinka's spacecraft3.dll.
- OrionMPCV (07)
Results:
---------------------------------------------------------------------------
Ship's VC MFD-2006P1 (EeePC)--2010P1 (EeePC)--2006P1 (Main)--2010P1 (Main)
Delta-glider---------White------------OK------------OK--------------OK----
Spacecraft3.dll-------DDS------------OK------------OK--------------OK----
OrionMPCV 07------ White-----------Black------(not tested)--------Black---
---------------------------------------------------------------------------
Notes:
DDS = no active MFDs
although still showing a default texture inside the MFD rectangle : as noted below, the MFD needs to be mapped (the texture does not strictly need to be present but I leave a dummy one anyway, so that the MFD displays 'something' in case of a graphical glitch, etc)
So, at least in my development cases, this seems to be something related with Orbiter version (vs interaction with graphics settings? or installed C++ libraries?, more tests needed).
Franz, in your case, it may be better to do as DaveS / C3PO suggested: when possible, please verify / apply a dummy texture to the MFD rectangles and confirm if you are seeing (or not) that texture when inside the VC. Then we can run a series of additional tests to hunt for other possible causes that may prevent active MFD from being seen
Cheers,
António Maia