processing / processing/processing4
Double precision support for all fundamental geometry classes (PShape, PVector ...)
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 494
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 3
描述
Relevant sub-area for this feature?
Core/Environment/Rendering
Feature description
When using PShape and PVector calculations alongside with native Path2D.Double objects (using various conversions) there are obvious, randomly appeared but systematic rendering artifacts - rounding errors (same result when using same parameter values) upon all kinds of calculations, transformations etc. With all that CPU processing power around, I guess there is no practical reason of not adding Double coordinate support for all classes without braking compatibility with existing projects.
Benefits
Use PShape and PVector classes alongside with other classes that support natively double precision coordinates like Path2D without precision errors. Future proof Processing projects.
Possible challenges
I do not have a clue what might be the impact in codebase. I guess there should be a compatibility code care for all existing projects and default will be Float.
Additional context
An Article about the precision artifacts: https://blog.generativedarkroom.com/why-i-switched-from-processing-to-openrndr-b50c931d21ae
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 PShape 和 PVector 类,并将它们的坐标和计算路径与原生 Path2D.Double 对象进行比较。确定基础几何类中双精度支持的范围,以及如何保持与现有基于 float 的项目的兼容性;完成标准是达成一致的设计,并在没有报告中的渲染伪影的情况下保持一致的精度行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- computer-graphics
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100