warzone2100 icon indicating copy to clipboard operation
warzone2100 copied to clipboard

Tweak fire effect pointlight

Open past-due opened this issue 2 years ago • 1 comments

Tweak fire effect pointlight:

  • Raise it above the input position (i.e. above ground) and increase the range so it better casts light.

Issues:

This change makes it easy to reproduce an apparent issue with point lights (possibly related to the near plane and the various calculations?) @vlj

Video example: https://github.com/Warzone2100/warzone2100/assets/30942300/d44ddc4b-f94a-4c31-a813-f96b3c4f3bd8

Here's a save game that should let you reproduce this. Sk-Rush-fire-lights.zip

Steps to reproduce are:

  1. Ensure point lights are on in Graphics settings
  2. Load the Sk-Rush-fire-lights skirmish save game
  3. Zoom in on the cluster of walls surrounding the oil derrick (where all the cyborgs are attacking), and potentially rotate to match the video example
  4. The closer you zoom, the more readily you'll be able to see the "dividing line" where pointlights aren't having the expected impact (seems to be for things that are closer to the camera - if enabling debug mode, which lets you zoom in even more, you can see how big an impact this can be)

past-due avatar Mar 22 '24 17:03 past-due

mb it's those bug/glitch of camera's near far/end values?

MaNGusT- avatar Mar 22 '24 19:03 MaNGusT-

Largely resolved by #3784

past-due avatar Jun 22 '24 15:06 past-due