Home / Forums / Head Dot / Crosshair Alignment Overlay with World-to-Screen Projection (Part 2)

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Source

Head Dot / Crosshair Alignment Overlay with World-to-Screen Projection (Part 2)

AsmDisasm
x86_64 Disassembler Dev
MEMBER
Rep: 145
Join Date: Feb 2025
Posts: 23
Thanks: 36
2y ago · Jul 1, 2024 8:54 PM
#1
Drawing a high-precision head center dot with distance-scaled radius for targeting reference.
AsmDisasm · Zydis & Opcode Length Disassembly
The following users thanked AsmDisasm for this post:
DirectXRay
DirectX 12 / Vulkan Dev
MEMBER
Rep: 240
Join Date: Feb 2023
Posts: 31
Thanks: 60
2y ago · Jul 2, 2024 12:14 AM
#2
Read head joint position, add vertical offset for center of head mesh, and project to screen coordinates.
DirectXRay · DirectX 12 & Vulkan Command Lists
OffsetHunter
RTTI & NetVar Dumper
MEMBER
Rep: 175
Join Date: Jul 2024
Posts: 20
Thanks: 44
2y ago · Jul 2, 2024 6:14 AM
#3
Radius = clamp(baseRadius / (distance * 0.1f), minRadius, maxRadius) ensures dot scales realistically with distance.
OffsetHunter · RTTI TypeDescriptors & NetVars