I have run into a odd meshing issue. Not sure why this does it so I can fix it.
But I have a vessel that is Ummu capable. When the number of crew is 1 it shows a mesh of the Ummu inside.
Ok. No problem. But if I eva and get back in both the main and VC mesh are seen.
bool POD2001::clbkLoadVC(int id)
{
//VCHUDSPEC hud;
VCMFDSPEC mfd;
if((id>=0)&&(id<1)){
if(id==0){
SetCameraDefaultDirection(_V(0,0,1));
SetCameraOffset(_V(0,.6,-.6));
SetCameraShiftRange(_V(0,0,0.1),_V(-0.2,0,0),_V(0.2,0,0));
oapiVCSetNeighbours(-1,-1,-1,-1);
//hud.nmesh=1;
//hud.ngroup=116;
//hud.hudcnt=_V(0, 0, 0);
//hud.size=.25;
//oapiVCRegisterHUD(&hud);
mfd.ngroup=118;
mfd.nmesh=1;
oapiVCRegisterMFD(0,&mfd);
mfd.ngroup=119;
mfd.nmesh=1;
oapiVCRegisterMFD(1,&mfd);
}
}
return 1;
}
In the VC I just have the MFD's seen not the HUD
But I have a vessel that is Ummu capable. When the number of crew is 1 it shows a mesh of the Ummu inside.
Ok. No problem. But if I eva and get back in both the main and VC mesh are seen.
Code:
SetMeshVisibilityMode (AddMesh (oapiLoadMeshGlobal ("2001POD2a")), MESHVIS_ALWAYS ); //Main ship mesh
MAINVC = AddMesh (oapiLoadMeshGlobal ("2001pod2avc"));
SetMeshVisibilityMode (MAINVC, MESHVIS_VC);
BUG1 = AddMesh (oapiLoadMeshGlobal ("PODUMMU"));
SetMeshVisibilityMode (BUG1, MESHVIS_NEVER);
BUG2 = AddMesh (oapiLoadMeshGlobal ("PODUMMU1"));
SetMeshVisibilityMode (BUG2, MESHVIS_NEVER);
bool POD2001::clbkLoadVC(int id)
{
//VCHUDSPEC hud;
VCMFDSPEC mfd;
if((id>=0)&&(id<1)){
if(id==0){
SetCameraDefaultDirection(_V(0,0,1));
SetCameraOffset(_V(0,.6,-.6));
SetCameraShiftRange(_V(0,0,0.1),_V(-0.2,0,0),_V(0.2,0,0));
oapiVCSetNeighbours(-1,-1,-1,-1);
//hud.nmesh=1;
//hud.ngroup=116;
//hud.hudcnt=_V(0, 0, 0);
//hud.size=.25;
//oapiVCRegisterHUD(&hud);
mfd.ngroup=118;
mfd.nmesh=1;
oapiVCRegisterMFD(0,&mfd);
mfd.ngroup=119;
mfd.nmesh=1;
oapiVCRegisterMFD(1,&mfd);
}
}
return 1;
}
In the VC I just have the MFD's seen not the HUD