TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Drawing Lines is Hard (2015)

46 点作者 Doches超过 6 年前

4 条评论

mpax超过 6 年前
Does there not exist some ridiculously parallel equivalent of Bresenham or Wu? I imagine with the right datastructure you should be able to do pixel/line intersection tests in the pixel shader?
评论 #18023160 未加载
评论 #18025294 未加载
dang超过 6 年前
A couple of earlier discussions:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13671016" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13671016</a><p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9179336" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=9179336</a>
dreamcompiler超过 6 年前
It&#x27;s easy to extend Bresenham&#x27;s algorithm (and probably Wu&#x27;s too) to work in a 3D voxel space. But I don&#x27;t know if it would solve the problems in TFA or whether the speed penalty of working with voxels would be worth it. Might be an interesting experiment.
评论 #18025361 未加载
matkinz超过 6 年前
It&#x27;s hard to draw 2D lines using a 3D API? Doesn&#x27;t sound like a revelation.
评论 #18024473 未加载