<div dir="ltr"><div dir="ltr"><div>p.s. I tracked down Appearance.alphaMode, apologies had forgotten that we indeed added it to X3D 4.0.</div><div><ul><li>X3D Architecture version 4.0, clause 12 Shape component, 12.4.2 Appearance</li><li><a href="https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#Appearance">https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/shape.html#Appearance</a></li><li><a href="https://www.web3d.org/x3d/tooltips/X3dTooltips.html#Appearance.alphaMode">https://www.web3d.org/x3d/tooltips/X3dTooltips.html#Appearance.alphaMode</a></li></ul></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre class="gmail-node" style="color:rgb(0,0,0);font-size:11.05px;margin-left:25px">Appearance : X3DAppearanceNode {
SFNode [in,out] acousticProperties NULL [AcousticProperties]
<span style="background-color:rgb(255,242,204)"> SFFloat [in,out] alphaCutoff 0.5 [0,1]
SFString [in,out] alphaMode "AUTO" ["AUTO", "OPAQUE", "MASK", "BLEND"]</span>
SFNode [in,out] backMaterial NULL [X3DOneSidedMaterialNode]
SFNode [in,out] fillProperties NULL [FillProperties]
SFNode [in,out] lineProperties NULL [LineProperties]
SFNode [in,out] material NULL [X3DMaterialNode]
SFNode [in,out] metadata NULL [X3DMetadataObject]
SFNode [in,out] pointProperties NULL [PointProperties]
MFNode [in,out] shaders [] [X3DShaderNode]
SFNode [in,out] texture NULL [X3DTextureNode]
SFNode [in,out] textureTransform NULL [X3DTextureTransformNode]
}</pre></blockquote><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div style="color:rgb(34,34,34)"><font face="arial, sans-serif">and we have an example:</font></div><div style="color:rgb(34,34,34)"><ul><li><font face="arial, sans-serif">X3D Example Archives: X3D4AM, X3D for Advanced Modeling, Gltf Sample Models, Alpha Blend Mode Test</font></li><li><font face="arial, sans-serif">This model tests the various alpha modes available in glTF 2.0 rendering. There are three settings for alphaMode: "OPAQUE" (the default), "BLEND", and "MASK". Of these, "MASK" takes an additional alphaCutoff value that modifies it.</font></li><li><a href="https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTestIndex.html">https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTestIndex.html</a></li></ul></div><div style="color:rgb(34,34,34)"><font face="arial, sans-serif">Interestingly, our 2024 version had Tangent nodes included and commented out... I have restored them and updated the model to X3D version 4.1. Also applied DEF/USE on various image textures. Also handled flipVertically by inserting One of the tangent nodes has a problem. from latest draft X3D-Edit Validator:</font></div><div style="color:rgb(34,34,34)"><font face="arial, sans-serif"><br></font></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><font face="monospace">Performing X3D Schematron check...<br>X3D version 4.1 began active development by Web3D Consortium for ISO in 2025.[/X3D, diagnostic]<br>Based on file name, AlphaBlendModeTest.x3d is considered a test model supporting X3D Quality Assurance (QA).<br> <a href="https://www.web3d.org/x3d/content/examples/X3dResources.html#QualityAssurance">https://www.web3d.org/x3d/content/examples/X3dResources.html#QualityAssurance</a> [/X3D/head, diagnostic]<br><meta name='warning' content='removed gravityTransform=false since this construc is not valid X3D4. several converters not yet supporting Tangent node properly, perform QA checks for details.'/> [/X3D/head/meta[6], diagnostic]<br><span style="background-color:rgb(255,229,153)"><Tangent DEF='TodoFigureOutMissingValue'/> vector array has 6.75 4-tuples, likely has incorrect number of values or missing whitespace</span> [/X3D/Scene/Transform[1]/Group/Shape/IndexedTriangleSet/Tangent, warning]<br><br>--------- X3D Validator checks complete for AlphaBlendModeTest.x3d ---------</font><br></blockquote><div style="color:rgb(34,34,34)"><font face="monospace"><br></font></div><div style="color:rgb(34,34,34)"><font face="arial, sans-serif">X_ITE looks good, pretty close to the reference image at</font></div><div style="color:rgb(34,34,34)"><ul><li><font face="arial, sans-serif"><a href="https://github.com/KhronosGroup/glTF-Sample-Models/tree/main/2.0/AlphaBlendModeTest">https://github.com/KhronosGroup/glTF-Sample-Models/tree/main/2.0/AlphaBlendModeTest</a></font></li></ul></div><div style="color:rgb(34,34,34)"><span style="font-family:arial,sans-serif">Castle is mostly rendering correctly but has unhappy textures with the broken Tangent node, reporting</span></div><div style="color:rgb(34,34,34)"><span style="font-family:arial,sans-serif"><br></span></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">2 warnings:<br>VRML/X3D: Error when reading field "vector" value: Error at line 1 column 360: Expected float number, got end of stream<br>X3D: Invalid number of items in an attribute array for shape "Bed/BedMesh//IndexedTriangleSet": Not enough items in tangents: 54, but at least 72 required<br>Scene URL: "file:///C:/x3d-code/<a href="http://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.x3d">www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.x3d</a>".<br>Use "File->View Warnings" menu to view these warnings again.<br></blockquote><div style="color:rgb(34,34,34)"><font face="monospace"><br></font></div><div style="color:rgb(34,34,34)"><font face="arial, sans-serif">Model now updated online. If someone can figure out the missing Tangent vector values from the original glTF, that might fix the remaining gaps...</font></div><div style="color:rgb(34,34,34)"><ul><li><font face="arial, sans-serif">X3D Model Documentation <a href="https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.html#TodoFigureOutMissingValue">AlphaBlendModeTest.x3d (X3dToXhtml listing)</a></font></li><li><a href="https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.html#TodoFigureOutMissingValue">https://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/GltfSampleModels/AlphaBlendModeTest.html#TodoFigureOutMissingValue</a></li><li><font face="monospace"><Tangent DEF='<span style="background-color:rgb(255,229,153)">TodoFigureOutMissingValue</span>' vector='0.999847650527954 -0.0174568109214306 0 0.999847650527954 -0.0174568109214306 0 0.999847650527954 -0.0174568109214306 0 0.999847650527954 -0.0174568109214306 0 0.999847650527954 -0.0174568109214306 0 0.999847650527954 -0.0174568109214306 0 0.999847650527954 -0.0174567885696888 0 0.999847650527954 -0.0174567885696888 0 0.999847650527954 -0.0174567885696888 0'/></font></li></ul><div><font face="arial, sans-serif">Looking at things like this is a pretty good way to learn how things work. Have fun with X3D! </font><font face="monospace"> 🤔 👍</font></div><div><font face="monospace"><br></font></div></div><div style="color:rgb(34,34,34)"><span style="font-family:monospace">all the best, Don</span></div><div style="color:rgb(34,34,34)"><font face="monospace">-- </font></div><div style="color:rgb(34,34,34)"><font face="monospace">X3D Graphics, Maritime Robotics, Distributed Simulation</font></div><div style="color:rgb(34,34,34)"><font face="monospace">Relative Motion Consulting <a href="https://RelativeMotion.info" target="_blank">https://RelativeMotion.info</a></font></div></div></div></div></div></div>