Changeset 3075


Ignore:
Timestamp:
10/27/08 03:36:55 (16 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp

    r3074 r3075  
    740740 
    741741        const unsigned int bufferSize = 8 * (int)nodes.size(); 
    742          
    743742        if (!mVertices) mVertices = new Vector3[bufferSize]; 
    744743         
     
    761760                // set the vertex pointer to the vertex buffer 
    762761                glVertexPointer(3, GL_FLOAT, 0, (char *)NULL);   
    763  
    764762                state->SetCurrentVboId(mVboId); 
    765763        } 
     
    768766                                           bufferSize * sizeof(Vector3),  
    769767                                           mVertices); 
    770  
    771         glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0); 
    772768} 
    773769 
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp

    r3074 r3075  
    462462        buddha->GetTransform()->SetMatrix(transl); 
    463463 
    464         /*for (int i = 0; i < 10; ++ i) 
     464        for (int i = 0; i < 10; ++ i) 
    465465        { 
    466466                SceneEntity *ent = new SceneEntity(*buddha); 
     
    477477                ent->SetTransform(transform); 
    478478                dynamicObjects.push_back(ent); 
    479         }*/ 
     479        } 
    480480 
    481481 
     
    869869{        
    870870        Vector3 offs = Vector3::ZERO(); 
    871         //offs.x = RandomValue(-.1f, .1f); 
    872         //offs.y = RandomValue(-.1f, .1f); 
    873         offs.x = RandomValue(.0f, .01f); 
    874         offs.y = RandomValue(.0f, .01f); 
     871        offs.x = RandomValue(-.1f, .1f); 
     872        offs.y = RandomValue(-.1f, .1f); 
     873        //offs.x = RandomValue(.0f, .01f); 
     874        //offs.y = RandomValue(.0f, .01f); 
    875875 
    876876        Matrix4x4 mat = TranslationMatrix(offs); 
Note: See TracChangeset for help on using the changeset viewer.