Changeset 3359 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
- Timestamp:
- 04/17/09 09:09:14 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3358 r3359 646 646 // sibenik positions 647 647 VertexArray positions; 648 //positions.push_back(Vector3(6.07307, 8.20723, 6.7));649 positions.push_back(Vector3(6.07307, 8.20723, 6.62));648 649 /*positions.push_back(Vector3(6.07307, 8.20723, 6.62)); 650 650 positions.push_back(Vector3(-17.1935, 11.1687, 8.8781)); 651 positions.push_back(Vector3(1.50032, 31.1943, 19.1f)); 651 positions.push_back(Vector3(1.50032, 31.1943, 19.1f));*/ 652 653 positions.push_back(Vector3(6.07307, 8.20723, 4.6f)); 654 positions.push_back(Vector3(-17.1935, 11.1687, 6.8f)); 655 positions.push_back(Vector3(1.50032, 31.1943, 17.6f)); 652 656 653 657 #endif … … 671 675 } 672 676 673 const float rotAngle = M_PI / 180.0f; 674 const Matrix4x4 rotMatrix = RotationZMatrix(rotAngle); 677 const float rotAngle = M_PI / 2.0f; 678 const Matrix4x4 rotMatrix = RotationXMatrix(rotAngle); 679 const Matrix4x4 scaleMatrix = ScaleMatrix(14, 14, 14); 680 675 681 // hack: second buddha 676 //dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 677 678 682 dynamicObjects[2]->GetTransform()->MultMatrix(rotMatrix); 683 dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 684 dynamicObjects[0]->GetTransform()->MultMatrix(rotMatrix); 685 dynamicObjects[0]->GetTransform()->MultMatrix(scaleMatrix); 686 dynamicObjects[1]->GetTransform()->MultMatrix(scaleMatrix); 687 dynamicObjects[2]->GetTransform()->MultMatrix(scaleMatrix); 688 689 cout << "dynamic objects: " << (int)dynamicObjects.size() << endl; 690 691 // hack 679 692 resourceManager->mUseNormalMapping = false; 680 693 resourceManager->mUseSpecialColors = false; … … 1146 1159 void MainLoop() 1147 1160 { 1148 if (buddha) 1161 for (size_t i = 0; i < dynamicObjects.size(); ++ i) 1162 dynamicObjects[i]->GetTransform()->InitFrame(); 1163 1164 if (0)//buddha) 1149 1165 { 1150 1166 Matrix4x4 oldTrafo = buddha->GetTransform()->GetMatrix(); … … 1180 1196 dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 1181 1197 1182 const float rotAngle2 = 0. 6f * M_PI / 180.0f;1198 const float rotAngle2 = 0.0033f * M_PI; 1183 1199 1184 1200 Matrix4x4 rotMatrix2 = RotationZMatrix(rotAngle);
Note: See TracChangeset
for help on using the changeset viewer.