- Timestamp:
- 07/17/08 21:40:33 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/default.env
r2838 r2845 4 4 assumedVisibleFrames=10 5 5 maxBatchSize=50 6 trianglesPerVirtualLeaf= 5006 trianglesPerVirtualLeaf=300 7 7 keyForwardMotion=20.0f 8 8 keyRotation=1.5f … … 17 17 expFactor=0.1f 18 18 #numSsaoSamples=8 19 #0699/11384251 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderQueue.cpp
r2844 r2845 58 58 return false; 59 59 60 if (mat->IsCullFaceEnabled() != mBuckets[idx]->m AlphaTestEnabled)60 if (mat->IsCullFaceEnabled() != mBuckets[idx]->mCullFaceEnabled) 61 61 return false; 62 62 … … 140 140 } 141 141 142 if (bucket->mMinDistance < -0.5f)142 if (bucket->mMinDistance < .0f) 143 143 { 144 144 // assume that the incoming nodes are ordered by distance -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderState.cpp
r2844 r2845 134 134 mCurrentVboId = -1; 135 135 136 SetState(false, false, false);136 SetState(false, false, true); 137 137 SetState(RENDER); 138 138 } -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/ResourceManager.cpp
r2844 r2845 164 164 str.read(reinterpret_cast<char *>(&mat->mAlphaTestEnabled), sizeof(bool)); 165 165 166 //str.read(reinterpret_cast<char *>(&mat->mCullFaceEnabled), sizeof(bool));166 str.read(reinterpret_cast<char *>(&mat->mCullFaceEnabled), sizeof(bool)); 167 167 168 168 // material -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Texture.cpp
r2825 r2845 66 66 67 67 glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 68 68 69 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 69 70 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR); 71 72 //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 73 //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); 74 75 //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); 76 //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); 70 77 71 78 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); 72 79 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); 73 80 74 glTexImage2D(GL_ RGBA, 0, GL_RGBA, mWidth, mHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, mImage);81 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, mWidth, mHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, mImage); 75 82 gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, mWidth, mHeight, GL_RGBA, GL_UNSIGNED_BYTE, mImage); 76 83 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2844 r2845 859 859 glCullFace(GL_BACK); 860 860 glEnable(GL_CULL_FACE); 861 //glDisable(GL_CULL_FACE);861 glDisable(GL_CULL_FACE); 862 862 glDisable(GL_TEXTURE_2D); 863 863
Note: See TracChangeset
for help on using the changeset viewer.