<div dir="auto">Thanks, very clear and makes sense. I read it multiple times and still missed that.<div dir="auto"><br></div><div dir="auto">Andreas</div><br><br><div class="gmail_quote gmail_quote_container" dir="auto"><div dir="ltr" class="gmail_attr">On Fri, Feb 21, 2025, 5:41 PM Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This case is clarified in the text you link to:<br>
<br>
"""<br>
If the xxxTextureMapping field is not empty, it should refer to a<br>
corresponding X3DSingleTextureCoordinateNode node on a list of texture<br>
coordinates. [...] If no corresponding X3DSingleTextureCoordinateNode<br>
is found on this list, the X3D browser should determine texture<br>
coordinates as if xxxTextureMapping would be empty (see below). [...]<br>
<br>
If the xxxTextureMapping field is empty, then the first item on a list<br>
of texture coordinates is used (regardless of the mapping value). Only<br>
if no such texture coordinate exists (the list is empty), then then<br>
default texture coordinates for the specific geometry node are used.<br>
"""<br>
<br>
IOW, in simple terms: if xxxTextureMapping does not match any<br>
TextureCoordinate, then use the first TextureCoordinate. With the<br>
"first TextureCoordinate" meaning, in the order of preference,<br>
1. the first in MultiTextureCoordinate list,<br>
2. or just literally the only TextureCoordinate if no<br>
MultiTextureCoordinate was used,<br>
3. or it can mean a fallback to default texture coord.<br>
<br>
Regards,<br>
Michalis<br>
<br>
pt., 21 lut 2025 o 19:31 Andreas Plesch via x3d-public<br>
<<a href="mailto:x3d-public@web3d.org" target="_blank" rel="noreferrer">x3d-public@web3d.org</a>> napisał(a):<br>
><br>
> As <a href="https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/shape.html#TextureMappingCoordinate" rel="noreferrer noreferrer" target="_blank">https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4.1-CD/Part01/components/shape.html#TextureMappingCoordinate</a><br>
><br>
> and co. explains the xxxTextureMapping field can be used to have multiple sets/channels of TextureCoordinates for the same Shape, for different types of Textures.<br>
><br>
> There is one case which is not covered, presumably because it typically would indicate a mistake or oversight by the author. What should a browser implementation do if a material has a (non-default) xxxTextureMapping which does not match any of the provided TextureCoordinates for the Shape ?<br>
><br>
> Possibilities are fall-back to default texture coordinates, fall-back to the first provided mapping, fall-back to constant uv 0,0 to indicate visually a problem, or undefined behaviour.<br>
><br>
> Undefined behaviour might be ok but it is then worth pointing out in the spec.<br>
><br>
> Thanks, -Andreas<br>
><br>
> --<br>
> Andreas Plesch<br>
> Waltham, MA 02453<br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank" rel="noreferrer">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div>