Home / Forums / Off-Screen 360-Degree Radar Arc Indicators with Proximity Scaling (Part 3)

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Off-Screen 360-Degree Radar Arc Indicators with Proximity Scaling (Part 3)

ZeroMemory
Member
MEMBER
Rep: 75
Join Date: Oct 2024
Posts: 32
Thanks: 18
3y ago · Jun 16, 2023 3:07 PM
#1
Projecting off-screen target directions onto an elliptical screen radar perimeter with distance-based scaling.
ZeroMemory · Always experimenting
The following users thanked ZeroMemory for this post:
ApexPredator_
Source Engine Modder
VIP
Rep: 340
Join Date: May 2022
Posts: 23
Thanks: 88
3y ago · Jun 16, 2023 6:17 PM
#2
Transform world delta into camera space, compute angle with atan2(localDir.x, localDir.z), and position markers along an ellipse (radiusX, radiusY).
ApexPredator_ · Source Engine Specialist
GlowShader
Shader & Overlay Artist
MEMBER
Rep: 185
Join Date: Oct 2023
Posts: 36
Thanks: 46
3y ago · Jun 16, 2023 11:17 PM
#3
Scaling the indicator arrow size inversely with distance provides instant awareness of approaching targets.
GlowShader | Shaders, Stencils & DirectX DrawLists