pastasfuture / com.hauntedpsx.render-pipelines.psx

A scriptable render pipeline for emulating Playstation-1-style graphics on contemporary hardware.
https://twitter.com/HauntedPs1/
MIT License
383 stars 26 forks source link

Gameobject Flicker Issue (Material) #36

Closed im-sampss closed 11 months ago

im-sampss commented 1 year ago

So I have been trying out this shader for a while and came across some issue. When I changed the material to the corresponding shader, it has this kind of flickering, where the trees pop in and out, although the trees are present because I can collide with their colliders except they're not being rendered, they just flicker everywhere, it also happens with objects that I just changed the material to PSX/Lit,. Here's the video and pictures for additional information.

https://github.com/pastasfuture/com.hauntedpsx.render-pipelines.psx/assets/104110725/b1dc7043-47e6-4109-84c7-db081494f7e1 https://github.com/pastasfuture/com.hauntedpsx.render-pipelines.psx/assets/104110725/1944ef2a-04a0-4c12-9772-c6addcae3d74

image_2023-05-15_125328837

any fix to this? thank you!

pastasfuture commented 1 year ago

Interesting! I’ve never seen this specific bug before - but I just noticed in your material screenshot you have gpu instancing on - can you try turning that off to see if the bug goes away? I think gpu instancing may be bugged. If we can confirm the issue is gpu instancing I can then look at fixing that

im-sampss commented 1 year ago

it did go away! the objects stopped flickering now, thank you very much and will be looking forward for the fix! have a good one!

pastasfuture commented 11 months ago

Fixed on master as of e779c1c2af4a4a1fc2b98807063cc547ea49877d