EntroPi-Games / GPU-Line-of-Sight

GPU Line of Sight / Field of View visualization for Unity
Apache License 2.0
129 stars 24 forks source link

cutout artefacts #8

Open alex22121991 opened 5 months ago

alex22121991 commented 5 months ago

Hi, I tested your awsome package and it is the thing that I was lookig for. It simulates a camera cone like I want it to be. Now I'm stuck on a problem with the cutout arficats like it is marked in the picture below. Is it possible to reduce or smooth the serrations? I'm not really a shader pro so any help or any suggestions what to do in the shader code for this would be great. Thanks. zacken

EntroPiGames commented 5 months ago

I think that scaling the dark gray object vertically, so that it has more height, should solve the problem.

alex22121991 commented 5 months ago

If you make the object higher, the camera no longer looks over the object. However, the camera should be able to do this.

Icezman001 commented 2 months ago

If you make the object higher, the camera no longer looks over the object. However, the camera should be able to do this.

Wouldn't you be able to add a high invisible collider that is the same size/dimensions as the model/wall and allows the camera to travel through? That should fix the issue