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

Lasers fail to render when their center points are not onscreen

Open
#5,502 0 comments 0 reactions 0 assignees View on GitHub
bug graphics
Dominant language
C++
Stars
487
Forks
184
Avg merge
3d 9h
Merged PRs (30d)
44

Description

Currently, laser bolts (and lengthful particles, which function like lasers) are only rendered when their center points -- located at the rearmost edge of the laser -- are on the screen. When working with lasers or lengthful particles which are either very long or very slow, this results in noticeable, ugly pop-in, or the absence of effects which are supposed to be visible.

I would guess that the performance benefit from this behavior is tiny at best, so I suggest that laser rendering conditions be loosened. Either they should render as long as either the front point or rear point is on screen, or, ideally, they should render when any part of the laser is on screen.

The following video displays the undesirable visual behavior. I can supply a clearer example if it is not obvious enough here.

https://www.youtube.com/watch?v=l0KWlmiaE7o

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.