User Tools

Site Tools


gamedev:deigde:editors:widgetbeziercurve

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
gamedev:deigde:editors:widgetbeziercurve [2020/03/30 15:51] – created dragonlordgamedev: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 ======
 +
 +{{:gamedev:deigde:editors:editor_curve_menu.png?nolink |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**, removes all curve points and adds the curve points (0,0) and (1,1). Basically this replaces the curve with a linear mapping from (0,0) to (1,1) which keeps the input value unchanged.
 +
 +**Set to Default Bezier** sets the interpolation mode to **bezier interpolation**, removes all curve points and adds two curve points producing an S-shaped curve starting at (0,0) and ending at (1,1). This is similar to a GLSL smooth step curve running from (0,0) to (1,1).
 +
 +**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.
gamedev/deigde/editors/widgetbeziercurve.txt · Last modified: 2020/03/30 23:51 by dragonlord