So if your camera is looking at terrain and you switch to full-screen (either with alt+enter or setres)... it vanishes. Sometimes it breaks apart and you see a crazy amount of tearing and polygons extending, but suffice to say bad things happen. This also occurs if you switch resolutions, or "tab back and fourth" from a full-screen window. This does not happen in the editor, only when launched from the command line.
Now, if the player rotates their camera AWAY from the effected area and then looks back: everything looks right!
Now I could be a cheap-ass and spin the player camera on purpose when they resize the screen, but thats the definition of ultra ghetto. Whats the proper way to do this?
Code:function OnScreenResize() { super.OnScreenResize(); _minimap.RebufferAll(); RebufferMap(); } private function RebufferMap() { local Terrain terrainData; // Get any terrain that may exist foreach class'WorldInfo'.static.GetWorldInfo().Game.AllActors(class'Terrain', terrainData ) { `log( "TERRAIN DATA " @ terrainData ); terrainData.MagicFunctionThatReCachesAllVisibleMapInfo(); // ?? } }



Reply With Quote



Bookmarks