NoFOMO
搜索 中EN 登录 注册

最高第 3 名 现在第 3 名

three.js八面体阴影改进版发布

开发者发布 three.js 中 GTA6 风格八面体 impostor 改进版,新增深度视差与着色器调试可视化,开源可试。

名次变化

要点

  • @vladkrutenyuk 在 @threejs 中发布了改进版 GTA 6 octahedral impostors,新增深度视差和着色器管线关键阶段的实时调试可视化。
  • 该方法仍是从 64 视图图集中混合 3 个视图,绘制在 8 条轮廓条带上,每个视图的 4 位边缘打包进两个 uint,并在顶点着色器中合并。
  • 现在每个片段投射真实相机射线,在命中帧平面处读取烘焙深度并沿射线步进到表面,从而消除 3 个视图之间的重影。
  • 此次更新还将视图射线改为逐片段、修复条带间的树干接缝、从未偏移的 UV 选取 mip,并将深度向轮廓边缘外膨胀;教程文章也已更新。

要点和反应摘要由 AI 依据本页推文整理,请以原推为准。 我们怎么用 AI

原推

Vladislav Kruteniuk @vladkrutenyuk 616 粉丝

Introducing a refined version of GTA 6 octahedral impostors in @threejs: - depth parallax and a few other fixes - live debug visualizations for the key stages of the shader pipeline Live demo: https://t.co/ehi88Je8zV Source, as before, open in the editor right in your browser: https://t.co/HVc15OMRF6 Under the hood it's still 3 blended views from a 64-view atlas, drawn on 8 silhouette strips whose 4-bit edges are packed into two uints per view and merged in the vertex shader. What's new is depth. Every fragment casts the real camera ray, reads the baked depth where it hits the frame plane and steps along the ray to the surface, so all 3 views sample the same point of the tree and the ghosting between them is gone. Along the way I moved the view rays to per-fragment, fixed the trunk seams between strips, picked mips from the unshifted UVs and dilated depth past the silhouette edges. The tutorial article is updated too. #threejs #webgpu #gamedev #kvyverse
推文配图
560点赞 50转发 20回复 1.6万浏览

在 X 上查看 收藏

X 上的热门回复

X 上的反应: 回复整体偏正面,有人称其“很巧妙”,并表示要借鉴裁掉空白区域的做法用于自己的 Quest 游戏,还有人感叹“看着像真 3D”。也有人请求增加更多示例,另有人提到这在 Godot 里也已经运行得不错。

登录后查看 X 上的 5 条热门回复

来自 @WrongNebula, @micha, @Father_Russia69 等,已过滤广告,附中英文翻译。

免费注册 已有账号?登录

讨论 0

还没有人讨论,来说第一句。

推荐信源

觉得我们漏了哪个一手信源,或者该关注什么话题?告诉我们。审核通过后,所有人的榜单都会覆盖到它。

@用户名,或者主页链接