Ignore:
Timestamp:
Apr 27, 2012, 8:04:48 PM (9 years ago)
Author:
sam
Message:

orbital: make better use of the camera.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/orbital/orbital.cpp

    r1301 r1302  
    3333    m.SendCommand("t0,0,-60,fl");
    3434
    35     m.SendCommand("sc1,0,1,1,afcb10,10,10,2,rx45,rz45");
     35    m.SendCommand("sc1,0,1,1,afcb10,10,10,1,rx45,rz45");
    3636    m.SendCommand("t-20,-20,0,fl");
    3737
     
    6464
    6565    m_particlesystem = new ParticleSystem();
    66     m_camera = new Camera(vec3(0, 0, -4),
    67                           vec3(0, 1, 0),
    68                           vec3(0, 2, 0));
     66    m_camera = new Camera(vec3(0, 150, 200),
     67                          vec3(0, 0, 0),
     68                          vec3(0, 1, 0));
    6969
    7070    m_angle = 0;
     
    8484    mat4 anim = mat4::rotate(m_angle, vec3(0, 1, 0))
    8585              * mat4::rotate(m_angle * 0.25f, vec3(0, 0, 1));
    86     mat4 model = mat4::translate(vec3(0, 0, -4.5))
    87                * mat4::scale(vec3(0.025));
     86    mat4 model = mat4::translate(vec3(0));
    8887
    8988    m_modelview = m_camera->GetViewMatrix() * model * anim;
Note: See TracChangeset for help on using the changeset viewer.