- Timestamp:
- 08/28/08 09:12:34 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/Readme.txt
r2862 r2878 85 85 DevIL for texture loading / unloading 86 86 glfont2 (http://students.cs.byu.edu/~bfish/glfont2.php) for the antialiased fonts of the HUD. Thanks to the author Brad Fish. 87 The RenderTexture library. Thanks to the author Mark J. Harris.88 87 89 88 Thanks also to Alexander Kusternig for providing me his code for the SSAO shader. -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/CHCPlusPlusTraverser.cpp
r2864 r2878 104 104 } 105 105 106 if (!resultAvailable) 107 ++ waitedForQueries; 108 ++ returnedQueries; 109 106 //++ returnedQueries; if (!resultAvailable) ++ waitedForQueries; 107 110 108 OcclusionQuery *query = mQueryQueue.front(); 111 109 mQueryQueue.pop(); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/FrameBufferObject.cpp
r2867 r2878 127 127 128 128 129 ColorBufferObject::~ColorBufferObject() 130 { 131 glDeleteRenderbuffersEXT(1, &mId); 132 glDeleteTextures(1, &mTexId); 133 } 134 135 129 136 FrameBufferObject::FrameBufferObject(int w, int h, DEPTH_FORMAT d, bool useDepthTex) 130 137 : mWidth(w), mHeight(h), mDepthTexId(0) … … 187 194 188 195 196 FrameBufferObject::~FrameBufferObject() 197 { 198 glDeleteFramebuffersEXT(1, &mId); 199 glDeleteRenderbuffersEXT(1, &mDepthId); 200 201 if (mDepthTexId) glDeleteTextures(1, &mDepthTexId); 202 203 CLEAR_CONTAINER(mColorBuffers); 204 } 205 206 189 207 int FrameBufferObject::AddColorBuffer(ColorBufferObject::FORMAT col, 190 208 ColorBufferObject::WRAP_TYPE wrapType, -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/FrameBufferObject.h
r2877 r2878 27 27 int attachment_idx); 28 28 29 ~ColorBufferObject(); 30 29 31 unsigned int GetTexture() const {return mTexId;} 30 32 … … 47 49 */ 48 50 FrameBufferObject(int w, int h, DEPTH_FORMAT d, bool useDepthTex = false); 51 52 ~FrameBufferObject(); 49 53 /** Creates and adds a color buffer to the current frame buffer object. 50 54 Returns the index that allows to retrieve the color buffer object. -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneQuery.cpp
r2877 r2878 189 189 GrabDepthBuffer(mDepth, fbo->GetDepthTex()); 190 190 191 ExportDepthBuffer(mDepth); 192 PrintGLerror("grab"); 191 //ExportDepthBuffer(mDepth); PrintGLerror("grab"); 193 192 194 193 DEL_PTR(fbo); -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/chcdemo.cpp
r2877 r2878 539 539 // this fbo basicly stores the scene information we get from standard rendering of a frame 540 540 // we store colors, normals, positions (for the ssao) 541 fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_ 32);541 fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_24); 542 542 543 543 // the diffuse color buffer … … 871 871 872 872 glEnable(GL_MULTISAMPLE_ARB); 873 //glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB);874 875 873 fbo->Release(); 876 874 … … 890 888 891 889 glEnable(GL_MULTISAMPLE_ARB); 892 //glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB);893 894 890 fbo->Release(); 895 891 … … 912 908 case RenderState::DEFERRED: 913 909 914 // multisampling not working with deferred shading 915 //glDisable(GL_SAMPLE_ALPHA_TO_COVERAGE_ARB); 910 // multisampling does not work with deferred shading 916 911 glDisable(GL_MULTISAMPLE_ARB); 917 912
Note: See TracChangeset
for help on using the changeset viewer.