From 723252d9a9202f71c713913cb9dbcb0a81560ac8 Mon Sep 17 00:00:00 2001 From: march3 Date: Mon, 27 Nov 2023 12:10:11 +0800 Subject: [PATCH] =?UTF-8?q?Python=E8=B6=85=E4=BA=BA-=E5=AE=87=E5=AE=99?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sim_scenes/fiction/earth_orbit_stopped.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sim_scenes/fiction/earth_orbit_stopped.py b/sim_scenes/fiction/earth_orbit_stopped.py index 1a93df7..61d9b5e 100644 --- a/sim_scenes/fiction/earth_orbit_stopped.py +++ b/sim_scenes/fiction/earth_orbit_stopped.py @@ -37,6 +37,7 @@ class EarthOrbitStoppedSim(UniverseSimScenes): # self.sun = Sun(init_position=[0, 0, 0], color=(255, 255, 200), size_scale=1, texture="fixed_star.png") self.earth = Earth(init_position=[0, 0, -AU], texture="earth_hd.jpg", init_velocity=[0, self.EARTH_INIT_VELOCITY, 0], + rotation_speed=0.15, size_scale=1).set_light_disable(True) # 水星轨道半径 self.mercury_radius = 0.384 * AU @@ -82,7 +83,10 @@ class EarthOrbitStoppedSim(UniverseSimScenes): def on_ready(self): # 运行前触发一次 # 应用的时间缩放越小,视频更近顺滑(低速运行比较重要) + camera.clip_plane_near = 0.01 + camera.clip_plane_far = 50000 application.time_scale = 0.00001 + # FOV是摄像机的视场角,即Field of view(FOV),它的大小决定了摄像机的视野范围。 camera.fov = 50 self.text_panel = create_text_panel(font="fonts/DroidSansFallback.ttf", font_scale=1.3) -- GitLab