Commit Graph
87 Commits
Author SHA1 Message Date
z1dev e0cb94ec74 Fix for editor view's cached "CameraNearPlaneValue" getting overwritten.
Changing the editor's camera sometimes results in empty views in editors. It was caused by writing the _farPlane with the wrong name in the cache.
2024-01-02 00:08:00 +01:00
Tryibion 9a712ba3cf Fix selecting objects/gizmos with high far plane. 2023-12-02 09:12:38 -06:00
mafiesto4 daf31cfa4d Format code #1611 2023-10-25 14:57:44 +02:00
mafiesto4 7c84ca5b84 Merge branch 'feat/improved-camera-settings' of https://github.com/solnem/FlaxEngine into solnem-feat/improved-camera-settings 2023-10-24 14:50:52 +02:00
Tryibion 7b984396cc Add not to close Debug View CM on button clicked. 2023-10-13 20:52:26 -05:00
GoaLitiuM 02a219a376 Fix Editor viewport camera transformation getting corrupted when focused 2023-10-11 21:45:07 +03:00
GoaLitiuM 4db1975f02 Fix Editor viewport camera drifting with odd viewport sizes 2023-10-08 17:28:28 +03:00
Christopher Rothert 5e85fa2c0c Merge branch 'master' into feat/improved-camera-settings 2023-10-08 01:41:05 +02:00
Christopher Rothert 966e5cdda2 Update some comments 2023-10-08 01:40:50 +02:00
Christopher Rothert 997c442e69 Update movement speed formatting
* add property for movement speed text format
* add additional checks to camera speed progress calculation
* round movement speed to make it visually more appealing in the context menu
2023-10-08 01:07:36 +02:00
Christopher Rothert 00aa54cde8 Update camera speed stepping and easing
* remove complex curve function
* update camera easing feature to use Mathf.Pow instead
* add total camera speed steps to ViewportOptions
* change default value for max camera speed from 64 to 32
* update ViewportOptions ordering and grouping
* update string format for movement speed
2023-10-07 02:40:52 +02:00
mafiesto4 2cac149741 Code cleanup for #1377 2023-10-06 15:58:23 +02:00
mafiesto4 58552afc40 Merge branch 'viewlayer' of https://github.com/Withaust/FlaxEngine into Withaust-viewlayer 2023-10-06 15:26:15 +02:00
Christopher Rothert fd94cfb469 Update how camera settings widget is displayed
* add option to force a certain text width to ViewportWidgetButton
* force camera settings widget to fit longest possible speed value
* changed displayed camera speed using string.Format
* changed some lines to always correctly display the camera speed
* switched from Mathf.Clamp to Mathf.Saturate for values between 0 and 1
2023-10-05 20:04:09 +02:00
Christopher Rothert 3a9fdd8b52 Add possibility to disable camera easing
* add camera easing setting to camera settings widget
* add camera easing default setting to ViewportOptions
* update some settings in ViewportOptions
2023-10-05 13:10:02 +02:00
Christopher Rothert 4b78d5e39e Orthographic/perspective mode toggle
Note: missing dedicated icon!
2023-10-04 23:30:51 +02:00
Christopher Rothert 1f2d665654 Add camera speed easing based on Mathf.InterpEaseInOut
* change camera move speed method to use easing curve
* add methods for inversion of Mathf.InterpEaseInOut (might have better alternative)
* add setting for easing curve degree in ViewportOptions

* update camera speed adjustments to use easing curve
* remove unused camera speed values array
* update some comments and namings
2023-10-04 23:30:51 +02:00
Christopher Rothert ccf37e9d68 Add saving and loading of cached values for camera settings
* remove "Default" from all settings in ViewportOptions as they are shown in the "Defaults" group anyway
2023-10-04 23:30:51 +02:00
Christopher Rothert a280ce3dc7 Add reset button to camera settings widget 2023-10-04 23:30:51 +02:00
Christopher Rothert 4f93a0d9c9 Add default camera settings to editor options
* update ViewportOptions to include new default camera settings
* update existing default settings in ViewportOptions
* extract viewport options setup into own method
* initialize new camera settings with default settings in EditorViewport
2023-10-04 23:30:50 +02:00
Christopher Rothert 67536f04e9 Improve camera panning
* add camera panning speed option to camera settings context menu
* add relative panning speed based on distance to camera target to camera settings context menu
* add relative panning option to camera settings context menu

