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

Shadows render from the wrong direction with Optifine shaders #13

Closed
TLATER opened this issue Jul 31, 2021 · 8 comments
Closed

Shadows render from the wrong direction with Optifine shaders #13

TLATER opened this issue Jul 31, 2021 · 8 comments

Comments

@TLATER
Copy link

TLATER commented Jul 31, 2021

I recently updated my create version, which introduced this flywheel dependency.

I'm not 100% sure the problem comes from here, but given that this seems to be a rendering overhaul partially targeting that mod, I think it's at least a good place to start :) Do tell if I should move this elsewhere.

I've only seen fallout from moving create objects so far, if there are other things I could look at to help pin down the issue, please ask!

Context

After an update of create that includes the flywheel dependency, shadows on moving create objects now seem to render from the wrong direction when using optifine shaders.

Mods

  • Flywheel 0.2.0
  • Create 0.3.2c
  • OptiFine HD U G8

Tested Shaders

Screenshots

It's somewhat hard to accurately represent the issue. Instead of logs (since those have no interesting info, I'll happily provide logs if asked, though), I think screenshots do better here.

I hope it's somewhat clear that in the "before" screenshot the shadows appear neatly behind the sail frames, on the windmill body, whereas in the "after" they appear on the ground/building before me. Shadows seem to vaguely be relative to the player.

The shadows also move with in the inverse direction of the camera, which makes this effect a whole lot more jarring than it may seem.

These screenshots are both from a very modded version of the game, since I only have the given screenshot of the old version; if you'd like me to produce comparison screenshots with a clean environment, I'll happily do so, but this is a bit easier right now - I have reproduced it with the listed mods isolated :)

Before (Create/Flywheel <= 0.3.2b/0.1.1)

2021-05-04_00 40 27

After (Create/Flywheel == 0.3.2c/0.2.0)

2021-07-31_02 12 53

Video

I uploaded a short video to youtube in a test world with just the above mods installed, where i'm flying around a windmill to showcase the issue: https://youtu.be/J0dX10QfUmw

@Duorhs
Copy link

Duorhs commented Jul 31, 2021

I got the same issue, and after standing a few second my game even crashed...Here is my log
Creators-of-Create/Create#2064

@TLATER
Copy link
Author

TLATER commented Jul 31, 2021

@Duorhs I had a crash like that too, but it was likely caused by using the wrong version of selene with supplementaries. I've not seen it since fixing that, with a few hours of playtime.

You seem to have a lot of other mods installed, I think that crash is a red herring and unrelated to this - try and isolate out just the mods causing the behavior, it's nigh impossible to debug otherwise :)

@Duorhs
Copy link

Duorhs commented Jul 31, 2021

@Duorhs I had a crash like that too, but it was likely caused by using the wrong version of selene with supplementaries. I've not seen it since fixing that, with a few hours of playtime.

You seem to have a lot of other mods installed, I think that crash is a red herring and unrelated to this - try and isolate out just the mods causing the behavior, it's nigh impossible to debug otherwise :)

Thanks for reply , I play with a lot of mods , but everything is fine until I update Create & Flywheel , Thermal Series and Better Foliage and CraftTweaker today. However, my game crashed after it loaded so the world was saved with these newer version mods. I tried to start a new game , it didn't crash . But downgrading these mods and load the old world will be another type of crash. So I can't ioslate it with my old world...

@TLATER
Copy link
Author

TLATER commented Jul 31, 2021

@Duorhs You've not tried everything yet!

The error seems related to create's belts - read the first line of your error log ;) So maybe you need to have placed at least one of those.

If that's not enough to isolate the mods, try the following:

  1. Create a backup of your world (!), and never open this one directly
  2. Create a copy of your backup
  3. Disable all mods, except create + flywheel
  4. Start the game and enter that copy
  5. Play until you see your crash
  6. If no crash occurs, repeat steps 2-6, except enable another mod you suspect in step 2
  • In your case, try these mods in order:
    • Thermal Series
    • Better Foliage
    • CraftTweaker
    • Optifine
    • Any other mods you have
  1. Whenever you do get a crash, start the game with just create, flywheel and the mod you just enabled

You'll eventually reproduce your issue :) The trick is keeping an untouched copy of your world, so that your mods can screw up however much they like.

Once you have isolated the mods causing the issue, create a new issue with those. I doubt it will be related to this issue, though the error message does suggest that create is involved. Don't think shaders care much about the block facing direction, so optifine is likely not the culprit.

If this seems like a lot of effort, yes, it is!

The reason this is important is because the mod authors would have to go through exactly this procedure to figure out what's going on anyway, but they don't even know what mods you're running. Even if they did, it's a long process and they have more important things to look at, even if they're doing this full-time and as paid work. So do your part and help produce an exact reproduction scenario - it's an open source project after all, contribute what you can if you want something improved!

If you can only reproduce it in your existing world, you may even need to upload a copy of it.

Anyway, all of this discussion is irrelevant to this particular issue, so feel free to continue it on Creators-of-Create/Create#2064.

@Duorhs
Copy link

Duorhs commented Jul 31, 2021

@Duorhs You've not tried everything yet!

The error seems related to create's belts - read the first line of your error log ;) So maybe you need to have placed at least one of those.

If that's not enough to isolate the mods, try the following:

  1. Create a backup of your world (!), and never open this one directly
  2. Create a copy of your backup
  3. Disable all mods, except create + flywheel
  4. Start the game and enter that copy
  5. Play until you see your crash
  6. If no crash occurs, repeat steps 2-6, except enable another mod you suspect in step 2
  • In your case, try these mods in order:

    • Thermal Series
    • Better Foliage
    • CraftTweaker
    • Optifine
    • Any other mods you have
  1. Whenever you do get a crash, start the game with just create, flywheel and the mod you just enabled

You'll eventually reproduce your issue :) The trick is keeping an untouched copy of your world, so that your mods can screw up however much they like.

Once you have isolated the mods causing the issue, create a new issue with those. I doubt it will be related to this issue, though the error message does suggest that create is involved. Don't think shaders care much about the block facing direction, so optifine is likely not the culprit.

If this seems like a lot of effort, yes, it is!

The reason this is important is because the mod authors would have to go through exactly this procedure to figure out what's going on anyway, but they don't even know what mods you're running. Even if they did, it's a long process and they have more important things to look at, even if they're doing this full-time and as paid work. So do your part and help produce an exact reproduction scenario - it's an open source project after all, contribute what you can if you want something improved!

If you can only reproduce it in your existing world, you may even need to upload a copy of it.

Anyway, all of this discussion is irrelevant to this particular issue, so feel free to continue it on Creators-of-Create/Create#2064.

Thanks a lot, this gives me clear and simple ideas to figure out the problem, I'll find time to try it out!

@Duorhs
Copy link

Duorhs commented Aug 1, 2021

While I was doing some work to test, I noticed that my issus in Create has been addressed. I built the mod with the latest code and it didn't crash (by Create) any more...However the shadow issue as this topic mentioned at first is still there.

@Jozufozu
Copy link
Member

Jozufozu commented Aug 8, 2021

Fixed in latest create/flywheel, this was a weird one for sure

@Jozufozu Jozufozu closed this as completed Aug 8, 2021
@TLATER
Copy link
Author

TLATER commented Aug 8, 2021

Thanks!

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