Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Depth range from the ground: far bodies, their orbits and rings tie or invert in the 24-bit depth buffer

未关闭
#175 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript, three.js

调研方向

Start by reading the depth-buffer and projection setup, then check the composite and Cesium depth handoff described in CESIUM.md and portal-netgl. Compare reversed-Z, logarithmic depth, and analytic occlusion against the stated telescope-FOV cases; done means Jupiter occludes the far halves of its moons' orbits, Saturn occludes its far ring arc, the Moon hides background stars, and space views retain parity.

由索引模型根据 Issue 内容生成。

描述

track:rendering

Found while fixing the atmosphere dashes over Jupiter (#174).

Problem

From Earth's surface the near plane is ~100 m, so every body beyond a few million km lands on or one 24-bit step under the far plane. Depth can then no longer order them:

  • Orbits over their planet: Ganymede's orbit line ties with Jupiter's disc, and overlays pass the depth test on a tie, so the far half of the orbit draws across Jupiter (telescope FOV from the ground).
  • Rings: Saturn's far ring arc draws over the disc from the ground.
  • The Moon and stars: catalogue stars, pulled to 0.999999·w, sit nearer than the Moon from the ground (≈0.9999995), so a bright star behind the Moon could show through it.

#174 fixed the atmosphere pass's own misreading of these depths; the ordering problem remains.

Options

  • Reversed-Z with a float depth buffer (WebGL2: DEPTH_COMPONENT32F plus a reversed projection): near-uniform relative precision over the whole range. three.js supports reverseDepthBuffer (r163+); check the composite and Cesium's depth handoff (CESIUM.md) and portal-netgl.
  • Logarithmic depth (three's logarithmicDepthBuffer): simple, but writes gl_FragDepth, which costs early-z and touches every custom shader.
  • Analytic occlusion: overlays and background test against the bounding spheres of nearer bodies in the shader. Targeted, no buffer change.

Done when

From Earth's surface at a telescope FOV, Jupiter hides the far half of its moons' orbits, Saturn's disc hides the far ring arc, and the Moon hides the stars behind it; nothing changes in space views (parity).


Generated by Claude Code

主要语言
JavaScript
星标
55
派生
4
平均合并
9 小时 32 分钟
30 天内合并 PR
136

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

celestiary/web 的其他 Issue

查看 celestiary/web 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。