scp-fs2open / scp-fs2open/fs2open.github.com

FR: Radar Line of Sight, Complex Radar Signature Mechanics

Open
#2,991 0 comments 0 reactions 0 assignees View on GitHub
ai enhancement wish list
Dominant language
C++
Stars
487
Forks
184
Avg merge
3d 9h
Merged PRs (30d)
44

Description

This feature adds somewhat more complex behavior to the radar, and has implications on AI as well.

Essentially, this will get radar Line of Sight properties, if there's something big (ship, asteroid, station) in between you and another object, the other object won't be as visible on radar.

This conceptually works with a ray-trace algorithm to check if the object is visible or obscured. If it is obscured, then its radar signature value could be decremented by some value to effectively decrease its detection and resolution ranges.

When the signature is "strong" or "normal" its resolved, when the signature is "weak" its unresolved (jittery blips), and "very weak" won't show on radar. The naming here suggests that a fuzzy logic solution may be viable.

Initially this algorithm can be only applied to small craft (fighters, bombers, etc.) and can quickly just ray-trace to the center of the object. For larger objects such as ships and stations the ray-trace can be to each of the corners of its bounding box.

For performance, the signature check could be done at a reasonable rate, such as maybe once per second, instead of checked every frame.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.