[x3d-public] gltf textures and image embedded color profiles

Andreas Plesch andreasplesch at gmail.com
Wed Mar 8 06:40:56 PST 2023


Hi Holger,

Thanks. I think I saw that webgl parameter option in the three.js
discussion on the same topic. As far as I remember they use it as a
fallback because the browser implementations of that option were not
as reliable.

Cheers, Andreas

On Wed, Mar 8, 2023 at 7:34 AM Holger Seelig <holger.seelig at yahoo.de> wrote:
>
> As far as I know, this option can only be used when an <image> element is passed as data to texImage2D.
>
> Holger Seelig
> Leipzig, Germany
> holger.seelig at yahoo.de
>
>
>
> Am 08.03.2023 um 13:29 schrieb Holger Seelig <holger.seelig at yahoo.de>:
>
> There is also a pixelStorei parameter where you can decide whether color space conversion should take place. It has two options BROWSER_DEFAULT_WEBGL and NONE.
>
> gl .pixelStorei (gl .UNPACK_COLORSPACE_CONVERSION_WEBGL, colorspace ? gl .BROWSER_DEFAULT_WEBGL : gl .NONE);
>
> See also https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei#pixel_storage_parameters
>
> Holger Seelig
> Leipzig, Germany
> holger.seelig at yahoo.de
>
>
>
> Am 26.02.2023 um 16:16 schrieb Andreas Plesch <andreasplesch at gmail.com>:
>
> Hi Holger,
>
> Thanks. Such a field also could be of type SFBool but it might be
> better to align with the DOM method. Unfortunately, the DOM spec. for
> createImageBitmap uses lower case enums for the values.
>
> -Andreas
>
> On Sun, Feb 26, 2023 at 7:44 AM Holger Seelig <holger.seelig at yahoo.de> wrote:
>
>
> I also stumbled across this test, and it seems that createImageBitmap can handle this case decently. ColorSpaceConversion is what you normally always want, but in the case of glTF you need an option to turn it off, which could be done with a new field 'colorSpaceConversion' as you describe.
>
> Andreas please note that ‚enum' values should always be capitalized.
>
> Best regards,
> Holger
>
> ---
> Holger Seelig
> Leipzig, Germany
> holger.seelig at yahoo.de
>
>
>
> Am 25.02.2023 um 20:04 schrieb Andreas Plesch <andreasplesch at gmail.com>:
>
> createImageBitmap
>
>
>
>
> --
> Andreas Plesch
> Waltham, MA 02453
>
>
>


-- 
Andreas Plesch
Waltham, MA 02453



More information about the x3d-public mailing list