[x3d-public] Need for colorspaceConversion field in ImageTexture, glTF compatibility
Holger Seelig
holger.seelig at yahoo.de
Thu Sep 21 03:06:22 PDT 2023
I have now also added the field `colorSpaceConversion` in X_ITE to the ImageTexture node, also in the same notation. Everything was already prepared for it.
I can't show an example yet, because everything is still in the dev branch.
The signature of the new field looks like this:
SFBool [] colorSpaceConversion TRUE
Best regards,
Holger
--
Holger Seelig
Leipzig, Germany
holger.seelig at yahoo.de
https://create3000.github.io/x_ite/
> Am 21.09.2023 um 08:26 schrieb Andreas Plesch <andreasplesch at gmail.com>:
>
> Coming back to color profiles potentially embedded in some important
> image formats, I added a colorSpaceConversion field to ImageTexture in
> x3dom:
>
> https://andreasplesch.github.io/x3dom/dist/doc/author/Texturing/ImageTexture.html
>
> It is by default true for normal X3D use and can be false for loading
> glTF textures correctly:
>
> https://andreasplesch.github.io/Library/Viewer/index.html?url=https://gist.githubusercontent.com/andreasplesch/817bc44089a7b7545149cf12acdd7c86/raw/75242ebfea03048d0f4939e1656c5063c9544d11/TextureEncodingTest.x3d
>
> It is trivial to change the field name if there are other suggestions.
>
> -Andreas
>
> On Tue, Aug 29, 2023 at 1:53 PM Andreas Plesch <andreasplesch at gmail.com> wrote:
>>
>> Following up after some work:
>>
>> On Thu, Aug 24, 2023 at 11:15 PM Andreas Plesch <andreasplesch at gmail.com> wrote:
>>>
>>> On Thu, Aug 24, 2023 at 9:14 AM Michalis Kamburelis
>>> <michalis.kambi at gmail.com> wrote:
>>>>
>>>> 1. As for colorspaceConversion:
>>>>
>>>> I don't think we want to avoid adding X3D field for this :)
>>>
>>> Well, it is worth thinking through options if it means smarter
>>> solutions can be discovered.
>>>
>>>> I'm all after adding X3D field to account for this -- that is, say
>>>> explicitly whether ICC profile should be honored or not, so that all
>>>> cases are satisfied. I'm cool with colorspaceConversion name.
>>>
>> ...snip
>>
>> After some thought I do think that a new field is needed for
>> ImageTexture (and MovieTexture, and Background ?).
>> "colorspaceConversion" or "colorSpaceConversion" or perhaps something
>> shorter like "colorProfile" ?
>>
>> x3dom will probably use the webgl texture unpacking parameter.
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230921/b1f09f4a/attachment-0001.html>
More information about the x3d-public
mailing list