I got more issues. Hoping
@BrianJ or
@Max-Q can sort these out. First one. Lights. I have the setting for 8 lights in d3d9 and in the cfg
I wish we could have more than 8. But in the first image there are 3 lights on. 2 on the Alpaca and then 1 eva.
But if I add another eva guy and turn his lights on the front light of the alpaca goes away?
Alpaca light code
docking_lightfront = (SpotLight*)AddSpotLight(_V(0, 1.4, 2.5), _V(0, -1, 1), 5, 1e-2, 0, 1e-2, RAD * 5, RAD * 10, col_white, col_white, col_a);
docking_lightaft = (SpotLight*)AddSpotLight(_V(0, 1, -2.2769), _V(0, -1, -1), 5, 1e-2, 0, 1e-1, RAD * 5, RAD * 10, col_white, col_white, col_a);
2nd issue I want a crew member to be seen in external and cockpit NOT VC. They get in the way of the mfd views.
SpiderLEM::SpiderLEM (OBJHANDLE hVessel, int flightmodel)
: VESSEL4 (hVessel, flightmodel)/*, autopilot ()*/
....
mh_descent = oapiLoadMeshGlobal ("NEWALPACA\\NEWALPACAMAIN");
mh_VC = oapiLoadMeshGlobal("NEWALPACA\\NEWALPACAVC");
mh_cover = oapiLoadMeshGlobal("NEWALPACA\\NEWALPACAcover");
CREW1mesh = oapiLoadMeshGlobal("NEWALPACA\\CDRCREWMESH");
void SpiderLEM::ApplyOrbitalConfig (void)
....
SetMeshVisibilityMode (mesh_DS, MESHVIS_ALWAYS); // The descent stage doesn't interfere w/ the cockpit view so it is set to be always visible
SetMeshVisibilityMode(mesh_AS, MESHVIS_VC | MESHVIS_ALWAYS);
void SpiderLEM::clbkSetClassCaps (FILEHANDLE cfg)
....
mesh_DS = AddMesh(mh_descent); // Load descent stage mesh and offset it to avoid overlap
SetMeshVisibilityMode (mesh_DS, MESHVIS_ALWAYS); // The descent stage doesn't interfere w/ the cockpit view so it is set to be always visible
//mesh_DS = AddMesh(mh_descentclose, &LEM_DescentOFFSET); // Load descent stage mesh and offset it to avoid overlap
mesh_AS = AddMesh(mh_VC); // Load descent stage mesh and offset it to avoid overlap
SetMeshVisibilityMode(mesh_AS, MESHVIS_VC); // The descent stage doesn't interfere w/ the cockpit view so it is set to be always visible
mesh_cover = AddMesh(mh_cover); // Load descent stage mesh and offset it to avoid overlap
SetMeshVisibilityMode(mesh_cover, MESHVIS_VC); // The descent stage doesn't interfere w/ the cockpit view so it is set to be always visible
mesh_CREW1 = AddMesh(CREW1mesh, &_V(-0.75, 0.142, 1));
[/ICODE]
and in
then if I set the mesh
SetMeshVisibilityMode(mesh_CREW1, MESHVIS_VC);
this works. But if I set for MESHVIS-COCKPIT|MESH_EXTERNAL only It shows all the time