PhysicsMod icon indicating copy to clipboard operation
PhysicsMod copied to clipboard

Incorrect Normals [BUG]

Open null511 opened this issue 2 years ago • 4 comments

Describe the bug "Dynamic Blocks" that can be moved by the player have incorrect normals, they are always pointing upwards instead of matching the geometry. In the attached screenshot, you can see a reference block in the middle showing the world-space normals. The left-most block is a regular, non-dynamic grass plant. The right-most block is a physics-enabled tall-grass plant.

To Reproduce You can display the raw normal values using "Arc" [shader] and the "Deferred Normals" debug view.

Screenshots 2022-12-21_14 44 16

Minecraft Version: 1.19.2 Physics Mod Version: v97

null511 avatar Dec 21 '22 19:12 null511

When dynamic-block physics are enabled, it cause the lighting to be done incorrectly - making things much brighter than they should be when sun is above.

OFF: 2022-12-21_14 52 29

ON: 2022-12-21_14 52 11

null511 avatar Dec 21 '22 19:12 null511

As we discussed in the discord there is no current proper way to fix this. In case anything changes on this subject I will try to fix it. Will leave this issue open for the future!

EDIT: as further discussed in discord the best solution is probably a button (in dynamic block settings menu) to switch the shading for PBR stuff.

haubna avatar Dec 21 '22 19:12 haubna

Hey, not sure if this is the same/similiar subject, but many Dynamic Blocks, look... weird, off? with this option turned on with PBR shaderpack and RP. Here's a screenshot for refference. When moving the pixels are often flickering, like weird artefacts. image

Here's how the doors look without Dynamic Blocks enabled: image

On top of that, there's also this "line" (and basically weird looking plants) on many vegetation with dynamic blocks enabled, that when I shift, it goes lower. Really odd. image image

Again, sorry if it should be in other issue or in a completely new one, wasn't sure

tajemniktv avatar Aug 16 '24 14:08 tajemniktv

same issue, the normal/tangent/midcoord attributes are incorrect/unset.

null511 avatar Aug 16 '24 15:08 null511