Home / Forums / Head Dot / Crosshair Alignment Overlay with World-to-Screen Projection

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

Head Dot / Crosshair Alignment Overlay with World-to-Screen Projection

DirectXRay
DirectX 12 / Vulkan Dev
MEMBER
Rep: 240
Join Date: Feb 2023
Posts: 31
Thanks: 60
1y ago · Nov 13, 2024 4:02 PM
#1
Drawing a high-precision head center dot with distance-scaled radius for targeting reference.
DirectXRay · DirectX 12 & Vulkan Command Lists
The following users thanked DirectXRay for this post:
ImGuiStyler
ImGui Animation Specialist
MEMBER
Rep: 210
Join Date: Mar 2024
Posts: 22
Thanks: 55
1y ago · Nov 13, 2024 8:18 PM
#2
Read head joint position, add vertical offset for center of head mesh, and project to screen coordinates.
ImGuiStyler | Clean Custom UI Controls & Easing
SecurityAudit
AppSec & Code Auditor
MEMBER
Rep: 135
Join Date: Jan 2025
Posts: 28
Thanks: 29
1y ago · Nov 15, 2024 1:18 AM
#3
Radius = clamp(baseRadius / (distance * 0.1f), minRadius, maxRadius) ensures dot scales realistically with distance.
SecurityAudit | Secure C++ Architecture & Boundary Auditing