[x3d-public] Differences in default values of TextureProperties Spec vs X3DUOM vs Tooltips
Holger Seelig
holger.seelig at yahoo.de
Mon Feb 3 04:16:34 PST 2025
Thank you Michalis for explaining this change. This all makes much sense.
Best regards,
Holger
--
Holger Seelig
Leipzig, Germany
holger.seelig at yahoo.de
https://create3000.github.io/x_ite/
> Am 03.02.2025 um 12:57 schrieb Michalis Kamburelis <michalis.kambi at gmail.com>:
>
> The default for minificationFilter , magnificationFilter has changed,
> the new correct default is "DEFAULT" (which, in turn, means
> "browser-specified default magnification/minification mode").
>
> See my email from 2013 August for reasons:
> https://web3d.org/pipermail/x3d-public_web3d.org/2013-August/002496.html
> .
>
> We did the change in spec around 2022-03-09 (that's when I see I
> changed it in CGE implementation, though I cannot find the x3d-public
> relevant thread). See CGE notes:
> https://castle-engine.io/x3d_implementation_texturing.php .
>
> Basically, before the change, TextureProperties was a bit of a trap,
> because changing:
>
> ImageTexture {
> url "sample.png"
> }
>
> ->
>
> ImageTexture {
> url "sample.png"
> textureProperties TextureProperties {
> }
> }
>
> ...was a "trap", because it unintuitively also changed the filtering
> of "sample.png" to "fastest" (which should mean "nearest"). This was
> unexpected for authors (I stumbled into this trap, I had other X3D
> users of CGE that stumbled into this trap).
>
> Now (with new default) the above change does nothing, which is more
> intuitive (since you didn't set any TextureProperties fields) ->
> before and after the change, browser uses default
> minification/magnification. IOW, mere existence of TextureProperties
> node makes no change above.
>
> Regards,
> Michalis
>
> pon., 3 lut 2025 o 11:07 Holger Seelig via x3d-public
> <x3d-public at web3d.org> napisał(a):
>>
>> The three fields have in Spec a default value of „DEFAUT“ and in X3DUOM and Tooltips a default value of „FASTEST“. Which one is the correct value?
>>
>> Field SFString 'minificationFilter' in node TextureProperties has different value (Spec <=> X3DUOM): DEFAULT !== FASTEST. Field SFString 'magnificationFilter' in node TextureProperties has different value (Spec <=> X3DUOM): DEFAULT !== FASTEST.
>> Field SFString 'textureCompression' in node TextureProperties has different value (Spec <=> X3DUOM): DEFAULT !== FASTEST.
>>
>> https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/texturing.html#TextureProperties
>> https://www.web3d.org/specifications/X3dUnifiedObjectModel-4.0.xml
>> https://www.web3d.org/x3d/content/X3dTooltips.html#TextureProperties
>>
>> Best regards,
>> Holger
>>
>> --
>> Holger Seelig
>> Leipzig, Germany
>>
>> holger.seelig at yahoo.de
>> https://create3000.github.io/x_ite/
>>
>> _______________________________________________
>> x3d-public mailing list
>> x3d-public at web3d.org
>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250203/c21baed4/attachment.html>
More information about the x3d-public
mailing list