<p>I assume you mean glowing geometry (not sky functions). There are several ways to do this, but as a simple example (not optimized ofc): since you have a pointlight you could ray trace a sphere or project a 3D disk with analytic AA (would remove jaggies/flicker at great distance) into a separate texture (with visibility occlusion!) and apply a bloom filter on top of the sphere (maybe separated Gaussian filter or according to: <a href="https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom" rel="nofollow noreferrer">Physically Based Bloom</a>).</p>
<p>Hope this was helpful!</p>

CC BY-SA 4.0
2023-02-01T09:25:44.667Z
2023-02-04T07:35:32.473Z
2023-02-04T07:35:32.473Z
Mathis
<p>Another option to make objects glow for Ray tracers in particular is to add an emissive material to objects that need to glow.</p>
<p>Essentially make the objects generate light. The color of the light is the color you want the object to glow. Radius, strength and density are also options. Implementation generally can play off existing code when rays are being traced. Also the implementation can start off fairly simple as an integration of a constant density over the distance a ray travels through the glowing region. Which can be solved analytically. It can also be extended without major changes to handle reflections, scattering, the list goes on and on. Essentially when a physically based effect is added to the system in general, it can be added to objects that glow, even made an option.</p>
<p>It is a larger effort to get it up and running, but makes for a nice physically based implementation for ray tracers that are going that direction.</p>

CC BY-SA 4.0
2023-02-05T14:14:10.387Z
2023-02-05T14:14:10.387Z
pmw1234
<p>My raytracer has a point light source, it works as it should, illuminates the scene, but there is a problem, it is not visible, I would like to add glowing objects to the raytracer, for example a sphere that would look like the sun</p>
<p><a href="https://i.sstatic.net/XEjxp.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/XEjxp.jpg" alt="enter image description here" /></a></p>
<p>I need any object to be able to glow whether it's a triangle (or a line?).</p>
<p>How to implement it?</p>
<p>Sorry for my poor English)</p>

CC BY-SA 4.0
2023-01-09T14:17:26.903Z
Your question asks about glowing objects, but the posted image shows atmospherics. Do you want glowing or atmospherics?
pmw1234
CC BY-SA 4.0
2023-01-10T18:22:48.597Z
glowing objects
LINUX_ADMIN
<raytracing><3d>
Glowing objects in a raytracer? How it works?
LINUX_ADMIN
# Glowing objects in a raytracer? How it works?

(Asked by: username_0 on 2023-01-06)

My raytracer has a point light source, it works as it should, illuminates the scene, but there is a problem, it is not visible, I would like to add glowing objects to the raytracer, for example a sphere that would look like the sun

[![enter image description here](https://i.sstatic.net/XEjxp.jpg)](https://i.sstatic.net/XEjxp.jpg)

I need any object to be able to glow whether it's a triangle (or a line?).

How to implement it?

Sorry for my poor English)

**Tags:** raytracing, 3d

> **Comments:**
> **username_1**: Your question asks about glowing objects, but the posted image shows atmospherics. Do you want glowing or atmospherics?  
> **username_0**: glowing objects  

---

## 2 answers

### Answer by username_2 on 2023-02-01. Score: 2 | Accepted answer

I assume you mean glowing geometry (not sky functions). There are several ways to do this, but as a simple example (not optimized ofc): since you have a pointlight you could ray trace a sphere or project a 3D disk with analytic AA (would remove jaggies/flicker at great distance) into a separate texture (with visibility occlusion!) and apply a bloom filter on top of the sphere (maybe separated Gaussian filter or according to: [Physically Based Bloom](https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom)).

Hope this was helpful!


---

### Answer by username_1 on 2023-02-05. Score: 1

Another option to make objects glow for Ray tracers in particular is to add an emissive material to objects that need to glow.

Essentially make the objects generate light. The color of the light is the color you want the object to glow. Radius, strength and density are also options. Implementation generally can play off existing code when rays are being traced. Also the implementation can start off fairly simple as an integration of a constant density over the distance a ray travels through the glowing region. Which can be solved analytically. It can also be extended without major changes to handle reflections, scattering, the list goes on and on. Essentially when a physically based effect is added to the system in general, it can be added to objects that glow, even made an option.

It is a larger effort to get it up and running, but makes for a nice physically based implementation for ray tracers that are going that direction.


---

