# Hologram shader - actual hologram, and a not cool 3D effect

**URL:** <https://discourse.threejs.org/t/hologram-shader-actual-hologram-and-a-not-cool-3d-effect/31126>\
**Category:** Questions\
**Created:** [October 24, 2021, 1:30pm UTC](https://discourse.threejs.org/t/hologram-shader-actual-hologram-and-a-not-cool-3d-effect/31126 "2021-10-24T13:30:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rockclimber](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/rockclimber/32/1043_2.png) [@rockclimber](https://discourse.threejs.org/u/rockclimber)\
**Post date:** [October 24, 2021, 1:30pm UTC](https://discourse.threejs.org/t/hologram-shader-actual-hologram-and-a-not-cool-3d-effect/31126/1 "2021-10-24T13:30:52Z")

</div>

I’m trying to find a project/shader that prerenders and displays a hologram and a texture format to do it. What I mean is simulating an actual laser hologram not creating a cool Star Wars hologram effect. I’m curious if this could be used as optimization technique to prerender certain elements.  
Laser holograms: ​https://www.youtube.com/watch?v=FTKp9aGhhMc

One use case:

1. Prerender a part of scene i.e. room interior view through the window into a special hologram format
2. ​Use the prerendered data on flat texture of a window with a shader that handles hologram magic
3. Now when the camera is outside the building and looking at windows from different angles the interiors are not being rendered but their holograms are being used

This is just an example. I’m not looking to solve this exact case just interested if anyone built something that simulates an actual laser hologram.

---

<div class="post-metadata">

**Author:** ![D13](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@D13](https://discourse.threejs.org/u/D13)\
**Post date:** [October 24, 2021, 9:06pm UTC](https://discourse.threejs.org/t/hologram-shader-actual-hologram-and-a-not-cool-3d-effect/31126/2 "2021-10-24T21:06:24Z")

</div>

> **[Shadertoy](https://www.shadertoy.com/view/XlcBR7)**

This an effect of course. I don’t think this is using laser captured data or true holography. However, it is a very interesting effect. Could you represent captured data and display it in such a format? I think so.

---

<div class="post-metadata">

**Author:** ![GlifTek](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gliftek/32/13131_2.png) [@GlifTek](https://discourse.threejs.org/u/GlifTek)\
**Post date:** [October 25, 2021, 8:23am UTC](https://discourse.threejs.org/t/hologram-shader-actual-hologram-and-a-not-cool-3d-effect/31126/3 "2021-10-25T08:23:22Z")

</div>

I built one in blender to animate certain visual effects, ie: scan lines, animated interference bulges, and working on drastic static glitches. Looks good.

---

<div class="post-metadata">

**Author:** ![repalash](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/repalash/32/18241_2.png) [@repalash](https://discourse.threejs.org/u/repalash)\
**Post date:** [October 31, 2021, 2:49pm UTC](https://discourse.threejs.org/t/hologram-shader-actual-hologram-and-a-not-cool-3d-effect/31126/4 "2021-10-31T14:49:43Z")

</div>

Rendering holograms is called volume rendering which is used to render things like clouds, smoke, fire etc. webgl has a native texture 3d format to store volume data, there’s also an example in threejs: [three.js examples](https://threejs.org/examples/#webgl2_volume_cloud)  
It is possible to simulate light rays through a volume to get the laser light kind of look. I once did a volume scattering effect with light scattering in a CT scan, you can see here: [RealVol: Experiments with Volumetric Lighting - YouTube](https://www.youtube.com/watch?v=0mKGDdhO9Ok)  
You can search for volumetric scattering and god rays rendering to find more about this.

Also, the use case you are talking about is best solved with interior mapping, you can read about it here: [https://www.proun-game.com/Oogst3D/CODING/InteriorMapping/InteriorMapping.pdf](https://www.proun-game.com/Oogst3D/CODING/InteriorMapping/InteriorMapping.pdf)  
Here’s a unity demo: [Unity Shader Graph - Interior Mapping - YouTube](https://www.youtube.com/watch?v=2_zMRcoTwL0)  
It’s already being used by a lot of recent games to render building windows from outside and get a 3d look.
