[x3d-public] Background static image and dds

Michalis Kamburelis michalis.kambi at gmail.com
Mon Aug 5 15:35:27 PDT 2019


Andreas Plesch <andreasplesch at gmail.com> wrote:

> X3DOM currently has two useful but not spec. compliant features for its
> Background node.
>
> A) support for static, single image background
>
> 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.
> The same effect can be achieved with web page css styling, although
> sometimes it is advantageous to have a static background rendered with gl.
>
> B) support for cubemaps in dds format
>
> dds is a popular texture format which is well defined by MS:
> https://docs.microsoft.com/en-us/windows/win32/direct3ddds/dx-graphics-dds
> dds has built in support for cubemaps and is compact and portable.
> x3dom understands dds format for an image provided for a cube map.
> Support for additional texture formats may be out of scope for X3D. There
> may be other Mantis reports on texture formats.
>

I think B) is already in the specification of ImageCubeMapTexture , see

>
https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/env_texture.html#ImageCubeMapTexture
. View3dscene / Castle Game Engine support it too (
https://castle-engine.io/x3d_implementation_cubemaptexturing.php ) and I
would expect that most other browsers that claim support for
ImageCubeMapTexture
do too :)

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
https://castle-engine.io/x3d_implementation_texturing.php#section_ktx and
https://github.com/michaliskambi/x3d-tests/wiki/KTX .

Best regards,
Michalis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190806/a6da454a/attachment.html>


More information about the x3d-public mailing list