From 648831d6dc354de3c62546132557d453be949566 Mon Sep 17 00:00:00 2001 From: march3 Date: Sun, 10 Dec 2023 12:56:10 +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/transformed_mars_ani_3d.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sim_scenes/fiction/transformed_mars_ani_3d.py b/sim_scenes/fiction/transformed_mars_ani_3d.py index cf0d01a..5f9c324 100644 --- a/sim_scenes/fiction/transformed_mars_ani_3d.py +++ b/sim_scenes/fiction/transformed_mars_ani_3d.py @@ -117,7 +117,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False, def on_ready(): if bg_texture is not None: - sky = create_sphere_sky(texture=bg_texture, scale=10000, rotation_x=10, rotation_y=180, rotation_z=-70) + sky = create_sphere_sky(texture=bg_texture, scale=1000, rotation_x=10, rotation_y=180, rotation_z=-70) if bg_texture_rotation: def sky_rotation(): @@ -136,7 +136,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False, application.time_scale = 0.001 camera.clip_plane_near = 0.001 - camera.clip_plane_far = 20000 + camera.clip_plane_far = 10000 if append_space_station: def update(): @@ -145,7 +145,7 @@ def transformed_mars_ani(transformed_texture=None, texture=None, camera3d=False, space_station.planet.rotation_z += 0.005 * space_station.dt_scale space_station.planet.position += Vec3(0, 0, 0.00000005 * space_station.dt_scale) d = distance(space_station.planet, mars.planet) / UrsinaConfig.SCALE_FACTOR - if d < mars.radius * 5: + if d < mars.radius * 2: space_station.planet.scale *= pow(0.999, 72 / space_station.dt_scale) if d < mars.radius * 1.01: -- GitLab