Changeset 3291 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Timestamp:
- 01/23/09 18:33:15 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
r3274 r3291 675 675 // collect bvh nodes 676 676 BvhNodeContainer nodes; 677 // also add root 678 nodes.push_back(mRoot); 677 679 // first collect dynamic nodes so we make sure that they are in the beginning 678 680 CollectNodes(mDynamicRoot, nodes); … … 680 682 CollectNodes(mStaticRoot, nodes); 681 683 //CollectNodes(mRoot, nodes); 682 // also add root 683 nodes.push_back(mRoot); 684 684 685 685 686 cout << "creating new indices" << endl; … … 748 749 // collect all nodes 749 750 BvhNodeContainer nodes; 751 // also add root 752 nodes.push_back(mRoot); 750 753 //CollectNodes(mRoot, nodes); 751 754 // first collect dynamic nodes so we make sure that they are in the beginning … … 753 756 // then collect static nodes 754 757 CollectNodes(mStaticRoot, nodes); 755 // also add root756 nodes.push_back(mRoot);757 758 758 759 // assign ids to all nodes of the hierarchy … … 773 774 774 775 nodes.reserve(GetNumNodes()); 776 // also add root 777 nodes.push_back(mRoot); 775 778 // first collect dynamic nodes so we make sure that they are in the beginning 776 779 CollectNodes(mDynamicRoot, nodes); 777 780 // then collect static nodes 778 781 CollectNodes(mStaticRoot, nodes); 779 // also add root780 nodes.push_back(mRoot);781 782 782 783 const unsigned int bufferSize = 8 * (int)nodes.size(); … … 828 829 nodes.clear(); 829 830 830 CollectNodes(mDynamicRoot, nodes);831 831 // also add root 832 832 nodes.push_back(mRoot); 833 834 CollectNodes(mDynamicRoot, nodes); 835 833 836 834 837 const unsigned int bufferSize = 8 * (int)nodes.size(); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SkyPreetham.cpp
r3288 r3291 61 61 } 62 62 else 63 { 63 64 cerr << "sky program failed to load" << endl; 65 } 64 66 65 67 mSkyFragProgram = … … 294 296 ambient *= 8e-6f; 295 297 else 298 { 296 299 ambient *= 1e-1f; 297 300 298 // slightly too blueish => scale 299 ambient.x *= 1.3f; 300 ambient.y *= 1.1f; 301 ambient.z = max(max(ambient.z, ambient.x), ambient.y); 301 // slightly too blueish with tone mapping => scale 302 ambient.x *= 1.3f; 303 ambient.y *= 1.1f; 304 ambient.z = max(max(ambient.z, ambient.x), ambient.y); 305 } 306 302 307 303 308 // simulate the sun intensity by modulating the ambient term. -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r3290 r3291 616 616 //LoadModel("sibenik.dem", dynamicObjects); 617 617 618 if ( 0) LoadPompeiiFloor();619 620 #if 1618 if (1) LoadPompeiiFloor(); 619 620 #if 0 621 621 const Vector3 sceneCenter(470.398f, 240.364f, 181.7f); 622 622 //const Vector3 sceneCenter(470.398f, 240.364f, 180.3); … … 630 630 for (int i = 0; i < 10; ++ i) 631 631 { 632 cout << "here3" << endl;633 632 SceneEntity *ent = new SceneEntity(*buddha); 634 633 resourceManager->AddSceneEntity(ent); … … 1120 1119 void MainLoop() 1121 1120 { 1122 if ( 0)//buddha)1121 if (buddha) 1123 1122 { 1124 1123 Matrix4x4 oldTrafo = buddha->GetTransform()->GetMatrix(); … … 1146 1145 1147 1146 //const float rotAngle = M_PI * 1e-3f; 1148 const float rotAngle = 1.0f * M_PI / 180.0f;1147 const float rotAngle = 0.3f * M_PI / 180.0f; 1149 1148 1150 1149 Matrix4x4 rotMatrix = RotationZMatrix(rotAngle); 1151 dynamicObjects[ 2]->GetTransform()->MultMatrix(rotMatrix);1152 1153 motionPath->Move(0.0 1f);1150 dynamicObjects[1]->GetTransform()->MultMatrix(rotMatrix); 1151 1152 motionPath->Move(0.005f); 1154 1153 } 1155 1154 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/ssao.cg
r3284 r3291 246 246 //-- (affects performance for some reason!) 247 247 248 if ( 1)//convergence < 700)248 if (convergence < 700) 249 249 { 250 250 float2 mynoise = tex2Dlod(noiseTex, float4(IN.texCoord * 4.0f, 0, 0)).xy;
Note: See TracChangeset
for help on using the changeset viewer.