English 中文(简体)
Image texture issue
原标题:

I ve found an issue when deleting a texture from a sphere. I have created a sphere with a texture and it works. Then, I duplicated this file and take the duplicated file and delete the texture from it. After that deletion all the texture in all local files do not appear!

In addition, when I try to open similar files via internet it works again. What is wrong?

Here are 2 images describing the situation. Note the URLs.

问题回答

Due to the cross-domain restrictions on texture loading, you need to serve the image file from the same domain as the html page. Also I believe that if you load the html and image from local file system using "file:///" url, it won t be successful. You will get a SECURITY error depending upon which browser you are using.

Read more about cross-domain restriction on texture loading here.





相关问题
DirectX Sphere Texture Coordinates

I have a sphere with per-vertex normals and I m trying to derive the texture coordinates for the object using the algorithm: U = Asin(Norm.X) / PI + 0.5 V = Asin(Norm.Y) / PI + 0.5 With a polka dot ...

Compiling OpenGL SOIL on Mac OS X

How would I link in or compile SOIL (http://lonesock.net/soil.html) into my C++ OpenGL project on Mac OS X?

Coloring grayscale image in OpenGL

I m trying to draw grayscale image in color as texture in OpenGL using two colors. Black goes to color1 and white goes to color2. Texture is loaded using GL_RGBA. I have tried two solutions: 1) ...

XNA .Fbx textures

I m using the standard .fbx importer with custom shaders in XNA. The .fbx model is UV wrapped properly and is textured appropriately when I use BasicEffect. However when I use my custom effect I have ...

Matrix to Represent a Triangle in Screen Space

So i have a set of four points in 3D Space. P1 [0, 0, 0] P2 [128, 0, 0] P3 [0, 128, 0] P4 [128, 128, 0] Which I m then projecting orthographically to the screen effectively giving me two ...

Can the iPhone simulator handle PVR textures?

I have a really weird problem with PVR textures on the iPhone simulator- the framerate falls through the floor on the iPhone simulator, but on the iPhone itself it works just fine. Has anyone had any ...

热门标签