* fix float comparisons
* remove invert panning entry from view widget
* remove unused show/hide method for camera widget
2023-10-04 23:30:50 +02:00
Christopher Rothert 3dcd1a5ffb Improve viewport camera settings
* remove fixed camera speed buttons from camera speed scale widget
* change camera speed scale widget to general camera settings widget
* move all camera-related settings from view mode widget to camera settings widget
* fix some typo

* add possibility to set camera speed manually
* add min/max camera speed options
2023-10-04 23:30:50 +02:00
mafiesto4 5e3bb4d51e Merge branch 'font-size-fixes' of https://github.com/Tryibion/FlaxEngine into Tryibion-font-size-fixes 2023-10-01 12:05:20 +02:00
GoaLitiuM efbc757369 Cancel camera rotation toggle when entering playmode or hitting escape 2023-09-23 15:23:08 +03:00
GoaLitiuM 2023aa8c94 Add viewport camera movement speed adjustment input bindings 2023-09-23 15:23:08 +03:00
GoaLitiuM 0122a9f699 Implement viewport camera rotation toggle for trackpad users 2023-09-23 15:23:08 +03:00
Tryibion ab2d60e6d2 Fix viewport options extras locations. 2023-09-16 15:30:49 -05:00
Wiktor Kocielski d389348260 Add View Layers button & Reset/Disable/Copy/Paste buttons to View Flags/Debug View & Camera RenderFlags/RenderView addition 2023-09-13 12:17:34 +03:00
Tryibion 1286a29462 Add not closing some cm buttons 2023-08-19 14:30:08 -05:00
Tryibion a0bb3f2995 Add light debug view flag to draw light shapes 2023-07-07 17:32:46 -05:00
GoaLitiuM 6a1552505e Fix sluggish EditorViewport camera movement with high DPI
Flooring the mouse delta values seems to drop slight movements in
viewport when screen DPI is high.
2023-06-18 21:23:02 +03:00
mafiesto4 a0c6add732 Add ViewFlags::Sky for conditional sky/skybox rendering 2023-01-31 15:58:02 +01:00
mafiesto4 9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
Tryibion 14f64b5b20 dont close when clicking on view editor CM buttons that are not buttons. 2022-11-04 12:58:42 -05:00
mafiesto4 0b71549834 Add another editor viewport cam speed step 2022-08-25 19:42:01 +02:00
mafiesto4 db6cd541c2 Add separate GBuffer view modes in Editor viewport widget 2022-08-17 20:37:12 +02:00
mafiesto4 a4478b9497 Add editor camera speed up for gamepad right trigger 2022-07-25 09:52:42 +02:00
mafiesto4 37fbc7600e Add don't auto-closing View -> View Flags menu to improve debug testing workflow in Editor viewport 2022-07-23 10:51:38 +02:00
mafiesto4 3d43586e0f Fix editor viewport input bug regression 2022-07-22 11:12:45 +02:00
mafiesto4 5437f7cc1a Fix editor viewport capturing mouse if window is not foreground 2022-07-08 09:30:35 +02:00
mafiesto4 d0955a5ac0 Fix editor selection with Large Worlds origin usage 2022-07-02 20:35:25 +02:00
mafiesto4 b1640515c4 Merge remote-tracking branch 'origin/gi'
# Conflicts:
#	Source/Engine/Renderer/GlobalSignDistanceFieldPass.cpp
2022-06-28 18:16:28 +02:00
mafiesto4 5633d1bcb9 Fix editor viewport mouse selection regression 2022-06-23 18:56:02 +02:00
mafiesto4 134c8b99aa Add relative-to-camera rendering for large worlds 2022-06-21 20:03:13 +02:00
mafiesto4 1db65ac882 Add GlobalIllumination to debug GI probes 2022-06-17 15:07:58 +02:00
mafiesto4 a881c90b2e Refactor engine to support double-precision vectors 2022-06-13 00:40:32 +02:00
mafiesto4 63b8b0cb50 Add GlobalSurfaceAtlas pass to Renderer (wip) 2022-03-29 15:07:00 +02:00
mafiesto4 8cca7f884b Add **Global Sign Distance Field** rendering (work in progress) 2022-03-18 16:18:00 +01:00
mafiesto4 8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
mafiesto4 fc2a7d98fa Add gamepad camera control for editor viewports 2021-12-14 16:59:20 +01:00