Changeset 3291
- Timestamp:
- 01/23/09 18:33:15 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/MainApp.vcproj
r3290 r3291 155 155 IgnoreAllDefaultLibraries="false" 156 156 IgnoreDefaultLibraryNames="LIBCMT" 157 GenerateDebugInformation=" true"157 GenerateDebugInformation="false" 158 158 SubSystem="1" 159 159 LargeAddressAware="2" -
GTP/trunk/App/Demos/Vis/FriendlyCulling/default.env
r3290 r3291 13 13 #filename=mypompeii 14 14 #bvhname=mypompeii 15 #filename=pompeii/pompeii_full15 filename=pompeii/pompeii_full 16 16 #filename=pompeii/pompeii_part 17 filename=city18 bvhname=city17 #filename=city 18 #bvhname=city 19 19 useLODs=1 20 20 # shadow map size … … 75 75 76 76 # initial camera position 77 camPosition=483.398f 242.364f 186.078f77 #camPosition=483.398f 242.364f 186.078f 78 78 # pompeii view point 79 #camPosition=1300.0f -2500.0f 10.0f79 camPosition=1300.0f -2500.0f 10.0f 80 80 # pompeii problematic 81 81 #camPosition=627.003 -1725.33 25.2 -
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.