OpenRA / OpenRA/OpenRA

Change how voxel aircraft shadows decide when to "tilt"

Open
#20,739 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Idea/Wishlist Polish Tiberian Sun
Dominant language
C#
Stars
17.4k
Forks
3k
Avg merge
1d 12h
Merged PRs (30d)
14

Description

Since we have voxel actor tilting on slopes, shadows have been trying to match them. This also holds true for aircraft, which don't tilt on slopes, but their shadows try to.
The problem is shadows don't fall directly downwards and there are visible issues even with the slight offset in TS. Mods with a bigger offset would likely look worse.
ts_aircraft_tilting_shadows

Shadows should be "tilting" based on their own position on the ground rather than the aircraft's projected position.

The gif above also shows slopes have a negative impact on the shadow offset.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named; begin by locating the voxel actor shadow-tilting logic and reproducing the aircraft cases shown in the attached images. The work is done when aircraft shadows decide their tilt from their own ground position, fall directly downward as intended, and no longer gain a slope-related offset.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.