vscode-3d-preview icon indicating copy to clipboard operation
vscode-3d-preview copied to clipboard

Reduce near clip distance

Open LeroyR opened this issue 2 years ago • 2 comments

LeroyR avatar Sep 21 '23 14:09 LeroyR

Hi @LeroyR, thanks for your pull request.

Before merging, I would like to ask you why you need to decrease the near clip distance. According to my experience, the huge ratio of the far clipping distance to the near clipping distance makes the rendering result incorrect due to the need to use that ratio when computing the perspective transformation matrix.

So, in my opinion, the near clipping distance = 0.000001 is rather too small, and I think the previous value of 0.1 can work well for most situations.

tatsy avatar Sep 22 '23 02:09 tatsy

I am using point clouds with values in meters. 0.1=10cm clipping values do not really let me see anything on small models.

But i also dislike clipping in 3d software if i can freely control the camera in distinction to games where z-fighting can be more of a problem.

I did not encounter any artifacts but this change might not be applicable for any use case. I tried adding a configuration value but failed (not a fronted guy :smile:)

LeroyR avatar Oct 31 '23 16:10 LeroyR