3D 渲染中的光线追踪几何体
Raytracing Geometries in 3D Rendering

原始链接: https://andeplane.github.io/Raytracing/

交互式几何入门 光线追踪器通过从相机穿过每个像素发射光线,并找出每条光线击中表面的位置来渲染图像。本工具旨在探讨这一核心数学问题:如何计算该交点?选择一种几何体(球体、圆柱体或圆环体),并通过三个视角进行探索: 📐 理论:逐步推导相交多项式 🎮 直觉:交互式瞄准光线并观察根的变化 💻 代码:实时编辑 GLSL,查看着色器即时渲染 开始探索 →

```Hacker News | 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 | 登录 3D 渲染中的光线追踪几何体 (andeplane.github.io) 4 分 | kvakkefly | 2 小时前 | 隐藏 | 过往 | 收藏 | 1 条评论 kvakkefly 2 小时前 [–] 在 Cognite,我们渲染大型 CAD 模型,并一直使用这种技术(公告板技术)来渲染大量几何体。我创建这个页面是为了迎接一群想要钻研酷炫问题的数学精英!如果你能高效地在着色器中渲染许多圆环,请告诉我!回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索: ```
相关文章

原文

An interactive geometry primer

A ray tracer renders images by casting rays from a camera through every pixel and finding where each ray hits a surface. This tool explores the core mathematical question: how do you compute that intersection?

Choose a geometry — sphere, cylinder, or torus — and explore it across three lenses:

📐

Theory

Derive the intersection polynomial step by step

🎮

Intuition

Aim a ray interactively and watch the roots move

💻

Code

Edit live GLSL — see the shader render in real time

联系我们 contact @ memedata.com