L2L2L Posted December 21, 2014 Share Posted December 21, 2014 Can't load any other png image but what I download with the example:var stage = new PIXI.Stage(x08800ff);var renderer = PIXI.autoDetectRenderer(400,300);document.body.appendChild(renderer.view);var texture = PIXI.Texture.fromImage("image.png");var sprite = new PIXI.Sprite(texture);stage.addChild(sprite);renderer.render(stage); The above is not my code, I just wrote it down to show I know the very basic of what two do. This works with the image I download with the source code, but not my png image. I'm creating my png with an svg editor, and export it as png. Quote Link to comment Share on other sites More sharing options...
L2L2L Posted December 21, 2014 Author Share Posted December 21, 2014 I believe to have found the issues, it had something to do with the file location. If you have any advice toward issues like this or similar, feel free to share them. Quote Link to comment Share on other sites More sharing options...
msha Posted December 21, 2014 Share Posted December 21, 2014 You can't load images from file:/// locations, you need a local web-server, like this one: http://www.html5gamedevs.com/topic/2166-introducing-project-warp/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.