Jump to content

Search the Community

Showing results for tags 'Loading assets'.

  • 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
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

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 2 results

  1. In https://doc.babylonjs.com/tutorials/Caching_Resources_in_IndexedDB Note: by default, the Babylon engine is configured to use online resources. So if you don’t provide any .manifest file, it will assume that you want the resources to be loaded directly from the web all the time. Manifest File Using the skull example from your course Introduction to WebGL 3D with HTML5 and Babylon.js the Microsoft Virtual Academy I am getting error; GET /skull/skull.babylon.manifest?1473362205714" Error (404): "Not found". Why would the engine be configured to use online resources and how can one disable this feature? Does this mean everytime I want to load assets like blend, .obj, etc maybe just for a testing I need to create a manifest file? I am using babylon.2.4.
  2. Hello All, I am starting with js and Pixi so please excuse me if there are errors in my description. I am using TexturePacker for my animations. All my images do not fit in a 2048 x 2048 image so I have multiple json files with their respective images (one image for each json file). I am loading the json / image with AssetLoader based on this game: http://www.emanueleferonato.com/2014/02/26/complete-html5-concentration-game-made-with-pixi-js/ For example: var assetsToLoad = [ 'ani1.json', 'ani2.json' ]; and then: var loader = new PIXI.AssetLoader(assetsToLoad);loader.onComplete = onAssetsLoaded;loader.load(); Then when I need the image I use (for example to load the first image in the first json file): var icono = new PIXI.Sprite.fromFrame(0); However I notice that when i load the second json the images are rewriten so the first image of the second json file overrides the first image of the first json loaded. I was expecting that loading two json files or more will append the images to the frame id list. So if the first json has 50 images the first image of the second json file will have frameid = 50 and then 51, 52, etc.. I found that in PIXI.JsonLoader.prototype.onJSONLoaded there is the following code: for (var i in frameData) { ..... PIXI.TextureCache = new PIXI.Texture(this.texture, textureSize, crop, trim); ...... } So this means that every json file loaded will start from 0 the frame id (TextureCache index) since i starts in 0and will overwrite the last ones loaded. A quick fix (but maybe not very clean) was adding a variable to check the frame id counter: PIXI.TextureCache = {};var cacheSize = 0; and then: PIXI.TextureCache[cacheSize++] = new PIXI.Texture(this.texture, textureSize, crop, trim); Is there a correct way of loading multiple json files without modifying pixi source?I tried also loading the json files with PIXI.AtlasLoader instead of PIXI.AssetLoader but was not able to. Thank you Best regards
×
×
  • Create New...