# \#raytracing

**URL:** https://discourse.threejs.org/tag/raytracing/1579.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Gargantua — a ray-traced black hole in my portfolio (WebGL, one draw call)](https://discourse.threejs.org/t/gargantua-a-ray-traced-black-hole-in-my-portfolio-webgl-one-draw-call/94960)

<div class="topic-metadata">

**Author:** [@jonas\_javier](https://discourse.threejs.org/u/jonas_javier)\
**Replies:** 4\
**Last updated:** [October 4, 2026, 2:29pm UTC](https://discourse.threejs.org/t/gargantua-a-ray-traced-black-hole-in-my-portfolio-webgl-one-draw-call/94960 "2026-10-04T14:29:05Z")

</div>

Hi everyone! I built my portfolio around a black hole inspired by Interstellar’s Gargantua, and I wanted to share it here. It isn’t a model or a texture: a fragment shader traces the light around a Schwarzschild blac…

---

## [WebGPU MRI Raycast Engine — Real-time Brain Reconstruction in the Browser](https://discourse.threejs.org/t/webgpu-mri-raycast-engine-real-time-brain-reconstruction-in-the-browser/89988)

<div class="topic-metadata">

**Author:** [@Oserebameh](https://discourse.threejs.org/u/Oserebameh)\
**Replies:** 2\
**Last updated:** [February 22, 2026, 4:34pm UTC](https://discourse.threejs.org/t/webgpu-mri-raycast-engine-real-time-brain-reconstruction-in-the-browser/89988 "2026-02-22T16:34:21Z")

</div>

Hey everyone! I’ve been building a WebGPU-based volume raycast engine for the past 8 months and wanted to share it here. It features full tissue segmentation to reconstruct 3D brain replicas from MRI scans, runnin…

---

## [Ray tracing with POV-Ray](https://discourse.threejs.org/t/ray-tracing-with-pov-ray/87942)

<div class="topic-metadata">

**Author:** [@yesbird](https://discourse.threejs.org/u/yesbird)\
**Replies:** 0\
**Last updated:** [November 6, 2025, 3:13am UTC](https://discourse.threejs.org/t/ray-tracing-with-pov-ray/87942 "2025-11-06T03:13:55Z")

</div>

Greetings ! For those, who want to render models with high-quality and free POV-Ray raytracer, I want to introduce my online POV-Ray studio, which can translate formats: obj, fbx, glb, gltf, stl to POV-Ray’s mesh2 and a…

---

## [Raytracing and volume render in vanilla webgpu](https://discourse.threejs.org/t/raytracing-and-volume-render-in-vanilla-webgpu/87684)

<div class="topic-metadata">

**Author:** [@Oserebameh](https://discourse.threejs.org/u/Oserebameh)\
**Replies:** 0\
**Last updated:** [October 22, 2025, 11:35am UTC](https://discourse.threejs.org/t/raytracing-and-volume-render-in-vanilla-webgpu/87684 "2025-10-22T11:35:15Z")

</div>

Hi all, just wanted to share something I’ve been working on. It’s a volume render of an entire mri scan in nifti format. I wrote a tissue segmentation algorithm to automatically identify different brain tissues( gray…

---

## [Webgpu Raytracing in one weekend](https://discourse.threejs.org/t/webgpu-raytracing-in-one-weekend/87682)

<div class="topic-metadata">

**Author:** [@Oserebameh](https://discourse.threejs.org/u/Oserebameh)\
**Replies:** 0\
**Last updated:** [October 22, 2025, 11:34am UTC](https://discourse.threejs.org/t/webgpu-raytracing-in-one-weekend/87682 "2025-10-22T11:34:22Z")

</div>

Hi all, just wanted to share my vanilla webgpu adaptation of Peter Shirley’s “Raytracing in One Weekend” initially written in c++. It’s an incredibly interesting resource for anyone looking to get into raytracing from sc…

---

## [🦈 Shark! ( global radiance caching )](https://discourse.threejs.org/t/shark-global-radiance-caching/87126)

<div class="topic-metadata">

**Author:** [@Usnul](https://discourse.threejs.org/u/Usnul)\
**Replies:** 5\
**Last updated:** [September 29, 2025, 6:52pm UTC](https://discourse.threejs.org/t/shark-global-radiance-caching/87126 "2025-09-29T18:52:39Z")

</div>

I was messing about with NVidia’s SHaRC in Shade, and thought I’d share my thoughts. SHaRC is a very catching name, it stands for Spatially Hashed Radiance Cache. The idea is to use a fixed amount of memory, like with j…

---

## [How to displace and color a hovered triangle and its neighbours of a mesh?](https://discourse.threejs.org/t/how-to-displace-and-color-a-hovered-triangle-and-its-neighbours-of-a-mesh/83816)

<div class="topic-metadata">

**Author:** [@JohannesKlauss](https://discourse.threejs.org/u/JohannesKlauss)\
**Replies:** 9\
**Last updated:** [June 14, 2025, 7:01pm UTC](https://discourse.threejs.org/t/how-to-displace-and-color-a-hovered-triangle-and-its-neighbours-of-a-mesh/83816 "2025-06-14T19:01:19Z")

</div>

I have a Raytracer and interaction going with a mesh. Hovering over the mesh I get the three indices of the vertecies that form the triangle and the faceIndex. But I am a bit at a loss on how I actually pass the informa…

---

## [Ray-traced shadows for the poor](https://discourse.threejs.org/t/ray-traced-shadows-for-the-poor/82665)

<div class="topic-metadata">

**Author:** [@Usnul](https://discourse.threejs.org/u/Usnul)\
**Replies:** 1\
**Last updated:** [May 31, 2025, 3:14am UTC](https://discourse.threejs.org/t/ray-traced-shadows-for-the-poor/82665 "2025-05-31T03:14:04Z")

</div>

A while back I was toying around with doing ray-tracing using signed distance fields. I did get quite far, so I thought I would share the direct shadowing use case: Demo Link This is in rendered using Shade, and as a…

---

## [Directional Light mapping in WebGPU ](https://discourse.threejs.org/t/directional-light-mapping-in-webgpu/82383)

<div class="topic-metadata">

**Author:** [@Usnul](https://discourse.threejs.org/u/Usnul)\
**Replies:** 3\
**Last updated:** [May 11, 2025, 6:58pm UTC](https://discourse.threejs.org/t/directional-light-mapping-in-webgpu/82383 "2025-05-11T18:58:26Z")

</div>

I’ve struggled with getting a good-looking global illumination for Shade for a while. Methods that look good are slow, and methods that are fast don’t look good. And as you go further into getting something good looking …

---

## [High quality volume rendering with WebGPU](https://discourse.threejs.org/t/high-quality-volume-rendering-with-webgpu/71183)

<div class="topic-metadata">

**Author:** [@yesbird](https://discourse.threejs.org/u/yesbird)\
**Replies:** 6\
**Last updated:** [January 27, 2025, 4:35am UTC](https://discourse.threejs.org/t/high-quality-volume-rendering-with-webgpu/71183 "2025-01-27T04:35:22Z")

</div>

Hi, all ! One of my current pilot projects is a server-side volume rendering with old-good Povray: POV-Lab. The idea is to make scene control and preview in three.js, then pass scene parameters to the server for render…

---

## [About VoxelConeTracing](https://discourse.threejs.org/t/about-voxelconetracing/73008)

<div class="topic-metadata">

**Author:** [@L\_ng\_Tu\_n\_Anh](https://discourse.threejs.org/u/L_ng_Tu_n_Anh)\
**Replies:** 15\
**Last updated:** [October 23, 2024, 9:31am UTC](https://discourse.threejs.org/t/about-voxelconetracing/73008 "2024-10-23T09:31:16Z")

</div>

Hello everyone, I am learning to implement Voxel Cone Tracing. I still haven’t figured out how to visualize voxels based on textureLod from mipmap (stored in texture2D or 3D). I usually use RayMarching to visualize voxel…

---

## [Raytracing says "object.layers is undefined"](https://discourse.threejs.org/t/raytracing-says-object-layers-is-undefined/63342)

<div class="topic-metadata">

**Author:** [@threejsman](https://discourse.threejs.org/u/threejsman)\
**Replies:** 2\
**Last updated:** [March 28, 2024, 5:15am UTC](https://discourse.threejs.org/t/raytracing-says-object-layers-is-undefined/63342 "2024-03-28T05:15:46Z")

</div>

Hello once again, when I change the raytracer from var intersects = raycaster.intersectObject( scene, true ); ( which yields results ) to var intersects = raycaster.intersectObject( objectsarray, true ); I get th…
