This shows you the differences between two versions of the page.
Next revisionBoth sides next revision | |||
gamedev:deigde:editors:widgetbeziercurve [2020/03/30 15:51] – created dragonlord | gamedev:deigde:editors:widgetbeziercurve [2020/03/30 16:15] – [Bezier Curve Editor] dragonlord | ||
---|---|---|---|
Line 23: | Line 23: | ||
Bezier interpolation produces smooth curves by interpolation using bezier algorithm between curve points. | Bezier interpolation produces smooth curves by interpolation using bezier algorithm between curve points. | ||
+ | |||
+ | ====== View Interaction ====== | ||
+ | |||
+ | ====== Context Menu ====== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The context menu allows to edit the curve as well as setting some parameters. | ||
+ | |||
+ | **Reset View** resets the X-axis and Y-axis to the range **0 -> 1**. | ||
+ | |||
+ | **Fit View to Curve** adjusts the X-axis and Y-axis extends to fit the curve into the view. In particular this sets the X-axis range to include the first and last curve point X-coordinate as well as the Y-axis minimum and maximum set to the curve point Y-coordinate minimum respectively maximum value. Handles are not included in the curve fitting only curve points. | ||
+ | |||
+ | **Clear Curve** removes all curve points. | ||
+ | |||
+ | **Set to Default Linear** sets the interpolation mode to **linear interpolation**, | ||
+ | |||
+ | **Set to Default Bezier** sets the interpolation mode to **bezier interpolation**, | ||
+ | |||
+ | **Edit Clamp Parameters** shows a dialog to edit the clamping parameters. If clamping is enabled curve points (not handles) are clamped to the desired range while dragged using the mouse. Clamping is not applied to existing points if changed nor to manually edited points. | ||
+ | |||
+ | **Edit Selected Point** shows a dialog to edit the **point**, **first handle** and **second handle** of the selected curve point. |