- Render improvements, camera plane, update

This commit is contained in:
bklronin
2026-07-13 23:01:35 +02:00
parent c78d0af78c
commit 742d06d242
7 changed files with 1226 additions and 346 deletions
+4 -2
View File
@@ -677,8 +677,10 @@ class OCCRenderer(Renderer):
2.0 * math.tan(math.radians(fov_y / 2.0))
)
# Scale factor maps directly: smaller scale (zoomed in) → closer camera.
adjusted_distance = base_distance * view_scale
# Scale factor maps inversely: larger scale (zoomed in) → closer camera.
# Dividing by view_scale ensures that when the user zooms in (scale increases)
# the render camera moves closer, matching the viewport.
adjusted_distance = base_distance / view_scale
# Direction from target toward the original eye position.
direction = eye - at