<p>Volume rendering is not like ray-tracing, it is like "scene rendering". i.e. there exists several algorithms to render volumes.</p>

<p>One close to ray-tracing is ray-marching, and has may variants. The simplest:
<em>for every pixel in the screen plane, trace a ray starting from the eye point to the screen pixel location, and advance along the ray by constant steps. At each voxel calculate the pixel color and transparency, blend it to the pixel value, and so on.</em></p>

<p>Blend = </p>

<ul>
<li><p>$C_{pix} += T_{pix}*C_{vox}*(1-T_{vox})$ </p></li>
<li><p>$T_{pix} *= T_{vox}$</p></li>
</ul>

<p>with $C_{vox},T_{vox}$ the color and transparency of the current voxel, and $C_{pix},T_{pix}$ the cumulated color and transparency of the pixel.</p>

CC BY-SA 3.0
2016-02-21T04:21:20.363Z
how the objects in the scene are defined? In ray tracing you calculate intersections using the implicit function, ie, sphere, plane, cone, etc, how is it in ray marching? also can you expaling the meaining of the variables that you wrote in your post?
arcollector
CC BY-SA 3.0
2016-02-21T09:39:25.080Z
I mimicked your very definition, which did not defined meshes :-). For volume rendering, the scene is made of density stored in each voxel, i.e. each cell of the 3D grid.
Fabrice NEYRET
CC BY-SA 3.0
2016-02-21T09:42:41.673Z
I modified the equation and completed the definition. Now for such basic definitions, you should rather google or open a book. ;-) https://en.wikipedia.org/wiki/Volume_rendering
Fabrice NEYRET
CC BY-SA 3.0
2016-02-21T00:44:30.847Z
2016-02-21T09:41:26.677Z
2016-02-21T09:41:26.677Z
Fabrice NEYRET
<p>I am looking for a explanation about volume rendering in simple words, a step by step kind of, like ray tracing: </p>

<blockquote>
  <p>for every pixel in the screen plane, trace a ray starting from the eye
  point to the screen pixel location, a compute the nearest objet
  intersection in the scene, calculate the pixel color, and so on.</p>
</blockquote>

<p>something like that</p>

<volumetric>
Volume Rendering in simple words
arcollector
# Volume Rendering in simple words

(Asked by: username_0 on 2016-02-20)

I am looking for a explanation about volume rendering in simple words, a step by step kind of, like ray tracing:

> for every pixel in the screen plane, trace a ray starting from the eye
> point to the screen pixel location, a compute the nearest objet
> intersection in the scene, calculate the pixel color, and so on.

something like that

**Tags:** volumetric


---

## 1 answers

### Answer by username_1 on 2016-02-21. Score: 5

Volume rendering is not like ray-tracing, it is like "scene rendering". i.e. there exists several algorithms to render volumes.

One close to ray-tracing is ray-marching, and has may variants. The simplest:
*for every pixel in the screen plane, trace a ray starting from the eye point to the screen pixel location, and advance along the ray by constant steps. At each voxel calculate the pixel color and transparency, blend it to the pixel value, and so on.*

Blend =

* $C\_{pix} += T\_{pix}\*C\_{vox}\*(1-T\_{vox})$
* $T\_{pix} \*= T\_{vox}$

with $C\_{vox},T\_{vox}$ the color and transparency of the current voxel, and $C\_{pix},T\_{pix}$ the cumulated color and transparency of the pixel.

> **Comments:**
> **username_0**: how the objects in the scene are defined? In ray tracing you calculate intersections using the implicit function, ie, sphere, plane, cone, etc, how is it in ray marching? also can you expaling the meaining of the variables that you wrote in your post?  
> **username_1**: I mimicked your very definition, which did not defined meshes :-). For volume rendering, the scene is made of density stored in each voxel, i.e. each cell of the 3D grid.  
> **username_1**: I modified the equation and completed the definition. Now for such basic definitions, you should rather google or open a book. ;-) https://en.wikipedia.org/wiki/Volume_rendering  

---

