Ok. This is got me confused.
A simple VC. 3 mesh groups (2mfds and 1 hud)
But for some reason the left mfd is drawn on the hud screen also.
tells which mesh group to assign for hud and mfd
tells the mesh #1 is the VC mesh
turn on vc
A simple VC. 3 mesh groups (2mfds and 1 hud)
But for some reason the left mfd is drawn on the hud screen also.
tells which mesh group to assign for hud and mfd
Code:
mfds_left.ngroup = 0;
mfds_right.ngroup = 2;
huds.ngroup = 1;
huds.size = 0.25;
tells the mesh #1 is the VC mesh
Code:
SetMeshVisibilityMode(AddMesh(cmMesh, &ofs), MESHVIS_EXTERNAL | MESHVIS_VC); //mesh number 0
SetMeshVisibilityMode(AddMesh(vcMesh, &ofs), MESHVIS_EXTERNAL | MESHVIS_VC); //mesh number 1
mfds_left.nmesh = 1;
mfds_right.nmesh = 1;
huds.nmesh = 1;
huds.hudcnt = ofs_hud;
Code:
bool TALON::clbkLoadVC(int id)
{
SetCameraDefaultDirection(_V(0, -0.25, 0.97)); // forward
oapiVCRegisterHUD(&huds);
oapiVCRegisterMFD(MFD_LEFT, &mfds_left);
oapiVCRegisterMFD(MFD_RIGHT, &mfds_right);
// oapiVCRegisterMFD (MFD_LEFT, &mfds_co); // was commented
return true;
}