load_image_from URL and/or Webgl issue

0 favourites
  • 4 posts
From the Asset Store
A Single-Player with Multiple Avatars "En Gard RPG" online tool with hostile encounters and local adventures.
  • Problem Description

    I've noticed this since my last update to 233. I load images from URL into a sprite to save on download size. This has now become problematic. When I ran my programme using Internet Explorer 11, i got an error from the console complaining about a security error in glwrap.js (line 2127, col 4). In this scenario, if i disable webgl, the image loads correctly into the sprite.

    When I was trying to replicate this bug in other browsers, i discovered that I could not get the image to load into the sprite with webgl enabled or disabled.

    Attach a Capx

    http://149.157.140.178/testcase/capx/image_import.capx

    Description of Capx

    single sprite which loads an image upon startup. image hosted on a website of mine.

    sprite is rotated 10 degrees each second, just as a check to prove the programme is running

    Steps to Reproduce Bug

    • load capx
    • run capx

    Observed Result

    with IE11 without webgl, the image is correctly loaded

    with IE11 with webgl enabled, there is a browser warning of a security error in glwrap

    with Firefox 48.02 with webgl enabled and not, the image is not loaded

    with EDGE 38.14393 with webgl enabled and not, the image is not loaded

    Expected Result

    image of a yellow sun replaces black box and is rotated

    Affected Browsers

    • Chrome: (didn't test)
    • FireFox: (YES)
    • Internet Explorer: (YES)
    • Edge: (YES)

    Operating System and Service Pack

    windows 10 professional (v1607)

    Construct 2 Version ID

    233 64bit

  • Closing as not a bug: your server is not configured to share images cross-domain. In fact there is an error message in the browser console explaining this:

    [quote:8bjhoyk2]Image from origin 'http://149.157.140.178' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:50000' is therefore not allowed access.

  • sorry.. missed that..

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ashley

    how to configure a server to share images cross-domain ?

    is this something with the .htaccess file ?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)