npruehs / ue4-rts

Real-time strategy plugin and showcase for Unreal Engine 4.
MIT License
747 stars 151 forks source link

Feature request - minimap view frustum clamp #67

Closed JernejHabjan closed 4 years ago

JernejHabjan commented 6 years ago

Feature request clamping view frustum for minimap within bounds of widget minimap area.

image

If camera is tilted, frustum lines go beyond minimap widget, resulting lines being drawn in middle of screen.

npruehs commented 6 years ago

Thanks for reporting! :) This should only ever occur with very small maps, so we hadn't encountered this one yet.

josephkozak commented 4 years ago

This was a long time ago; but an easy fix is turning the clipping settings of the widget to "Clip to Bounds" instead of inherit. It helps if you place a border around your mini map as well.

npruehs commented 4 years ago

@josephkozak Thanks for the hint! @JernejHabjan Fixed in commit a683f9d6a9da513fe338ddf9861cfae881017d8c.