Kamerafehler...



  • Ich habe ein problem mit meiner kamera ^^

    D3DXMATRIX MatrixKamera;
    		D3DXMatrixLookAtLH(&MatrixKamera, &Quelle, &Ziel, AUFWAERTSACHSE);
    		Device->SetTransform(D3DTS_VIEW, &MatrixKamera);
    
    		D3DXMATRIX MatrixProjektion;
    		D3DXMatrixPerspectiveFovLH(&MatrixProjektion,
    									   Sichtfeld*deg2radf,
    									   AspectRatio,
    									   NahePlane,
    									   FernePlane);
    		Device->SetTransform(D3DTS_PROJECTION, &MatrixProjektion);
    

    Quelle = [0,10,0]
    Ziel = [0,0,0]
    Aufwärtsachse = [0,1,0]
    sichtfeld= 45
    AspectRatio=Breite/Hoehe
    NahePlane=1
    FernePlane=500

    das graue zeug sind 10X10 kleine rechtecke nebeneinander, meines erachtens sollten die doch als großes rechteck dargestellt werden, und nicht so verzogen wie auf dem bild unten...

    http://spong3bob.sp.funpic.de/kamera.jpg


Anmelden zum Antworten