<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;">Aaron<div><br></div><div><br></div><div>X3DOM support physical based rendering through the PhysicalMaterial <a href="https://doc.x3dom.org/developer/x3dom/nodeTypes/PhysicalMaterial.html">https://doc.x3dom.org/developer/x3dom/nodeTypes/PhysicalMaterial.html</a> node. That was the implementation that spurred the Consortium to add PBR to the standard.</div><div><br></div><div>Vince</div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Mar 11, 2025, at 10:19 PM, Bergstrom, Aaron <aaron.bergstrom@und.edu> wrote:</div><br class="Apple-interchange-newline"><div><div>Vince,<br><br>Thanks for getting back to me.<br><br>I just took a look at the X3DOM documentation, and it looks like it doesn't support X3D 4.0, which I'm sure everyone else here probably knows. I'm still playing a bit of catch up, I guess.<br><br>According to the X3DOM documentation, the Material node does not contain any texture fields.<br>https://doc.x3dom.org/developer/x3dom/nodeTypes/Material.html<br><br>I stored the texture in the diffuseTexture field of the Material node, and not the 'texture' field of the Appearance node.<br><br>I'm re-evaluating the process for exporting for X3DOM.<br><br>Thanks,<br><br>Aaron<br><br>-----Original Message-----<br>From: X3D-Ecosystem <x3d-ecosystem-bounces@web3d.org> On Behalf Of Vincent Marchetti via X3D-Ecosystem<br>Sent: Tuesday, March 11, 2025 5:19 PM<br>To: X3D Ecosystem public discussion <x3d-ecosystem@web3d.org><br>Cc: Vincent Marchetti <vmarchetti@kshell.com><br>Subject: Re: [X3D-Ecosystem] X_ITE vs X3DOM - Missing Texture<br><br>Aaron<br><br>I believe that X3DOM does not traverse the "backup" urls that are included in the TextureImage url field. <br>I see from the x3d file at https://vr.csgrid.org/x3dom/swordtest.x3d that you have supplied 3 urls.<br>I could not determine from your bug description which image files would be accessible in your scenarios.<br><br>A test could be to rearrange your url field in the x3d file ImageTexture node so that the https:// protocol url is first, and ensure that the image file is accessible even under CORS restrictions -- use https://cors-test.codehappy.dev/ to check this.<br><br>Vince<br><br><br><blockquote type="cite">On Mar 11, 2025, at 4:31 PM, Bergstrom, Aaron via X3D-Ecosystem <x3d-ecosystem@web3d.org> wrote:<br><br>Can anyone give me feedback on why my texture does not appear in X3DOM?<br><br>I’ve exported the same 3D sword model from Maya using RawKee, and put them both online.<br><br>The straight up X3D model can be viewed here using X_ITE:<br>https://vr.csgrid.org/x_ite/x_ite.html<br><br>The version of the X3D that is embedded in HTML using X3DOM can be viewed here:<br>https://vr.csgrid.org/x3dom/swordtest.html<br><br>A version that uses an inline node using X3DOM can be found here:<br>https://vr.csgrid.org/x3dom/swordtest2.html<br><br>The ‘Inline’ node in ‘swordtest2.html’ points to the same ‘swordtest.x3d’ file that the ‘x_ite.html’ file points to.<br><br>The X3D part of the code is identical as far as I can tell, but while the ImageTexture is displayed as expected using X_ITE, it is missing from the model when using X3DOM 1.8.3.<br><br>Can anyone tell me why the texture is missing?<br><br>A bit more info…<br><br>I get the same results whether using Chrome, Firefox, or Edge.<br><br>The content found on x3dom.org works just fine.<br><br>I tried using “https://www.x3dom.org/download/x3dom.js” and “https://www.x3dom.org/download/x3dom.css” instead of local versions of those packages, and the texture is still missing.<br><br>The textures are missing whether I open the HTML file to my browser from my local file system, or whether I open the HTML file from a URL.<br><br>And the PNG file is viewable if I visit its URL directly.<br><br>Any feedback is welcome.<br><br>Thanks,<br><br>Aaron<br>-- <br>X3D-Ecosystem mailing list<br>X3D-Ecosystem@web3d.org<br>http://web3d.org/mailman/listinfo/x3d-ecosystem_web3d.org<br></blockquote><br><br>-- <br>X3D-Ecosystem mailing list<br>X3D-Ecosystem@web3d.org<br>http://web3d.org/mailman/listinfo/x3d-ecosystem_web3d.org<br></div></div></blockquote></div><br></div></body></html>