hi, i'm new in the forum.
i want to load on a page a simple box with an image on it,
i can see with any problem the box with a color i choose.
but when i try to apply the image texture i see nothing change.
there is a particular way to do this?
in the examples that i found apparently there isn't, should be very easy, but i can't see my image texture :(
this is the code i made
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="x3dom.css" />
<h1>XHTML Hello World</h1>
<X3D xmlns="http://www.web3d.org/specifications/x3d-namespace" width='50%' height='50%'>
what pixel-size is your texture?
sounds like a nonPO2Texture problem
Hi, i hadn't read about nonPOT2, and will look at it.
What i had as dirty workaround was to have only 1024x768px images (don't ask me why, but this worked and any other size didn't…)
j milo taylor
in my browser both these examples are working (http://x3dom.org/x3dom/example/x3dom_nonPO2Texture.html) - i am having real problems working with imagetexture of any kind - win 7 64 chrome- no image displaying - is there a bug?
Is your image and html data on the same server?
yes all hosted here http://suborg.net/x3d-imagetexturetest.html (image in a sub dir) shown by way of example below the x3d.
i am totally confused by this - any thoughts?
Why do you have './' at the start of your image url ?
j milo taylor
@zanzibarneon - i presume your question is directed at enricuzi?
you are referring to this line? <ImageTexture url='./myImage.jpg'/>
If the images are in the same directory as the html file then the path then the syntax would be
<ImageTexture url='"myImage.jpg'" />
hi steve -yes i have the images in a sub directory as described by
<ImageTexture repeatS='false' repeatT='false' url='"opensoundx3d/cable.jpg"'/> in http://suborg.net/x3d-imagetexturetest.html
the images are in the correct place (as shown by the image shown below the x3d - the same as should be displayed on the x3d box .
i don't get why its not showing? something to do with the server? something called CORS or something like that?
any ideas? anyone? seems so simple - yet i have tried everything i can think of
If you send me a link to a zip I will try it on my server.
j milo taylor
hi zanzibarneon (steve?),
that's super kind of you - i've posted a zip of html (x3dom) and image to:
can u see anything wrong with this?
Ähm, did you simply forget to place the x3dom.js into your folder? You are pointing to a local file:
After adding the file, the texture is displayed well on the little cube! :-)
thankyou for trying it out. sadly, x3dom.js is in my folder in the location pointed to by the code - ummm???
I tried your model and it works ok for me in the the latest Chrome v16.
But it didn't work in Firefox Beta (v10).
I copied the latest stable x3dom 1.3 files do the same location as x3d-imagetexturetest.html.
These where x3dom.js, x3dom.css, x3dom.swf