def onStart( self ):
		self.cc = GUI.ClosedCaptions( BigBang.opts._consoles._numMessageLines.asInt )
		self.cc.addAsView()
		self.cc.visible = 1

		self.chunkTool = BigBang.Tool()
		self.chunkLocator = Locator.OriginLocator()
		self.chunkViz = View.TerrainChunkTextureToolView( "resources/maps/gizmo/squareTool.dds" )
		self.chunkViz.numPerChunk = 1

		self.chunkTool.locator = self.chunkLocator
		self.chunkTool.addView( self.chunkViz, "chunkViz" )
		self.chunkTool.functor = None
		self.chunkTool.size = 5000

		#2000 m. far plane
		self.oldFarPlane = BigBang.farPlane()
		BigBang.farPlane( 2000.0 )

		#no fog
		self.oldFog = BigBang.opts._render._misc._drawFog.asFloat
		BigBang.opts._render._misc._drawFog.asFloat = self.oldFog

		#fast camera
		c = BigBang.camera()
		self.oldCameraSpeed = c.speed
		self.oldCameraSpeedTurbo = c.turboSpeed
		c.speed = 500
		c.turboSpeed = 1000

		self.onResume( 0 )
Ejemplo n.º 2
0
    def onStart(self):
        self.cc = GUI.ClosedCaptions(
            BigBang.opts._consoles._numMessageLines.asInt)
        self.cc.addAsView()
        self.cc.visible = 1

        self.chunkTool = BigBang.Tool()
        self.chunkLocator = Locator.OriginLocator()
        self.chunkViz = View.TerrainChunkTextureToolView(
            "resources/maps/gizmo/squareTool.dds")
        self.chunkViz.numPerChunk = 1

        self.chunkTool.locator = self.chunkLocator
        self.chunkTool.addView(self.chunkViz, "chunkViz")
        self.chunkTool.functor = None
        self.chunkTool.size = 5000

        #2000 m. far plane
        self.oldFarPlane = BigBang.farPlane()
        BigBang.farPlane(2000.0)

        #no fog
        self.oldFog = BigBang.opts._render._misc._drawFog.asFloat
        BigBang.opts._render._misc._drawFog.asFloat = self.oldFog

        #fast camera
        c = BigBang.camera()
        self.oldCameraSpeed = c.speed
        self.oldCameraSpeedTurbo = c.turboSpeed
        c.speed = 500
        c.turboSpeed = 1000

        self.onResume(0)
	def onStop( self ):
		#restore settings
		BigBang.farPlane( self.oldFarPlane )
		BigBang.opts._render._misc._drawFog.asFloat = self.oldFog
		c = BigBang.camera()
		c.speed = self.oldCameraSpeed
		c.turboSpeed = self.oldCameraSpeedTurbo

		self.onPause()
		del self.cc

		return 0
Ejemplo n.º 4
0
    def onStop(self):
        #restore settings
        BigBang.farPlane(self.oldFarPlane)
        BigBang.opts._render._misc._drawFog.asFloat = self.oldFog
        c = BigBang.camera()
        c.speed = self.oldCameraSpeed
        c.turboSpeed = self.oldCameraSpeedTurbo

        self.onPause()
        del self.cc

        return 0