<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">I have added SpecularGlossinessMaterial, as there are models on the internet that use it (sketchfab), so that these models can also be displayed. X3DOM also has a way to display this material. Furthermore, it is apparently not possible to convert this material with the associated textures by using PhysicalMaterial.<div><br></div><div>I added UnlitMaterialExtension for now, because X3DOM also has an *unlit* field in PhysicalMaterial. </div><div><br></div><div><a href="https://doc.x3dom.org/developer/x3dom/nodeTypes/PhysicalMaterial.html">https://doc.x3dom.org/developer/x3dom/nodeTypes/PhysicalMaterial.html</a></div><div><br></div><div>An important aspect is also the sRGB workflow, which is specified in PhysicalMaterial, but is not mentioned in X3D (or are there texts about it).</div><div><br></div><div>Best regards,</div><div>Holger</div><div><br id="lineBreakAtBeginningOfMessage"><div>
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div dir="auto" style="text-align: start; text-indent: 0px; overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px;">--</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px;">Holger Seelig</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px;">Leipzig, Germany</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px;"><br></div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; -webkit-text-stroke-width: 0px;">holger.seelig@yahoo.de</div><div>https://create3000.github.io/x_ite/</div></div></div></div></div></div></div>
</div>
<div><br><blockquote type="cite"><div>Am 26.06.2024 um 14:54 schrieb Michalis Kamburelis <michalis.kambi@gmail.com>:</div><br class="Apple-interchange-newline"><div><div>Great news! I'm reading your node docs, excellent work in getting this<br>specified and implemented!<br><br>I have a plan to implement these material extensions in Castle Game<br>Engine / Castle Model Viewer as well (<br>https://castle-engine.io/roadmap#gltf_material_features ). Looks like<br>you beat me to it with X_ITE, and it makes me very happy :) (Also<br>because it means I can look at your nodes and code and my task is much<br>easier :) ).<br><br>Some initial thoughts about the spec of new functionality:<br><br>1. Expressing functionality as "extensions" of PhysicalMaterial (I see<br>you have "PhysicalMaterial.extensions", MFNode with<br>X3DMaterialExtensionNode,<br>https://create3000.github.io/x_ite/components/shape/physicalmaterial/<br>):<br><br> This is great solution, this expressed the intention nicely (this<br>information is extra data, "extension", and without it things look<br>worse but make sense).<br><br> I'm looking at this both from Castle Game Engine / Castle Model<br>Viewer author perspective, also from the perspective of future X3D<br>versions. A lot of your extensions, including the<br>"PhysicalMaterial.extensions" field and nodes like<br>SheenMaterialExtension, ClearcoatMaterialExtension could definitely be<br>part of future X3D (4.1?) version.<br><br>2. Comments specifically about SpecularGlossinessMaterial (<br>https://create3000.github.io/x_ite/components/x-ite/specularglossinessmaterial/<br>):<br><br> Note that KHR_materials_pbrSpecularGlossiness is deprecated, and<br>the recommendation is to follow instead KHR_materials_specular which<br>addresses a similar use-case. In Castle Game Engine / Castle Model<br>Viewer we deliberately decided, for this reason, to not support<br>KHR_materials_pbrSpecularGlossiness and just explain it to users (<br>https://castle-engine.io/sketchfab ).<br><br> I of course understand it is a practical decision, if your users<br>demand KHR_materials_pbrSpecularGlossiness then<br>SpecularGlossinessMaterial makes sense. I'm just saying that this<br>should probably not go to future X3D spec.<br><br> Just like Khronos recommends KHR_materials_specular over<br>KHR_materials_pbrSpecularGlossiness, we should in X3D recommend<br>SpecularMaterialExtension over SpecularGlossinessMaterial.<br><br>3. I see you added also UnlitMaterialExtension, can you expand why do<br>you need it?<br><br> I know your approach is a bit more consistent with glTF, that has<br>"physical material with KHR_materials_unlit".<br><br> That said, I deliberately deviated here for X3D 4.0, adding<br>instead a separate node "UnlitMaterial". "UnlitMaterial" does feel<br>more natural -- being unlit is, conceptually, not an extension of PBR<br>lighting equations (or PBR specular, or Phong lighting equations...).<br>Being unlit means you throw away the usual lighting equations, and<br>just have very simple situation where resulting color is emissiveColor<br>* optional emissiveTexture. This makes "UnlitMaterial" spec simple,<br>this also sidesteps glTF question (that used to be ambiguous in older<br>glTF spec version) of how to combine glTF base and emissive color in<br>case of KHR_materials_unlit (because in X3D, we just have<br>"UnlitMaterial" with "UnlitMaterial,emissiveColor" -- it's simpler),<br>this also allows natural optimizations on the renderer side (unlit can<br>use completely different set of simple shaders).<br><br> So ideally, I see "UnlitMaterial" as X3D-equivalent of<br>"KHR_materials_unlit". If there is a need for UnlitMaterialExtension,<br>I'm curious to know why, and can we avoid it, to keep X3D spec simple<br>:)<br><br>Many thanks for your work. This is great advancement for X3D! I<br>absolutely recommend everyone on this list to click on Holger's links<br>to demos and extensions, we absolutely should look at this<br>functionality as potentially becoming available in other X3D browsers<br>(I will definitely want to implement (subset of it) in Castle Game<br>Engine / Castle Model Viewer) and in future X3D spec versions.<br><br>Best regards,<br>Michalis<br><br><br>wt., 25 cze 2024 o 11:52 Holger Seelig via x3d-public<br><x3d-public@web3d.org> napisał(a):<br><blockquote type="cite"><br>With the current release v10.0.1, all glTF material extensions are now available, i.e. when a glTF file is parsed, these extensions are automatically converted to X3D. There is now an X3D node for each glTF extension. These nodes can also be referenced directly in X3D files. Extensions for glTF materials are converted to the new X3DMaterialExtensionNode nodes, which can be used as a child of PhysicalMaterial node and the new SpecularGlossinessMaterial node. These material nodes now have a new field »extensions« for this purpose. The introduction of the »extensions« field has only a minimal impact and leads to the greatest possible compatibility.<br><br>To get an idea of what a great difference these new material extensions make, check out our glTF Sample Viewer. Take some time and look through all the examples. I am sure you will be amazed.<br><br>https://create3000.github.io/x_ite/laboratory/gltf-sample-viewer/<br><br>Here are three selected examples, but there are many more:<br><br>https://create3000.github.io/x_ite/laboratory/gltf-sample-viewer/?url=AnisotropyBarnLamp<br>https://create3000.github.io/x_ite/laboratory/gltf-sample-viewer/?url=DragonAttenuation<br>https://create3000.github.io/x_ite/laboratory/gltf-sample-viewer/?url=MosquitoInAmber<br>https://create3000.github.io/x_ite/laboratory/gltf-sample-viewer/?url=ToyCar<br><br>Implemented glTF Extensions:<br><br>All glTF extensions implemented with this version are listed below:<br><br>X3DOneSidedMaterialNode<br><br>* KHR_materials_pbrSpecularGlossiness implemented as SpecularGlossinessMaterial node.<br><br>X3DMaterialExtensionNode<br><br>* KHR_materials_anisotropy implemented as AnisotropyMaterialExtension node.<br>* KHR_materials_clearcoat implemented as ClearcoatMaterialExtension node.<br>* KHR_materials_dispersion implemented as DispersionMaterialExtension node.<br>* KHR_materials_emissive_strength implemented as EmissiveStrengthMaterialExtension node.<br>* KHR_materials_ior implemented as IORMaterialExtension node.<br>* KHR_materials_iridescence implemented as IridescenceMaterialExtension node.<br>* KHR_materials_sheen implemented as SheenMaterialExtension node.<br>* KHR_materials_specular implemented as SpecularMaterialExtension node.<br>* KHR_materials_transmission implemented as TransmissionMaterialExtension node.<br>* KHR_materials_unlit implemented as UnlitMaterialExtension node.<br>* KHR_materials_volume implemented as VolumeMaterialExtension node.<br><br>Switch<br><br>* KHR_materials_variants implemented as Switch node.<br><br>These new nodes are initially available in the X_ITE component and documented here:<br>https://create3000.github.io/x_ite/components/#x_ite<br><br>Make X3D even better!<br>Best regards,<br>Holger<br><br>--<br>Holger Seelig<br>Leipzig, Germany<br><br>holger.seelig@yahoo.de<br>https://create3000.github.io/x_ite/<br><br>_______________________________________________<br>x3d-public mailing list<br>x3d-public@web3d.org<br>http://web3d.org/mailman/listinfo/x3d-public_web3d.org<br></blockquote></div></div></blockquote></div><br></div></body></html>