<div dir="ltr"><div>I agree, a dedicated BackgroundImage node may be more appropriate rather than layering on top of Background. Sounds like a pretty obvious and straightforward spec. enhancement to me since all the functionality is already there, only in separate places. Thinking ahead, there would be need to be a rule of what to do when both Background and BackgroundImage are provided.</div><div><br></div><div>The simple feature A) of just having static, fixed image as a backdrop is also very useful. Here is an example:</div><div><br></div><div><a href="https://codepen.io/anon/pen/ZgXPVq?editors=1000">https://codepen.io/anon/pen/ZgXPVq?editors=1000</a>  <br></div><div><br></div><div>-Andreas</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 5, 2019 at 6:44 PM Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Ah, sorry, I just realized that you meant that X3DOM supports also cubemaps in Background node. This is indeed not something in the spec (and CGE doesn't do it). I think it could be useful to have an alternative to Background node like BackgroundImage that contains a single field like "image" of type "X3DEnvironmentTextureNode". One could place there any cubemap (ImageCubeMapTexture with DDS or KTX, ComposedCubeMapTexture with 6 images or even GeneratedCubeMapTexture).<div dir="auto"><br></div><div dir="auto">Currently we have Background and TextureBackground nodes, TextureBackground is an improvement (has 6 texture nodes instead of 6 MFString urls, so it's more versatile) but still you cannot just provide one texture with 6 sides (which would be possible with <span style="font-family:sans-serif">X3DEnvironmentTextureNode).</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Best regards,</span></div><div dir="auto"><font face="sans-serif">Michalis</font></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 6 sie 2019, 00:35 użytkownik Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com" target="_blank">michalis.kambi@gmail.com</a>> napisał:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" rel="noreferrer" target="_blank">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>X3DOM currently has two useful but not spec. compliant features for its Background node.</div><div><br></div><div>A) support for static, single image background</div><div><br></div><div>If only a backUrl image is provided, it is used as static backdrop which stays fixed, eg. is not a part of a cube map texture.</div><div>The same effect can be achieved with web page css styling, although sometimes it is advantageous to have a static background rendered with gl.</div><div><br></div><div>B) support for cubemaps in dds format</div><div><br></div><div>dds is a popular texture format which is well defined by MS:</div><div><a href="https://docs.microsoft.com/en-us/windows/win32/direct3ddds/dx-graphics-dds" rel="noreferrer noreferrer" target="_blank">https://docs.microsoft.com/en-us/windows/win32/direct3ddds/dx-graphics-dds</a><br></div><div>dds has built in support for cubemaps and is compact and portable.</div><div>x3dom understands dds format for an image provided for a cube map.</div><div>Support for additional texture formats may be out of scope for X3D. There may be other Mantis reports on texture formats.</div><div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I think B) is already in the specification of ImageCubeMapTexture , see </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div></div></blockquote></div></div><div dir="auto"><a href="https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/env_texture.html#ImageCubeMapTexture" rel="noreferrer" target="_blank">https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/env_texture.html#ImageCubeMapTexture</a> . View3dscene / Castle Game Engine support it too ( <a href="https://castle-engine.io/x3d_implementation_cubemaptexturing.php" rel="noreferrer" target="_blank">https://castle-engine.io/x3d_implementation_cubemaptexturing.php</a> ) and I would expect that most other browsers that claim support for <span style="font-family:sans-serif">ImageCubeMapTexture do too :)</span><br></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">BTW, KTX is in some ways a better alternative to DDS, with a clear specification from Khronos. CGE also supports it (although not *yet* for cubemaps), and I would encourage anyone who supports DDS to look into providing KTX support as alternative. See </span><font face="sans-serif"><a href="https://castle-engine.io/x3d_implementation_texturing.php#section_ktx" rel="noreferrer" target="_blank">https://castle-engine.io/x3d_implementation_texturing.php#section_ktx</a> and <a href="https://github.com/michaliskambi/x3d-tests/wiki/KTX" rel="noreferrer" target="_blank">https://github.com/michaliskambi/x3d-tests/wiki/KTX</a> .</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Best regards,</font></div><div dir="auto"><font face="sans-serif">Michalis</font></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div></div>