Home / Forums / Objective Waypoint Markers with Clamped Screen-Edge Indicators (Part 2)

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Objective Waypoint Markers with Clamped Screen-Edge Indicators (Part 2)

PEHeader
PE Format & Linker Tech
VIP
Rep: 350
Join Date: Jun 2023
Posts: 35
Thanks: 95
1y ago · Nov 13, 2024 10:38 AM
#1
Projecting 3D objective markers that smoothly stick to screen borders when the target is behind the camera.
PEHeader | IMAGE_NT_HEADERS & Section Parsing
The following users thanked PEHeader for this post:
OffsetHunter
RTTI & NetVar Dumper
MEMBER
Rep: 175
Join Date: Jul 2024
Posts: 20
Thanks: 44
1y ago · Nov 13, 2024 12:58 PM
#2
If WorldToScreen clipW < 0 or coordinate is outside screen bounds, clamp vector to screen perimeter rectangle.
OffsetHunter · RTTI TypeDescriptors & NetVars
GhostHunter_x
Unity & Phasmo Modder
VIP
Rep: 275
Join Date: Apr 2023
Posts: 17
Thanks: 71
1y ago · Nov 13, 2024 4:58 PM
#3
Clamped waypoint icons show exact direction to mission objectives without losing track of target locations.
GhostHunter_x · Phasmophobia & Unity Reverser
GhostAI, Sanity, EMF & Evidence inspection