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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Bilinear interpolation on a quadrilateral using Barycentric coordinates

143 点作者 mariuz大约 2 个月前

9 条评论

Kleptine大约 2 个月前
To answer some of the questions here, the reason this has not been used before is because this technique requires being able to access the quad definitions (ie. which 4 vertices makeup each quad) within the gpu.<p>Up until recently with Mesh Shaders, there&#x27;s really just been no good way to send this data <i>to</i> the GPU and read back the barycentric coordinates you need in the fragment shader for each pixel.<p>The article offers several options, to support older GPUs, like Geometry Shaders and Tesselation shaders. This is good, but these are really at best Terrible Hacks(tm). Proof of the ability to contort old extensions is not proof of reasonable performance!<p>Notably, geometry shaders are notorious for bad performance, so the fact that they list them as a viable strategy for older devices makes it pretty clear they aren&#x27;t thinking much about performance, just possible compatibility.<p>Still, I think this is very cool, and now that GPUs are becoming much more of a generic computing device with the ability to execute arbitrary code on random buffers, I think we are nearly at the point of being able to break from the triangle and fix this! We hit this triangulation issue several times on the last project, and it&#x27;s a real pain.
hnuser123456大约 2 个月前
This is one of those things that feels like a broken&#x2F;half-assed&#x2F;oversimplified implementation got completely proliferated into the world a long time ago and it took several years for the right person to do a full-depth mathematical analysis to reveal what we should&#x27;ve been doing all along. Similar to antialiasing and sharpening, texture filtering, color spaces and gamma correction, etc.<p>It reminded me of this article specifically: <a href="https:&#x2F;&#x2F;bgolus.medium.com&#x2F;the-best-darn-grid-shader-yet-727f9278b9d8" rel="nofollow">https:&#x2F;&#x2F;bgolus.medium.com&#x2F;the-best-darn-grid-shader-yet-727f...</a>
评论 #43656383 未加载
评论 #43659350 未加载
评论 #43657517 未加载
评论 #43656323 未加载
评论 #43656964 未加载
评论 #43656629 未加载
bla3大约 2 个月前
How does this compare to <a href="https:&#x2F;&#x2F;jcgt.org&#x2F;published&#x2F;0011&#x2F;03&#x2F;04&#x2F;paper.pdf" rel="nofollow">https:&#x2F;&#x2F;jcgt.org&#x2F;published&#x2F;0011&#x2F;03&#x2F;04&#x2F;paper.pdf</a>? It seems superficially pretty similar.
westurner大约 2 个月前
&#x2F;? Barycentric<p>From &quot;Bridging coherence optics and classical mechanics: A generic light polarization-entanglement complementary relation&quot; (2023) <a href="https:&#x2F;&#x2F;journals.aps.org&#x2F;prresearch&#x2F;abstract&#x2F;10.1103&#x2F;PhysRevResearch.5.033110" rel="nofollow">https:&#x2F;&#x2F;journals.aps.org&#x2F;prresearch&#x2F;abstract&#x2F;10.1103&#x2F;PhysRev...</a> :<p>&gt; <i>More surprisingly, through the barycentric coordinate system, optical polarization, entanglement, and their identity relation are shown to be quantitatively associated with the mechanical concepts of center of mass and moment of inertia via the Huygens-Steiner theorem for rigid body rotation. The obtained result bridges coherence wave optics and classical mechanics through the two theories of Huygens.</i><p>Phase from second order amplitude FWIU
sabslikesobs大约 2 个月前
Very interesting! This reminds me of how stumped I was learning about UV unwrapping for texturing. Even simple models are difficult to unwrap into easily editable textures. &quot;Why can&#x27;t I just draw on the model?&quot;<p>Blender has a few plugins these days that make it a lot easier --- one that impressed me was Mio3 UV: <a href="https:&#x2F;&#x2F;extensions.blender.org&#x2F;add-ons&#x2F;mio3-uv&#x2F;" rel="nofollow">https:&#x2F;&#x2F;extensions.blender.org&#x2F;add-ons&#x2F;mio3-uv&#x2F;</a>
评论 #43662629 未加载
GolDDranks大约 2 个月前
I am definitely not an expert in 3D graphics... but this looks such an astonishingly simple and effective method, it makes me to question why this wasn&#x27;t already thought of and picked up?<p>I get that with fixed-pipeline GPUs you do what the hardware and driver make you do, but with the advent of programmable pipelines, you&#x27;d though improving stuff like this would be the first things people do?<p>Anyway, gotta run and implement this in my toy Metal renderer.
评论 #43657087 未加载
评论 #43657112 未加载
评论 #43656483 未加载
评论 #43664255 未加载
julian9499大约 2 个月前
This actually seems quite easy to implement. Any thoughts on the performance hit a program takes when going this route instead of using one of the workarounds?
评论 #43657447 未加载
MeteorMarc大约 2 个月前
Is this really new? Will it become an option in Unity, Unreal and the like? The results seem convincing!
textlapse大约 2 个月前
(deleted)
评论 #43657667 未加载