well I've narrowed it down a bit, removing the code that creates the player and camera, and simply adding a camera to the map i get a normal view of the skybox... so its definitely something in my code
maybe someone can tell me if they see anything i may be doing wrong, here is the code that spawns the camera...
struct GamePlayer {
Camera* PLayerCam;
Model* CameraMount;
Model* PlayerModel;
int PlayerAnimId;
int currentAngle;
};
GamePlayer CreateLocalPlayer2(Vec3 pos) {
GamePlayer gamer;
Model* Mydude = Model::Load("Models/Characters/MyDude/MyDude.mdl");
Mydude->SetPhysicsMode(Entity::CharacterPhysics);
Mydude->SetCollisionType(COLLISION_CHARACTER);
Mydude->SetMass(1);
int animationsequence = Mydude->LoadAnimation("Models/Characters/MyDude/MyDude.mdl");
Vec3 v = pos;
Mydude->SetPosition(v.x, v.y, v.z);
Model* mount = Model::Create(Mydude);
Camera* MyMainCam = Camera::Create(mount);
MyMainCam->SetRotation(55, 180, 0);
MyMainCam->SetPosition(0, 20, 5);
gamer.PlayerModel = Mydude;
gamer.CameraMount = mount;
gamer.PlayerAnimId = animationsequence;
gamer.PLayerCam = MyMainCam;
return gamer;
This image is with a manually added camera (in the editor), the second is when from loading the camera in code