-
Hey all, First time posting here, so I wanted to start off by thanking you for this excellent tool. I've been trying use it at the moment to plot some navigational and gis data and have noticed some severe Z fighting when working with very large objects (like the Earth). In particular, in the attached screenshot I've been trying to plot some borders as line primitives on top of a glb mesh of the WGS84 ellipsoid which I've put into a ModelPrimitive (all within a SceneUpdate). In the screenshot, the right side is how things look in the web app while the left side is how it looks on my locally hosted version with the edit mentioned below. The screenshot is from very far away, but even from much lower the Z fighting makes the borders difficult to see. On the left side of the screenshot, I was able to eliminate this problem using a logarithmic depth buffer by adding a single line to Renderer.ts:
I'm curious if this could be added as a configurable option for 3D panels. I'm happy to take on the effort of putting together a full PR for that, but wanted to check if y'all were amenable to that change first. Thanks again for all of your hard work on this great open source tool! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
This would be a reasonable thing to consider adding (previous attempt: https://github.com/foxglove/studio/pull/4662), but would be blocked by foxglove/three-text#63 |
Beta Was this translation helpful? Give feedback.
-
This is now implemented and available on the web app! It will be in the next release of the desktop app. Docs are updated here: https://github.com/foxglove/docs/pull/220 |
Beta Was this translation helpful? Give feedback.
This is now implemented and available on the web app! It will be in the next release of the desktop app. Docs are updated here: foxglove/docs#220