Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moving bmodels receive dynamic lighting from original position #94

Open
maikmerten opened this issue Jan 22, 2024 · 4 comments
Open

moving bmodels receive dynamic lighting from original position #94

maikmerten opened this issue Jan 22, 2024 · 4 comments

Comments

@maikmerten
Copy link

This is an old bug inherited from WinQuake, which has been fixed in a number of ports, suchs as Ironwail and Quakespasm Spiked.

bmodel-lighting.mp4

Dynamic lights appear to be applied to bmodels according to their original origin, instead of their current position.

It may be possible to cherry-pick that fix from Ironwail or Quakespasm Spiked, provided the commits can be identified.

@maikmerten
Copy link
Author

Quakespasm Spiked, which has this issue fixed, has modifications to R_DrawBrushModel to subtract light and model origins and subsequent changes in R_MarkLights. I ported those over to Quakespasm, which delivers a partial fix:

partial-fix.mp4

qss-partial-fix.zip

The fix is only partial as the bmodel doesn't seem to receive any dlights once it moved away sufficiently away from its origin. Perhaps the port of the fix is incomplete or perhaps Quakespasm Spiked does further adjustments in other areas.

Find also enclosed my test map, which is a work-in-progress map I'm working on.

bossy.zip

@maikmerten
Copy link
Author

Okay, the partial fix indeed is partial.

Quakespasm Spike introduced the complete thing in this commit:

Shpoike/Quakespasm@f6d31e9

@sezero
Copy link
Owner

sezero commented Jun 6, 2024

Quakespasm Spike introduced the complete thing in this commit:

Shpoike/Quakespasm@f6d31e9

Applying that commit to qs doesn't seem to work correctly - e.g. rockets doesn't light the path they travel at the least.

Maybe @Shpoike has a proper patch for QS. If not, this is not on my immediate TODO list.

CC: @ericwa

Diordany pushed a commit to Diordany/quakespasm that referenced this issue Aug 27, 2024
@Diordany
Copy link
Contributor

For any future participants, please ignore the reference from the commit message 5eb3ac5. It originally referenced an unrelated issue from Ironwail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants