# -*- coding:utf-8 -*- # title :地球季节模拟(四季和24节气) # description :地球季节模拟(四季和24节气) # author :Python超人 # date :2023-02-11 # link :https://gitcode.net/pythoncr/ # python_version :3.8 # ============================================================================== from common.consts import AU from sim_scenes.featured.earth_seasons_base import EarthSeasonsSimBase from sim_scenes.func import camera_look_at class EarthSeasonsSim(EarthSeasonsSimBase): window_size = (1920 / 3, 1080 / 3) def __init__(self): super(EarthSeasonsSim, self).__init__(sun_transparent=False, show_sphere_sky=False, look_at_earth=False, # exit_at_total_days=400, earth_cn_size_factor=1.01, show_name=False) def on_ready(self): super(EarthSeasonsSim, self).on_ready() camera_look_at(self.sun, rotation_z=0) if __name__ == '__main__': """ 摄像机以侧视图(夏至侧)看太阳和地球(四季和24节气) """ sim = EarthSeasonsSim() sim.run(init_position=(0, AU, -3 * AU), speed_factor=10.0)