Changeset 526 for trunk/VUT/GtpVisibilityPreprocessor/src
- Timestamp:
- 01/12/06 14:33:37 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Beam.cpp
r525 r526 89 89 Vector3 directions[4]; 90 90 91 directions[0] = VssRay::GetDirection(dBox.Min().x, dBox.Min().y);91 /* directions[0] = VssRay::GetDirection(dBox.Min().x, dBox.Min().y); 92 92 directions[1] = VssRay::GetDirection(dBox.Max().x, dBox.Min().y); 93 93 directions[2] = VssRay::GetDirection(dBox.Max().x, dBox.Max().y); 94 94 directions[3] = VssRay::GetDirection(dBox.Min().x, dBox.Max().y); 95 96 return Normalize(direction[0], direction[1], direction[2], direction[3]); 95 */ 96 const Vector3 mainDir = directions[0] + directions[1] + directions[2] + directions[3]; 97 return Normalize(mainDir); 97 98 } -
trunk/VUT/GtpVisibilityPreprocessor/src/GlRenderer.cpp
r525 r526 157 157 sCgContext = cgCreateContext(); 158 158 159 sCgFragmentProgram = cgCreateProgramFromFile(sCgContext,159 /*sCgFragmentProgram = cgCreateProgramFromFile(sCgContext, 160 160 CG_SOURCE, "../src/dual_depth.cg", 161 161 sCgFragmentProfile, 162 162 NULL, 163 NULL); 163 NULL);*/ 164 164 } 165 165 … … 800 800 glFrustum(left, right, bottom, top, znear, zfar); 801 801 802 const Vector3 eye = viewPoint + beam.GetMainDirection; 803 const Vector3 up = AbitraryNormal(eye); 804 805 gluLookAt(eye, viewPoint, up); 802 const Vector3 eye = viewPoint + beam.GetMainDirection(); 803 const Vector3 up;//AbitraryNormal(eye); 804 805 gluLookAt(eye.x, eye.y, eye.z, 806 viewPoint.x, viewPoint.y, viewPoint.z, 807 up.x, up.y, up.z); 806 808 }
Note: See TracChangeset
for help on using the changeset viewer.