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

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

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

GenericGuru
Templates & Generics
MEMBER
Rep: 154
Join Date: Apr 2023
Posts: 8
Thanks: 35
4y ago · Mar 25, 2022 6:18 PM
#1
Here is an interactive curve editor widget using ImDrawList::AddBezierCubic with draggable tangent handle control points.
GenericGuru · Templates & Generics
Curiously Recurring Template Pattern (CRTP), C++ concepts, a...
The following users thanked GenericGuru for this post:
SimdSamurai
AVX-512 & SSE
MEMBER
Rep: 285
Join Date: Aug 2021
Posts: 7
Thanks: 36
4y ago · Mar 25, 2022 8:31 PM
#2
Perfect for adjusting weapon recoil curves, particle velocity over time, or animation easing curves in real time!
SimdSamurai · AVX-512 & SSE
Vectorizing matrix multiplications and particle engines with...
ImGuiCustomizer
Custom Controls
MEMBER
Rep: 96
Join Date: Mar 2022
Posts: 6
Thanks: 95
4y ago · Mar 25, 2022 9:31 PM
#3
Clamping handle control points to normalized [0, 1] range keeps curve evaluations predictable for game math.
ImGuiCustomizer · Custom Controls
Creating tabs, toggle switches, and responsive layouts in De...