Changeset 2806 for GTP/trunk/App/Demos/Vis/FriendlyCulling/Readme.txt
- Timestamp:
- 06/29/08 02:31:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/Readme.txt
r2789 r2806 1 HARDWARE OCCLUSION QUERIES MADE USEFUL 1 GAME ENGINE FRIENDLY OCCLUSION CULLING 2 2 ====================================== 3 3 … … 37 37 SPACE key (view-frustum culling, hierarchical stop and wait, coherent hierarchical culling, chc++). 38 38 39 A bird eye view visualization of the culling algorithm from can be shown by pressing ' 1' on the keyboard.40 39 A bird eye view visualization of the culling algorithm from can be shown by pressing 'F2' on the keyboard. 40 Pressing 'F8' switches between using / not using the glFinish command, which causes slightly slower frame rates but brings more reliable fps measurements. 41 41 42 42 ---------- … … 59 59 ------------- 60 60 61 We use a simple OpenGL based engine which was designed to be as simple as possible while providing the necessary feature list to simulate the behaviour of full-fledged game engines like Ogre3D. The engine supports simple material sorting mainly based on the texture size, avoiding the mix of differently sized textures, which according to various sources induces one of the costliest state change. We demonstrate the integration of the culling algorithm into the engine, and show how occlusion cullig and state sorting are possible within one framework, two paradigms that were previously considered to be cancelling out each other ("either you do front-back-sorting or material sorting").61 We use a simple OpenGL based engine which was designed to be as simple as possible while providing the necessary feature list to simulate the behaviour of full-fledged game engines like Ogre3D. The engine supports simple material sorting mainly based on the texture format, avoiding the mix of different texture formats, which according to various sources induces one of the costliest state change. We demonstrate the integration of the culling algorithm into the engine, and show how occlusion cullig and state sorting are possible within one framework, two paradigms that were previously considered to be cancelling out each other ("either you do front-back-sorting or material sorting"). 62 62 63 63 … … 66 66 ---------- 67 67 68 A binary for Win32 and a solution for visual studio 2005 included. The program should work under XP and Windows Vista.68 A binary for Win32 and a solution for visual studio 2005 and 2003 included. The program should work under XP and Windows Vista. 69 69 70 70 … … 77 77 The rendering core of the engine is provided by the class RenderTraverser, which provides front to back scene traversal based on a priority queue. It's subclasses implement the various culling algorithms. The new algorithm is represented by the class CHCPlusPlusTraverser. 78 78 79 The main routine is implemented in chcdemo.cpp. Also it contains the OpenGl setup code, glut stuff, and set s upof the scene hierarchy.79 The main routine is implemented in chcdemo.cpp. Also it contains the OpenGl setup code, glut stuff, and setups of the scene hierarchy. 80 80 81 The project is separated into one section containing supportive code (utils), the traversal algorithms (traversal), and the basic engine classes like Camera, Geometry, Material, or RenderState ( scene).81 The project is separated into one section containing supportive code (utils), the traversal algorithms (traversal), and the basic engine classes like Camera, Geometry, Material, or RenderState (rendering). 82 82 83 83 If you find any problem with the code or have any comments, please feel free to ask us at any time.
Note: See TracChangeset
for help on using the changeset viewer.