|
From: <axl...@us...> - 2009-07-25 20:09:32
|
Revision: 437
http://hgengine.svn.sourceforge.net/hgengine/?rev=437&view=rev
Author: axlecrusher
Date: 2009-07-25 20:09:25 +0000 (Sat, 25 Jul 2009)
Log Message:
-----------
clean up orthographic
Modified Paths:
--------------
Mercury2/src/Orthographic.cpp
Modified: Mercury2/src/Orthographic.cpp
===================================================================
--- Mercury2/src/Orthographic.cpp 2009-07-25 18:58:42 UTC (rev 436)
+++ Mercury2/src/Orthographic.cpp 2009-07-25 20:09:25 UTC (rev 437)
@@ -12,35 +12,12 @@
{
FRUSTUM = &m_frustum;
- MercuryWindow* w = MercuryWindow::GetCurrentWindow();
-
//Load the frustum into the projection
- //"eye" position does not go into projection
glMatrixMode(GL_PROJECTION);
glLoadMatrix( m_frustum.GetMatrix() );
- m_frustum.GetMatrix().Print();
glMatrixMode(GL_MODELVIEW);
- //compute the position of the eye
-// EYE = MercuryVertex(0,0,0,1); //wrong
-// EYE = matrix * EYE;
-
VIEWMATRIX = matrix;
-
- //the camera sets this (the calculation here is wrong)
-// MercuryVector z(0,0,-1); //look down Z by default
-// LOOKAT = (matrix * z).Normalize();
-
-// matrix.Print();
-// EYE.Print("Eye");
-// LOOKAT.Print("Lookat");
-// printf("******\n");
-// LOOKAT = (matrix * l).Normalize();
-// LOOKAT.
-// LOOKAT.Print();
-
- //Sets up the clipping frustum
-// m_frustum.LookAt(EYE, LOOKAT, MercuryVertex(0,1,0));
}
void Orthographic::LoadFromXML(const XMLNode& node)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|