Jump to content

Z fight?


Alienhead
 Share

Go to solution Solved by Josh,

Recommended Posts

  • 2 weeks later...
On 10/18/2024 at 10:57 AM, Alienhead said:

One more weird occurrence, These blocks of hay have Mass and physics set. They work fine until I place them in this storage room then they have no collision or physics whatsoever.

hay.thumb.png.183ed16077239022c0508ba50fc48200.png

Odd.

I am guessing this related to the collision problem that has been solved already?

On 10/18/2024 at 5:25 AM, Alienhead said:

In this video Ive moved the plant back..  its not even close to the decal but still displays the unwanted effect.

1326208909_Editor2024-10-1807-19-24-71.gif.294bfdcb292b5182ce9604900b990afb.gif

It definitely looks like an error in the lighting shader code that is not discarding pixels...Hmmmm, does this plant use transparency, or just alpha masking? If the transparency pass is not writing to the depth buffer, then I guess it would make sense that lights and decals would show up in unexpected places...

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

I am trying to reproduce this error in the editor, but so far am unable to see any problems.

If you have a simple scene with the necessary materials to show the effect, it would help a lot.

I would also like to know what GPU this occurs on. I am using a GEForce 1080 at the moment.

image.thumb.png.df14ada8fec8fd497a751d61c6a71615.png

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • 3 months later...
  • 2 weeks later...

Okay, to get this effect, you need a decal plus:

  • Two-sided material setting must be enabled.
  • Backface lighting material setting must be disabled.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Okay, I am just going to walk through all the steps on this...

Backface lighting with a two-sided alpha-masked material looks great.

image.thumb.png.de9d353a5a92098232b8dfbde113dadb.png

And from the front side...

image.thumb.png.d973dcd2f78a4fd34755ed285c4d752d.png

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • Solution

Okay, it just required some fine tuning of the lighting code. Issue is fixed. A project sync is required to get the updated shaders.

Here is a test map. The nature pack DLC is required to open the map.

lighting test.zip

Untitled.thumb.jpg.e783a30f1b2265be5923f60d9e42e766.jpg

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...