Revision: 6731 http://playerstage.svn.sourceforge.net/playerstage/?rev=6731&view=rev Author: jeremy_asher Date: 2008-07-02 10:28:30 -0700 (Wed, 02 Jul 2008)
Log Message: ----------- Fixed accidental changes to model_camera Modified Paths: -------------- code/stage/trunk/libstage/model_camera.cc Modified: code/stage/trunk/libstage/model_camera.cc =================================================================== --- code/stage/trunk/libstage/model_camera.cc 2008-07-02 17:08:34 UTC (rev 6730) +++ code/stage/trunk/libstage/model_camera.cc 2008-07-02 17:28:30 UTC (rev 6731) @@ -156,21 +156,21 @@ _canvas->DrawBlocks(); //read depth buffer -// glReadPixels(0, 0, _width, _height, -// GL_DEPTH_COMPONENT, //GL_RGB, -// GL_FLOAT, //GL_UNSIGNED_BYTE, -// _frame_data ); + glReadPixels(0, 0, _width, _height, + GL_DEPTH_COMPONENT, //GL_RGB, + GL_FLOAT, //GL_UNSIGNED_BYTE, + _frame_data ); //transform length into linear length float* data = ( float* )( _frame_data ); //TODO use static_cast here int buf_size = _width * _height; for( int i = 0; i < buf_size; i++ ) - data[ i ] = 10;//_camera.realDistance( data[ i ] ); + data[ i ] = _camera.realDistance( data[ i ] ); //read color buffer -// glReadPixels(0, 0, _width, _height, -// GL_RGBA, -// GL_UNSIGNED_BYTE, -// _frame_color_data ); + glReadPixels(0, 0, _width, _height, + GL_RGBA, + GL_UNSIGNED_BYTE, + _frame_color_data ); glViewport( viewport[0], viewport[1], viewport[2], viewport[3] ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit