# Scene Capture Cube - does it work on html5?

**URL:** <https://forums.unrealengine.com/t/scene-capture-cube-does-it-work-on-html5/440724>\
**Category:** Platform & Builds\
**Tags:** compatibility, HTML5, unreal-engine, bug-report, Blueprint, question\
**Created:** [January 6, 2019, 11:45am UTC](https://forums.unrealengine.com/t/scene-capture-cube-does-it-work-on-html5/440724 "2019-01-06T11:45:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smooth.criminal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@smooth.criminal](https://forums.unrealengine.com/u/smooth.criminal)\
**Post date:** [January 6, 2019, 11:45am UTC](https://forums.unrealengine.com/t/scene-capture-cube-does-it-work-on-html5/440724/1 "2019-01-06T11:45:25Z")

</div>

I have Scene Capture cube in my scene and it works perfectly in pc preview mode , but when i package it for HTML5 it appears green. is there a way to fix this ?

thanks

on pc

 ![264366-pc-preview.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/a/90aca31b1c949a7bec5aa32813b9e31748203e88.jpeg)

on browser HTML5 version

 ![264367-html.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/b/f8beb26ad3d37d161f07a548b7fa3b99ce75b2f8.jpeg)

---

<div class="post-metadata">

**Author:** ![JeFrYx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jefryx/32/881300_2.png) [@JeFrYx](https://forums.unrealengine.com/u/JeFrYx)\
**Post date:** [January 8, 2019, 9:39am UTC](https://forums.unrealengine.com/t/scene-capture-cube-does-it-work-on-html5/440724/2 "2019-01-08T09:39:29Z")

</div>

It is not working for me either, could anyone look through this ?

---

<div class="post-metadata">

**Author:** ![smooth.criminal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@smooth.criminal](https://forums.unrealengine.com/u/smooth.criminal)\
**Post date:** [January 8, 2019, 1:47pm UTC](https://forums.unrealengine.com/t/scene-capture-cube-does-it-work-on-html5/440724/3 "2019-01-08T13:47:05Z")

</div>

trying to solve this for months now, still no progress .

---

<div class="post-metadata">

**Author:** ![JeFrYx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jefryx/32/881300_2.png) [@JeFrYx](https://forums.unrealengine.com/u/JeFrYx)\
**Post date:** [January 9, 2019, 2:51pm UTC](https://forums.unrealengine.com/t/scene-capture-cube-does-it-work-on-html5/440724/4 "2019-01-09T14:51:32Z")

</div>

With unity you can do a cube capture easy using a camera and making it write to a render texture, so i dont think its a WebGL limitation. Any Epic Staff willing to kick in? this sounds like a bug.

P.D: I know its experimental, but would be neat to have a fix for this, id prefer to use UE than Unity for what im doing.

---

<div class="post-metadata">

**Author:** ![JeFrYx](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jefryx/32/881300_2.png) [@JeFrYx](https://forums.unrealengine.com/u/JeFrYx)\
**Post date:** [January 10, 2019, 9:19am UTC](https://forums.unrealengine.com/t/scene-capture-cube-does-it-work-on-html5/440724/5 "2019-01-10T09:19:49Z")

</div>

It looks like UE4.21 has a hard cap harcoded into the SceneCaptureRendering.cpp class. It hard caps to SM4 (Shader Model 4). WebGL is ES3\_1.

This must be the reason for the cubemap not rendering at all. Probably a warning message would have been cool.

I guess you could change it to ES3\_1 and try to compile it.
