- Timestamp:
- 10/27/08 03:36:55 (16 years ago)
- 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 740 740 741 741 const unsigned int bufferSize = 8 * (int)nodes.size(); 742 743 742 if (!mVertices) mVertices = new Vector3[bufferSize]; 744 743 … … 761 760 // set the vertex pointer to the vertex buffer 762 761 glVertexPointer(3, GL_FLOAT, 0, (char *)NULL); 763 764 762 state->SetCurrentVboId(mVboId); 765 763 } … … 768 766 bufferSize * sizeof(Vector3), 769 767 mVertices); 770 771 glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);772 768 } 773 769 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3074 r3075 462 462 buddha->GetTransform()->SetMatrix(transl); 463 463 464 /*for (int i = 0; i < 10; ++ i)464 for (int i = 0; i < 10; ++ i) 465 465 { 466 466 SceneEntity *ent = new SceneEntity(*buddha); … … 477 477 ent->SetTransform(transform); 478 478 dynamicObjects.push_back(ent); 479 } */479 } 480 480 481 481 … … 869 869 { 870 870 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); 875 875 876 876 Matrix4x4 mat = TranslationMatrix(offs);
Note: See TracChangeset
for help on using the changeset viewer.