```Show HN: 我把旧的 canvas 3D 库重建成了一个小的 WebGL 2 库 – phoria2```
Show HN: I rebuilt my old canvas 3D library as a small WebGL 2 library – phoria2

原始链接: https://kevs3d.co.uk/phoria2/

pho·ri·a (fôr-) n. 双眼注视某一物体时的眼相对方向 phoria2 是一个小巧、快速的网页 3D JavaScript 库——图表、带标签的场景、仪表板和产品查看器,基于 WebGL 2 渲染器,API 一个下午即可学会。 从底层就为智能体与人类的易用性而设计! 你需要的一切 PBR 材质、实例化、点、线、标签、拾取、阴影、粒子和 glTF 模型。 轻量且快速 无运行时依赖,纯 ES 模块,且视图仅在内容变化时才绘制。 告诉你该写什么 每个选项都会被校验,错误会返回详细说明修复方法的错误信息——供你或你的编程智能体使用。 开源 MIT 许可。 npm install phoria2,然后在 GitHub 上找到代码、文档和 React 示例。 phoria.js 的重写版,phoria.js 是一个 2013 年的 JavaScript 库,曾将 3D 渲染到 canvas 2D 上下文。 那时我们还都是巫师。 Copyright © Kevin Roast 2013-2026 · GitHub · npm

黑客新闻 新 | 过去 | 评论 | 提问 | 展示 | 工作 | 提交 登录 展示 HN:我把旧的 canvas 3D 库重建成一个小的 WebGL 2 库——phoria2 (kevs3d.co.uk) 10 分 由 kevs3d 1 小时前 | 隐藏 | 过去 | 收藏 | 讨论 帮助 考虑申请 YC 的 2027 冬季批次! 申请 开放至 11 月 2 日。 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

pho·ri·a (fôr-)

n. The relative directions of the eyes during binocular fixation on a given object

phoria2 is a small, fast JavaScript library for 3D on the web - charts, labelled scenes, dashboards and product viewers, on a WebGL 2 renderer with an API you can learn in an afternoon. Designed for ease-of-use by agents and humans from the ground up!

  • Everything you need PBR materials, instancing, points, lines, labels, picking, shadows, particles and glTF models.
  • Light and quick No runtime dependencies, plain ES modules, and views that only draw when something changes.
  • Tells you what to write Every option is validated, a mistake comes back as an error that details the fix - for you, or your coding agent.
  • Open source MIT licensed. npm install phoria2, then find the code, the docs and a React example on GitHub.

A rewrite of phoria.js, a JavaScript library from 2013 that rendered 3D onto the canvas 2D context. Back when we were still wizards.

Copyright © Kevin Roast 2013-2026 · GitHub · npm

联系我们 contact @ memedata.com