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

Holger Seelig holger.seelig at yahoo.de
Wed Mar 8 04:34:05 PST 2023


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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230308/254f9145/attachment.html>


More information about the x3d-public mailing list