- Timestamp:
- 01/06/06 11:31:28 (19 years ago)
- Location:
- trunk/VUT/GtpVisibilityPreprocessor/src
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/GlRenderer.cpp
r502 r504 83 83 for (i=0; i < mesh->mFaces.size(); i++) { 84 84 if (mWireFrame) 85 glBegin(GL_LINE_LOOP); 86 else 85 87 glBegin(GL_POLYGON); 86 else87 glBegin(GL_LINE_LOOP);88 88 89 89 Face *face = mesh->mFaces[i]; … … 501 501 float dist = Magnitude(mSceneGraph->GetBox().Diagonal())*0.05; 502 502 Vector3 pos = mViewPoint - dist*Vector3(mViewDirection.x, 503 1,503 -1, 504 504 mViewDirection.y); 505 505 … … 508 508 509 509 glLoadIdentity(); 510 gluLookAt( mViewPoint.x, mViewPoint.y, mViewPoint.z,510 gluLookAt(pos.x, pos.y, pos.z, 511 511 target.x, target.y, target.z, 512 512 up.x, up.y, up.z); … … 514 514 515 515 } 516 517 void 518 GlRendererWidget::keyPressEvent ( QKeyEvent * e ) 519 { 520 switch (e->key()) { 521 case Qt::Key_T: 522 mTopView = !mTopView; 523 updateGL(); 524 break; 525 default: 526 e->ignore(); 527 break; 528 } 529 530 } -
trunk/VUT/GtpVisibilityPreprocessor/src/GlRenderer.h
r502 r504 173 173 void mouseMoveEvent(QMouseEvent *); 174 174 175 void keyPressEvent ( QKeyEvent * e ) ; 176 175 177 float 176 178 RenderErrors(); -
trunk/VUT/GtpVisibilityPreprocessor/src/KdTree.cpp
r492 r504 6 6 #include "KdTree.h" 7 7 #include "ViewCell.h" 8 #include "Frustum.h" 8 9 9 10 int KdNode::mailID = 1; … … 963 964 return NULL; 964 965 } 966 967 968 int 969 CastFrustum( 970 Frustum &frustum 971 ) 972 { 973 974 975 return 0; 976 } -
trunk/VUT/GtpVisibilityPreprocessor/src/KdTree.h
r469 r504 16 16 class Intersectable; 17 17 //class KdViewCell; 18 class Frustum; 18 19 19 20 // -------------------------------------------------------------- … … 282 283 int 283 284 CastRay( 284 Ray &ray 285 ); 286 287 285 Ray &ray 286 ); 287 288 289 int 290 CastFrustum( 291 Frustum &frustum 292 ); 293 294 288 295 /** Casts line segment into tree. 289 296 @returns intersected view cells. -
trunk/VUT/GtpVisibilityPreprocessor/src/Makefile
r502 r504 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (2.00a) (Qt 4.1.0) on: ?t 5. I 09:42:4920063 # Generated by qmake (2.00a) (Qt 4.1.0) on: pá 6. I 11:25:45 2006 4 4 # Project: preprocessor.pro 5 5 # Template: app -
trunk/VUT/GtpVisibilityPreprocessor/src/Plane3.h
r487 r504 24 24 25 25 Plane3(const Vector3 &normal, 26 const Vector3 &point27 ):mNormal(normal)26 const Vector3 &point 27 ):mNormal(normal) 28 28 { 29 29 mD = -DotProd(normal, point); -
trunk/VUT/GtpVisibilityPreprocessor/src/RssPreprocessor.cpp
r503 r504 548 548 //Vector3 viewpoint = GetViewpoint(mViewSpaceBox); 549 549 Vector3 viewpoint; 550 //mViewCellsManager->GetViewPoint(viewpoint);551 viewpoint = GetViewpoint(mViewSpaceBox);550 mViewCellsManager->GetViewPoint(viewpoint); 551 // viewpoint = GetViewpoint(mViewSpaceBox); 552 552 Vector3 direction = InitialGetDirection(viewpoint, mViewSpaceBox); 553 553 -
trunk/VUT/GtpVisibilityPreprocessor/src/default.env
r502 r504 13 13 #;../data/vienna/vienna-plane.x3d 14 14 # filename ../data/vienna/viewcells-25-sel.x3d 15 #filename ../data/atlanta/atlanta2.x3d15 filename ../data/atlanta/atlanta2.x3d 16 16 # filename ../data/soda/soda.dat 17 filename ../data/soda/soda5.dat17 # filename ../data/soda/soda5.dat 18 18 } 19 19 … … 69 69 RssPreprocessor { 70 70 samplesPerPass 100000 71 initialSamples 50000071 initialSamples 1000000 72 72 vssSamples 10000000 73 73 vssSamplesPerPass 500000 … … 169 169 #type kdTree 170 170 #type vspKdTree 171 type bspTree172 #type vspBspTree171 # type bspTree 172 type vspBspTree 173 173 174 174 #type sceneDependent -
trunk/VUT/GtpVisibilityPreprocessor/src/preprocessor.pro
r492 r504 30 30 # Input 31 31 HEADERS += Halton.h VssRay.h VssPreprocessor.h RssTree.h GlRenderer.h \ 32 PreprocessorThread.h Preprocessor.h 32 PreprocessorThread.h Preprocessor.h Frustum.h 33 33 34 34 … … 43 43 RenderSimulator.cpp VspKdTree.cpp RayInfo.cpp RssTree.cpp RssPreprocessor.cpp \ 44 44 ViewCellsManager.cpp VspBspTree.cpp GlRenderer.cpp \ 45 PreprocessorThread.cpp Renderer.cpp 45 PreprocessorThread.cpp Renderer.cpp Frustum.cpp 46 46
Note: See TracChangeset
for help on using the changeset viewer.