Changeset 3125 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 11/13/08 13:14:55 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3123 r3125 472 472 473 473 //LoadModel("fisch.dem", dynamicObjects); 474 /*LoadModel("hbuddha.dem", dynamicObjects);474 LoadModel("hbuddha.dem", dynamicObjects); 475 475 buddha = dynamicObjects.back(); 476 476 … … 497 497 ent->SetTransform(transform); 498 498 dynamicObjects.push_back(ent); 499 } */499 } 500 500 501 501 … … 913 913 void MainLoop() 914 914 { 915 #if 0915 #if 1 916 916 GPUProgramParameters *vtxParams = 917 917 buddha->GetShape(0)->GetMaterial()->GetTechnique(1)->GetVertexProgramParameters(); … … 930 930 if (GetOrCreateSceneQuery()->CalcIntersection(newPos)) 931 931 { 932 Matrix4x4 mat = TranslationMatrix(newPos - ent->GetCenter()); // + Vector3(0, 0, ent->GetBoundingBox().Size(2) * 0.5f));932 Matrix4x4 mat = TranslationMatrix(newPos - ent->GetCenter()); 933 933 ent->GetTransform()->SetMatrix(mat); 934 934 } … … 937 937 Matrix4x4 rotMatrix = RotationZMatrix(M_PI * 1e-3f); 938 938 dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 939 940 941 ///////////////////////// 942 //-- update animations 943 944 motionPath->Move(0.01f); 945 939 946 #endif 940 947 … … 1164 1171 1165 1172 glutSwapBuffers(); 1166 1167 1168 /////////////////////////1169 //-- update animations1170 motionPath->Move(0.01f);1171 1173 } 1172 1174
Note: See TracChangeset
for help on using the changeset viewer.