Nettakrim / Signed-Paintings

14 stars 3 forks source link

Z-fighting #3

Closed davidthehat closed 1 year ago

davidthehat commented 1 year ago

If a transparent image is used, and the frame is set to "sign" or "block", z fighting occurs between the frame material and the blocks behind the painting. This occurs when the sign in placed on the side of a block. image image

Z fighting always occurs when the sign is placed on the top of a block. image image

Z fighting occurs with hanging signs and glass panes. image

The ideal solution would include the ability to set the offset from the block.

Nettakrim commented 1 year ago

the case with the transparent image and the sign on a wall is definitely avoidable, i could either extend the size of the cuboid to go through the wall, or do something cursed where only the back face is shifted forwards, creating a sort of shape (liquids do something similar, perhaps unintentionally)

the case where the sign is on top of a block can be considered working as intended - i want people to easily be able to make images flush with walls

hanging signs i can definitely slightly increase/decrease the cuboid depth to stop the z fighting


i can add a z offset slider under the y offset one - it would probably only have a one block range

Nettakrim commented 1 year ago

case 1 has been fixed by moving the painting a teeny amount into the block image

case 2 is working as intended as explained

case 3 has been fixed the same way - this does mean the tops and bottoms of double sided hanging sign images will have a teensy bit of z fighting, however i think this is acceptable considering how cool it looks when combined with glass panes now image