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

Mod Compatability Bug: Industrial Revolution #2549

Open
NolanHewitt opened this issue Jun 17, 2024 · 3 comments
Open

Mod Compatability Bug: Industrial Revolution #2549

NolanHewitt opened this issue Jun 17, 2024 · 3 comments
Labels
F-good-first-issue Flag: Good first issue for new contributors T-bug Type: Bug

Comments

@NolanHewitt
Copy link

NolanHewitt commented Jun 17, 2024

Bug Description

Sodium causes the fluids from the industrial revolution mod to display with the wrong colors. Someone on the mods discord said the mod uses a color map to re-texture the liquid from the mod and that its a rendering bug. This was tested on quilt, but I did make a fabric instance and the same issue also happens on fabric.

Correct Colors without Sodium:
indrev1

Incorrect Colors when using Sodium:
Screenshot 2024-06-16 204218

Reproduction Steps

Start game using only industrial revolution and its requirements, liquids look fine. Install sodium and indium, and the liquids are now incorrectly colored

Log File

latest.log

Crash Report

crash-2024-06-16_20.51.36-client.txt

@NolanHewitt NolanHewitt added the S-needs-triage Status: Needs triage label Jun 17, 2024
@jellysquid3
Copy link
Member

Probably caused by the color channels being flipped. This might be a bug in Indium...

@jellysquid3 jellysquid3 added T-bug Type: Bug F-good-first-issue Flag: Good first issue for new contributors and removed S-needs-triage Status: Needs triage labels Jun 18, 2024
@jellysquid3
Copy link
Member

I don't have my usual computer right now and can't look into this. But my suspicion is the problem is just color channels getting flipped (probably we wrongly interpret RGBA as ABGR somewhere). The easiest way to debug this would be to place a single fluid in an empty world, and place a breakpoint where vertices are being written to the chunk mesh. Working up the chain should allow someone to find where the wrong colors come from.

@NolanHewitt
Copy link
Author

Thanks for the update! Possibly unrelated, but I noticed that fluids from mods (fluids which normally render as the correct color) render as the opposite of the color they’re supposed to be in distant horizons chunks, I wonder if that’s related? I know DH does a lot of rendering stuff for their LOD system so it might be completed unrelated to this, the issue just sounds similar to this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-good-first-issue Flag: Good first issue for new contributors T-bug Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants