GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


birdseye view by daveyand
1
 
cameraArray[cam].view.x = tree[cam-1]->branches[0].orig.x;
        cameraArray[cam].view.y = tree[cam-1]->branches[0].orig.y;    
        cameraArray[cam].view.z = tree[cam-1]->branches[0].orig.z;
    
        cameraArray[cam].pos.x = tree[cam-1]->branches[0].orig.x;
        cameraArray[cam].pos.y = tree[cam-1]->branches[0].orig.y + 1000;
        cameraArray[cam].pos.z = 0;//tree[cam-1]->branches[0].orig.z;


Where pos should be above the view, if its less that 1000 then i get a weird angle and its not just above although i thought it should be