[X3D-Ecosystem] X_ITE vs X3DOM - Missing Texture
Vincent Marchetti
vmarchetti at kshell.com
Tue Mar 11 15:19:07 PDT 2025
Aaron
I believe that X3DOM does not traverse the "backup" urls that are included in the TextureImage url field.
I see from the x3d file at https://vr.csgrid.org/x3dom/swordtest.x3d that you have supplied 3 urls.
I could not determine from your bug description which image files would be accessible in your scenarios.
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.
Vince
> On Mar 11, 2025, at 4:31 PM, Bergstrom, Aaron via X3D-Ecosystem <x3d-ecosystem at web3d.org> wrote:
>
> Can anyone give me feedback on why my texture does not appear in X3DOM?
>
> I’ve exported the same 3D sword model from Maya using RawKee, and put them both online.
>
> The straight up X3D model can be viewed here using X_ITE:
> https://vr.csgrid.org/x_ite/x_ite.html
>
> The version of the X3D that is embedded in HTML using X3DOM can be viewed here:
> https://vr.csgrid.org/x3dom/swordtest.html
>
> A version that uses an inline node using X3DOM can be found here:
> https://vr.csgrid.org/x3dom/swordtest2.html
>
> The ‘Inline’ node in ‘swordtest2.html’ points to the same ‘swordtest.x3d’ file that the ‘x_ite.html’ file points to.
>
> 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.
>
> Can anyone tell me why the texture is missing?
>
> A bit more info…
>
> I get the same results whether using Chrome, Firefox, or Edge.
>
> The content found on x3dom.org works just fine.
>
> 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.
>
> 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.
>
> And the PNG file is viewable if I visit its URL directly.
>
> Any feedback is welcome.
>
> Thanks,
>
> Aaron
> --
> X3D-Ecosystem mailing list
> X3D-Ecosystem at web3d.org
> http://web3d.org/mailman/listinfo/x3d-ecosystem_web3d.org
More information about the X3D-Ecosystem
mailing list