- Render improvements, camera plane, update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user