[x3d-public] Background static image and dds

Michalis Kamburelis michalis.kambi at gmail.com
Mon Aug 5 15:44:09 PDT 2019


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).

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 X3DEnvironmentTextureNode).

Best regards,
Michalis

wt., 6 sie 2019, 00:35 użytkownik Michalis Kamburelis <
michalis.kambi at gmail.com> napisał:

>
> 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/37e48616/attachment.html>


More information about the x3d-public mailing list