1
0
Fork 0

Activate the hi res screen capture functionality again, however it is no

longer working 100% correctly. :-(
This commit is contained in:
curt 2004-09-27 02:39:54 +00:00
parent 30bbccb98d
commit cc66c8fdca
4 changed files with 20 additions and 4 deletions

View file

@ -60,6 +60,7 @@ extern void reInit(puObject *);
extern void dumpSnapShot(puObject *); extern void dumpSnapShot(puObject *);
#ifdef TR_HIRES_SNAP #ifdef TR_HIRES_SNAP
extern void dumpHiResSnapShot(puObject *); extern void dumpHiResSnapShot(puObject *);
extern void fgHiResDump();
#endif #endif
#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__) #if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
extern void printScreen(puObject *); extern void printScreen(puObject *);

View file

@ -521,7 +521,7 @@ void fgHiResDump()
static int count = 1; static int count = 1;
static const SGPropertyNode *master_freeze static const SGPropertyNode *master_freeze
= fgGetNode("/sim/freeze/master"); = fgGetNode("/sim/freeze/master");
bool freeze = master_freeze->getBoolValue(); bool freeze = master_freeze->getBoolValue();
if ( !freeze ) { if ( !freeze ) {
@ -550,6 +550,9 @@ void fgHiResDump()
ssgSetCamera( (sgVec4 *)globals->get_current_view()->get_VIEW() ); ssgSetCamera( (sgVec4 *)globals->get_current_view()->get_VIEW() );
ssgSetFOV( globals->get_current_view()->get_h_fov(), ssgSetFOV( globals->get_current_view()->get_h_fov(),
globals->get_current_view()->get_v_fov() ); globals->get_current_view()->get_v_fov() );
cout << "FOV = " << globals->get_current_view()->get_h_fov()
<< ", " << globals->get_current_view()->get_v_fov() << endl;
// ssgSetNearFar( 10.0f, 120000.0f ); // ssgSetNearFar( 10.0f, 120000.0f );
ssgSetNearFar( 0.5f, 1200000.0f ); ssgSetNearFar( 0.5f, 1200000.0f );
@ -559,7 +562,7 @@ void fgHiResDump()
// support any image size // support any image size
// This should be a requester to get multiplier from user // This should be a requester to get multiplier from user
int multiplier = 3; int multiplier = fgGetInt("/sim/startup/hires-multiplier", 3);
int width = fgGetInt("/sim/startup/xsize"); int width = fgGetInt("/sim/startup/xsize");
int height = fgGetInt("/sim/startup/ysize"); int height = fgGetInt("/sim/startup/ysize");

View file

@ -456,6 +456,17 @@ do_screen_capture (const SGPropertyNode * arg)
} }
/**
* Built-in command: hires capture screen.
*/
static bool
do_hires_screen_capture (const SGPropertyNode * arg)
{
fgHiResDump();
return true;
}
/** /**
* Reload the tile cache. * Reload the tile cache.
*/ */
@ -1244,6 +1255,7 @@ static struct {
{ "preferences-load", do_preferences_load }, { "preferences-load", do_preferences_load },
{ "view-cycle", do_view_cycle }, { "view-cycle", do_view_cycle },
{ "screen-capture", do_screen_capture }, { "screen-capture", do_screen_capture },
{ "hires-screen-capture", do_hires_screen_capture },
{ "tile-cache-reload", do_tile_cache_reload }, { "tile-cache-reload", do_tile_cache_reload },
{ "set-sea-level-air-temp-degc", do_set_sea_level_degc }, { "set-sea-level-air-temp-degc", do_set_sea_level_degc },
{ "set-outside-air-temp-degc", do_set_oat_degc }, { "set-outside-air-temp-degc", do_set_oat_degc },

View file

@ -908,11 +908,11 @@ FGRenderer::resize( int width, int height ) {
} }
ssgSetFOV( viewmgr->get_current_view()->get_h_fov(), ssgSetFOV( viewmgr->get_current_view()->get_h_fov(),
viewmgr->get_current_view()->get_v_fov() ); viewmgr->get_current_view()->get_v_fov() );
#ifdef FG_USE_CLOUDS_3D #ifdef FG_USE_CLOUDS_3D
sgClouds3d->Resize( viewmgr->get_current_view()->get_h_fov(), sgClouds3d->Resize( viewmgr->get_current_view()->get_h_fov(),
viewmgr->get_current_view()->get_v_fov() ); viewmgr->get_current_view()->get_v_fov() );
#endif #endif
} }