def loadStuffAtStart(): global city #loading fadeSphere# globals_oa.fadingSphere = vizshape.addSphere(0.5, flipFaces=True) globals_oa.fadingSphere.alpha(0) globals_oa.fadingSphere.color(viz.BLACK) sphereLink = viz.link(viz.MainView, globals_oa.fadingSphere) #loading the Crystal Ball Scene globals_oa.globeScene = vizfx.addChild(globals_oa.FILE_PATH_TO_GLOBE) globals_oa.globeScene.setScale([0.2,0.2,0.2]) globals_oa.globeScene.setPosition([-1,0,0]) globals_oa.globeScene.disable(viz.RENDERING) #load city scene assets city = vizfx.addChild(globals_oa.FILE_PATH_TO_CITY) city.setPosition([-8,0,11]) city.disable(viz.RENDERING) if not globals_oa.transportSetUpCalled: transport_vhil.setUp() if not globals_oa.loadAudioAssetsCalled: audioCache.loadAudioAssets() # if not globals_oa.initBoatCalled: # boat_scene.loadStuffAtStartAndHideThemALL() if not globals_oa.cg_scene_init_called: CG_scenes.loadStuffAtStartAndHideThemALL()
def TCR_Flow(): globals_oa.scenePlaying = globals_oa.SCENES['CRYSTAL_BALL_SCENE'] yield crystalBallSceneGo() globals_oa.scenePlaying = globals_oa.SCENES['CITY_SCENE'] yield cityScene() print "CITY SCENE ENDED" globals_oa.scenePlaying = globals_oa.SCENES['BOAT_SCENE'] yield boat_scene.goBoat() print "BOAT SCENE ENDED" globals_oa.scenePlaying = globals_oa.SCENES['VIDEO_SCENE'] yield videoScene() print "360 VIDEO ENDED" globals_oa.UNDERWATER_AMBIENT.loop(viz.ON) globals_oa.UNDERWATER_AMBIENT.play() globals_oa.scenePlaying = globals_oa.SCENES['CG_SCENE'] yield CG_scenes.goCG() print "CG SCENE ENDED"