Changeset 2351 for trunk


Ignore:
Timestamp:
Feb 5, 2013, 12:19:37 AM (7 years ago)
Author:
touky
Message:

BtPhysTest : added lights

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/BtPhysTest.cpp

    r2241 r2351  
    8686    Ticker::Ref(m_simulation);
    8787
     88    /* Add a white directional light */
     89    m_light1 = new Light();
     90    m_light1->SetPosition(vec4(0.2f, 0.2f, 0.f, 0.f));
     91    m_light1->SetColor(vec4(0.5f, 0.5f, 0.5f, 1.f));
     92    Ticker::Ref(m_light1);
     93
     94    /* Add an orangeish point light */
     95    m_light2 = new Light();
     96    m_light2->SetPosition(vec4(-15.f, 15.f, 15.f, 1.f));
     97    m_light2->SetColor(vec4(0.4f, 0.3f, 0.2f, 1.f));
     98    Ticker::Ref(m_light2);
     99
    88100    float offset = 29.5f;
    89101    vec3 pos_offset = vec3(.0f, 30.f, .0f);
     
    423435{
    424436    Ticker::Unref(m_camera);
     437    Ticker::Unref(m_light1);
     438    Ticker::Unref(m_light2);
    425439
    426440    while (m_constraint_list.Count())
  • trunk/test/PhysicObject.h

    r2216 r2351  
    111111        Array<char const *> MeshRand;
    112112
    113         //MeshRand << "[sc#add afcb2 2 2 -.1]";
    114         //MeshRand << "[sc#dad afcb2 2 2 -.1]";
    115         //MeshRand << "[sc#dda afcb2 2 2 -.1]";
    116         //MeshRand << "[sc#daa afcb2 2 2 -.1]";
    117         //MeshRand << "[sc#ada afcb2 2 2 -.1]";
    118         //MeshRand << "[sc#aad afcb2 2 2 -.1]";
    119         MeshRand << "[sc#add afcb1.7 1.7 1.7 0][sc#000 tsw afcb1.9 1.9 1.9 0 sx-1 sy-1 sz-1]";
    120         MeshRand << "[sc#dad afcb1.7 1.7 1.7 0][sc#000 tsw afcb1.9 1.9 1.9 0 sx-1 sy-1 sz-1]";
    121         MeshRand << "[sc#dda afcb1.7 1.7 1.7 0][sc#000 tsw afcb1.9 1.9 1.9 0 sx-1 sy-1 sz-1]";
    122         MeshRand << "[sc#daa afcb1.7 1.7 1.7 0][sc#000 tsw afcb1.9 1.9 1.9 0 sx-1 sy-1 sz-1]";
    123         MeshRand << "[sc#ada afcb1.7 1.7 1.7 0][sc#000 tsw afcb1.9 1.9 1.9 0 sx-1 sy-1 sz-1]";
    124         MeshRand << "[sc#aad afcb1.7 1.7 1.7 0][sc#000 tsw afcb1.9 1.9 1.9 0 sx-1 sy-1 sz-1]";
     113        MeshRand << "[sc#add afcb1.7 1.7 1.7 0.4][sc#000 tsw afcb1.9 1.9 1.9 0.4 sx-1 sy-1 sz-1]";
     114        MeshRand << "[sc#dad afcb1.7 1.7 1.7 0.4][sc#000 tsw afcb1.9 1.9 1.9 0.4 sx-1 sy-1 sz-1]";
     115        MeshRand << "[sc#dda afcb1.7 1.7 1.7 0.4][sc#000 tsw afcb1.9 1.9 1.9 0.4 sx-1 sy-1 sz-1]";
     116        MeshRand << "[sc#daa afcb1.7 1.7 1.7 0.4][sc#000 tsw afcb1.9 1.9 1.9 0.4 sx-1 sy-1 sz-1]";
     117        MeshRand << "[sc#ada afcb1.7 1.7 1.7 0.4][sc#000 tsw afcb1.9 1.9 1.9 0.4 sx-1 sy-1 sz-1]";
     118        MeshRand << "[sc#aad afcb1.7 1.7 1.7 0.4][sc#000 tsw afcb1.9 1.9 1.9 0.4 sx-1 sy-1 sz-1]";
    125119
    126120        int SphereLimit = MeshRand.Count();
Note: See TracChangeset for help on using the changeset viewer.