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

Wrapping draw code is inconsistent

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

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp
领域
game-dev

调研方向

Start by mapping the separate wrapping paths named in the issue: terrain objects, primitives, SceneEditors, and GUIs/HUD; the payload does not identify files or tests. The proposed direction is to move wrapping out of individual draw code and tile the scene into the screen; determine which draw paths need to change and how to verify wrapped edges and very small scenes.

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

描述

bug

Pretty much all uses of wrapping code are different and also mostly broken in a number of different places:

  1. Terrain objects don't wrap across xy wrapped corners (inconsistently as well between objects, some miss one corner, sometimes there's just one corner), and sometimes don't wrap on y wrapping edges
  2. Nothing behaves correctly on very small scenes (MOs draw at most 3 times, though sometimes 4, primitives draw at most 2 times)
  3. Primitives wrapping is just a menace (fixed in gpu-primitives)
  4. SceneEditors also implement their own thing, that doesn't wrap y, and definitely not xy
  5. GUIs/HUD don't wrap at all mostly (it's a miracle they work across seams at all)

Proposing to just not handle wrapping in the individual draw code at all and instead just calling draws as many times as needed to tile the scene into the screen, meaning things just draw at their scene coordinates (prevents overdraw on seams)

主要语言
C++
星标
329
派生
47
平均合并
6 天 10 小时
30 天内合并 PR
14

环境准备

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

从这里开始

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

cortex-command-community/Cortex-Command-Community-Project 的其他 Issue

查看 cortex-command-community/Cortex-Command-Community-Project 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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