Jump to content

Search the Community

Showing results for tags 'crossorigin'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 4 results

  1. Hi Guys, I recently using the last version of PIXI.js (1.5.1) and we are dealing with some problems with particular texture (that texture is in another host). Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at XXXXXX may not be loaded. To load the texture i'm using the asset loader and setting the crossorigin property by true. // assetsToInitloader has the url to the texture var preloader = new PIXI.AssetLoader(assetsToInitloader); preloader.onComplete = onAssetsInitloaded; preloader.crossorigin = true; preload
  2. Hi. I using PIXI for add on websait video with mask. Mask in base 64 stored in the same domain as the Library. but safari output error http://prntscr.com/9dzhrw code: if (this.type_ == 'video') { this.texture_ = PIXI.Texture.fromVideo(this.obj_); } else { this.texture_ = PIXI.Texture.fromImage(this.obj_.src, true); } this.sprite_ = new PIXI.Sprite(this.texture_); if (this.mask_) { /** * @type {PIXI.Sprite} * @private */ var mask = PIXI.Sprite.fromImage(this.mask_, true); mask.width = this.render_.width; mask.height = this.
  3. I am new to v3 and running into a couple of issues... Firstly. I am making a game with my Girlfriend to teach her some JavaScript. She is afraid of using commands or installing a webserver on her mac, so I am trying to make crossOrigin work to load textures. I am using an array of objects that store the name and url, I then add the crossOrigin msg "behind the scenes": var textures = [ { name: "burger", url: "images/Hamburger.png" }, { name: "moon", url: "images/Lunaone_1.png" }];var l = textures.length;for ( var i = 0; i < l; i += 1 ) { textures[i].crossOrigin = "Anonymous"; loader
  4. Hello ! I'm trying to load an image from a github repository into via Phaser. I basically do something like this: var path = "https://raw.githubusercontent.com/LadybugRiders/kimisrescue/dev/assets/images/blue_sky.jpg";loader.spritesheet( name, path, width, height);Image that you can see here, just to show you it's accessible. I've tried doing my own XMLHttpRequest, and display the image in a <img></img> and it was working quite well. So, I looked in the forum and then set : loader.crossOrigin = "anonymous"That doesn't work either, as I still get the following error: Image f
×
×
  • Create New...