Search code examples
x3d

X3D imagetexture too large for browser


I'm creating a panorama in x3d and using a panoramic image as the texture for a sphere. The image I'd like to use for the texture is about 6 megs. This works fine in x3d viewers and chrome, though it takes a couple of seconds to load. Firefox, Safari and Internet Explorer will not apply the texture and leave me with a blank sphere. They don't seem to like images above about 2.5 megs.

Does anyone have an idea for a way around this?


Solution

  • If it's a limitation in the browser there's nothing you can do but you can find a workaround for this:

    1. You could decrease the quality of the image or change some other parameters (compression format) in order to make it smaller (less than 2.5MB).
    2. You can split the image into multiple pieces and then apply the separate pieces to the different parts of the sphere so that in the end you fully cover the sphere as you would have only one image being attached to the sphere.