Home / Forums / Drawing Interactive Bezier Curves & Spline Editors in Dear ImGui [Discussion #9]

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

Drawing Interactive Bezier Curves & Spline Editors in Dear ImGui [Discussion #9]

NoRecoilDev
Input & Recoil Math
MEMBER
Rep: 130
Join Date: Nov 2024
Posts: 20
Thanks: 32
3y ago · Sep 25, 2022 2:12 PM
#1
Here is an interactive curve editor widget using ImDrawList::AddBezierCubic with draggable tangent handle control points.
NoRecoilDev | Smoothing Algorithms & Input Events
The following users thanked NoRecoilDev for this post:
DirectXRay
DirectX 12 / Vulkan Dev
MEMBER
Rep: 240
Join Date: Feb 2023
Posts: 31
Thanks: 60
3y ago · Sep 25, 2022 5:53 PM
#2
Perfect for adjusting weapon recoil curves, particle velocity over time, or animation easing curves in real time!
DirectXRay · DirectX 12 & Vulkan Command Lists
SecurityAudit
AppSec & Code Auditor
MEMBER
Rep: 135
Join Date: Jan 2025
Posts: 28
Thanks: 29
3y ago · Sep 26, 2022 10:53 PM
#3
Clamping handle control points to normalized [0, 1] range keeps curve evaluations predictable for game math.
SecurityAudit | Secure C++ Architecture & Boundary Auditing