I'm having issues with the HUD in my lunar lander's VC.
The mesh group and hudspec are properly defined but i'm not getting any of the normal HUD data.
Observe...
vs. the same exact view in glass cockpit.
The docking gates, target box, and velocity piper should all be visible but they are not.
Camera and hud specs are as follows...
in clbkLoadVC ()'s "switch (id)" statement...
"VCHUDSPEC hud_COAS" is a class member, "ofs" is the position of the VC mesh within the vessel. Camera and HUD position are as follows...
The mesh group and hudspec are properly defined but i'm not getting any of the normal HUD data.
Observe...
vs. the same exact view in glass cockpit.
The docking gates, target box, and velocity piper should all be visible but they are not.
Camera and hud specs are as follows...
in clbkLoadVC ()'s "switch (id)" statement...
Code:
case 2: // COAS Reticle
SetCameraOffset (ASC_VC_CAMERAPOS[2] + ofs); // Camera position
SetCameraDefaultDirection (Y_AXIS); // Camera direction
SetCameraRotationRange ( 0, 0, 0, 0); // I want a fixed camera while in overhead view
oapiCameraSetCockpitDir ( 0, 0); // Don't forget to center the camera
oapiVCSetNeighbours ( 0, 0, 0, 0); // Set neighbors (any change returns us to default "0" position)
// Initialise HUD
hud_COAS.nmesh = meshVC;
hud_COAS.ngroup = GRP_VC_CoasHUDPlane;
hud_COAS.hudcnt = ASC_VC_HUDPOS + ofs;
hud_COAS.size = 0.05;
oapiVCRegisterHUD (&hud_COAS);
break;
"VCHUDSPEC hud_COAS" is a class member, "ofs" is the position of the VC mesh within the vessel. Camera and HUD position are as follows...
Code:
const VECTOR3 ASC_VC_CAMERAPOS[3] = {{-0.50, 0.78, 1.19}, { 0.50, 0.78, 1.19}, [COLOR="red"]{-0.59, 0.78, 1.04}[/COLOR]};
const VECTOR3 ASC_VC_HUDPOS = [COLOR="red"]{-0.59, 1.035, 1.04}[/COLOR];
Last edited: