Ok. We have a VC got the mfd screens, and buttons labeled and working:thumbup:.
This is a 3d vc
Next obstacle is we need to draw green bars on the VC to show thrust level, fuel amount,.......
So I look at the Shuttle A Vc code. But even though we have the length set no rectangle is shown.
On the VC mesh the center part is textured with TEX_TESTVC_ENDURANCEVC2A
here is what the mesh looks like.
and what it looks like in flight
As you can see no bar.
---------- Post added 04-27-16 at 05:24 AM ---------- Previous post was 04-26-16 at 04:11 PM ----------
Ok the shuttle A doesn't use a 3d VC. That is what we are are building.
So that center panel I guess is a surface with a textured applied.
Not sure what to do next. I think that surface need to be defined?
This is a 3d vc
Next obstacle is we need to draw green bars on the VC to show thrust level, fuel amount,.......
So I look at the Shuttle A Vc code. But even though we have the length set no rectangle is shown.
On the VC mesh the center part is textured with TEX_TESTVC_ENDURANCEVC2A
here is what the mesh looks like.
and what it looks like in flight
As you can see no bar.
Code:
void TESTVC::clbkPostStep(double simt, double simdt, double mjd)
{
UpdateCentralStatusMonitor();
}
void TESTVC::UpdateCentralStatusMonitor()
{
RedrawPanel_Fuelstatus();
}
void TESTVC::RedrawPanel_Fuelstatus()
{
SURFHANDLE const tex1 = oapiGetTextureHandle(meshhg_VC, TEX_TESTVC_ENDURANCEVC2A);
HDC const hDC = oapiGetDC(tex1);
float const m = 55.; //GetThrusterLevel(th_main[0]);
if (m > 0) {
float const level = (m);
// Draws an filled rectangle
SelectObject(hDC, g_Param.hBrush[1]);//green box
Rectangle(hDC, 55, 15, 55 + (int)(level * 25.0), 38);
}
}
---------- Post added 04-27-16 at 05:24 AM ---------- Previous post was 04-26-16 at 04:11 PM ----------
Ok the shuttle A doesn't use a 3d VC. That is what we are are building.
So that center panel I guess is a surface with a textured applied.
Not sure what to do next. I think that surface need to be defined?
Last edited: