CedricGuillemet / ImGuizmo

Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui
MIT License
3.22k stars 907 forks source link

How do I make custom gizmos? #207

Closed Stanlyhalo closed 3 years ago

Stanlyhalo commented 3 years ago

So in a few pictures/gifs you have on the readme page shows custom little gizmos for things like a road path or anything of sorts, how can I make my own gizmos using this?

CedricGuillemet commented 3 years ago

I'm not sure to understand your question. Do you want to know how to make the road path display?

Stanlyhalo commented 3 years ago

So for example, what if I wanted to make a gizmo dot/box that can be moved without the transform gizmo, along with this, draw a line between two objects and perhaps draw text.

CedricGuillemet commented 3 years ago

I'm using dear imgui drawing features to render the gizmo. you can do the same. you need to transform 3d coordinates to 2d and render. feel free to check that out from imguizmo

Stanlyhalo commented 3 years ago

Alright thanks. I'll check out how you guys are doing it since I'm also using dear imgui docking.