Hey guys,
can someone tell me how to set up 2 Cameras?
I don't understand how it works the right way.
I have no Cockpit grafics like 2D Panels or a 3D Cockpit.
(Still a looong way to understand how 2D/3D Panels are working)
So, for the moment I just want a 2nd camera position inside my vessel.
Like one cam outside my vessel (0,10,10) and a 2nd one inside it (0,0,0).
Which functions do i need to define to use my Stuff coded in ConsumeBufferedKey?
For simple testing, i defined 2 cameras in ConsumeBufferedKey
And i definded a standard camera (i think it is?) like this:
BUT nothing works and i canot figure out why. I already read many,many posts here, but none gave me the answer i need.
So maby someone could give me a short tutorial or some instructions on how to set up a very basic camera? I'm now trying on it since 4 or 5 days, getting a bit frustrated by it....
can someone tell me how to set up 2 Cameras?
I don't understand how it works the right way.
I have no Cockpit grafics like 2D Panels or a 3D Cockpit.
(Still a looong way to understand how 2D/3D Panels are working)
So, for the moment I just want a 2nd camera position inside my vessel.
Like one cam outside my vessel (0,10,10) and a 2nd one inside it (0,0,0).
Which functions do i need to define to use my Stuff coded in ConsumeBufferedKey?
For simple testing, i defined 2 cameras in ConsumeBufferedKey
Code:
if (key == OAPI_KEY_V)
{
CAM = CAM + 1;
if (CAM > 2)
{
CAM = 1;
}
if (CAM == 1)
{
SetCameraOffset (_V(0,10,10));
SetCameraDefaultDirection(_V(0,0,1));
oapiCameraSetCockpitDir (0,0);
}
if (CAM == 2)
{
SetCameraOffset (_V(0,0,0));
SetCameraDefaultDirection(_V(0,0,1));
oapiCameraSetCockpitDir (0,0);
}
}
And i definded a standard camera (i think it is?) like this:
Code:
bool MyVessel::clbkLoadGenericCockpit ()
{
SetCameraOffset (_V(0,0,10));
SetCameraDefaultDirection(_V(0,0,1));
return true;
}
BUT nothing works and i canot figure out why. I already read many,many posts here, but none gave me the answer i need.
So maby someone could give me a short tutorial or some instructions on how to set up a very basic camera? I'm now trying on it since 4 or 5 days, getting a bit frustrated by it....
