Changeset 1945 for GTP/trunk/Lib/Vis/Preprocessing
- Timestamp:
- 01/05/07 19:32:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/GlobalLinesRenderer.cpp
r1944 r1945 130 130 { 131 131 // bind pixel shader implementing the front depth buffer functionality 132 //cgGLBindProgram(sCgDepthPeelingProgram);133 //cgGLEnableProfile(sCgFragmentProfile);134 135 132 ApplyDepthPeeling(beam, samples); 136 133 } … … 144 141 145 142 void GlobalLinesRenderer::DrawGeometry() 146 { //glutWireTorus(0.25, 1, 32, 64);147 mRenderer->mUseFalseColors = true;143 { 144 //mRenderer->mUseFalseColors = true; 148 145 ObjectContainer::const_iterator oit, oit_end = mPreprocessor->mObjects.end(); 149 146 150 float r = Random(1.0f);151 float g = Random(1.0f);152 float b = Random(1.0f);153 154 147 Intersectable::NewMail(); 155 148 156 //cout << r << " " << g << " " << b << " ";157 149 for (oit = mPreprocessor->mObjects.begin(); oit != oit_end; ++ oit) 158 150 { 159 glColor3f(r, g, b);160 151 RenderObject(*oit); 161 152 } … … 280 271 midPoint.x, midPoint.y, midPoint.z, 281 272 0, 1, 0); 282 //gluLookAt(0, 0, 3, 0, 0, 0, 0, 1, 0); 283 //glDisable(GL_DEPTH_TEST); 273 284 274 glEnable(GL_DEPTH_TEST); 285 275 } … … 296 286 0, 1, 0); 297 287 298 //glDisable(GL_DEPTH_TEST);299 288 glEnable(GL_DEPTH_TEST); 300 289 glClearColor(0.6, 0.2, 0.2, 1); … … 329 318 glMatrixMode(GL_MODELVIEW); 330 319 glPushMatrix(); 331 { //glutSolidTorus(0.25, 1, 32, 64); 320 { 321 //glutSolidTorus(0.25, 1, 32, 64); 332 322 DrawGeometry(); 333 323 }
Note: See TracChangeset
for help on using the changeset viewer.