ironman55 Posted April 7, 2020 Share Posted April 7, 2020 I'm new to pixi and pixi-spine,and my english not so well In normal pixi-spine examples,you just : loader.add('dragontest','assets2/dragon.json') it will auto load the json file,atlas file,and the related png files the thing is,my mission is to avoid http request in my html file like,all your resources need to be in your one html file i know how to deal with a noral sprite load,like using:loader.add('dragontest.png' , 'data:image/png;base64,blablabla....'),you can avoid load file thru http like this but what to do with pixi-spine's json,altas files really bugs me. please please please help me and thank you for your time Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 7, 2020 Share Posted April 7, 2020 (edited) Hello and Welcome to the forums! Yes, its possible with an effort. I think that one will be interesting for you: https://github.com/eXponenta/pixi5-playables-boilerplate , you could find it from https://github.com/pixijs/pixi.js/wiki/v5-Boilerplate . It even has base-84 encoding or something like that spine-related snippets can be found at https://github.com/pixijs/pixi-spine/tree/master/examples Edited April 7, 2020 by ivan.popelyshev ironman55 1 Quote Link to comment Share on other sites More sharing options...
ironman55 Posted April 8, 2020 Author Share Posted April 8, 2020 19 hours ago, ivan.popelyshev said: Hello and Welcome to the forums! Yes, its possible with an effort. I think that one will be interesting for you: https://github.com/eXponenta/pixi5-playables-boilerplate , you could find it from https://github.com/pixijs/pixi.js/wiki/v5-Boilerplate . It even has base-84 encoding or something like that spine-related snippets can be found at https://github.com/pixijs/pixi-spine/tree/master/examples thanks a lot for your time and your response im still confused,because my js isn't so well,i haven't learned typescript and gulp yet,so i dont know what to do with your tips but i tried the example from https://github.com/pixijs/pixi-spine/blob/master/examples/dynamic_texture_atlas.md,but it didn't work for me ,it shows "Region not found in atlas:" i dont know how to use gulp to deal with the boilerplate project im looking for a javascript solution, for my "pixi-spin inline json,atlas,png" problem,like from: http://zh.esotericsoftware.com/blog/Embedding-assets-with-Spine-Web-Player i would like to use pixi-spine and data uri Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 8, 2020 Share Posted April 8, 2020 (edited) > im still confused,because my js isn't so well I suggest you to learn how to debug with devTools. Without debugging: watches, breakpoints, looking in source code - its not possible to make advanced spine loading stuff in pixijs You can do that without typescript, gulp and other things, you just have to remove them. > http://zh.esotericsoftware.com/blog/Embedding-assets-with-Spine-Web-Player This toturial is great, and it makes easy for newbies to use custom loading. Unfortunately, in PixiJS custom loading is advanced stuff (at least not expert) , and it will take time before we make enough documentation for newbies to work with it because of how many other things we are working on. I certainly wont teach person who needs help with commercial project, you have to wait for someone else. For now , you can use spine web player instead of pixijs. Edited April 8, 2020 by ivan.popelyshev Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 8, 2020 Share Posted April 8, 2020 (edited) > but i tried the example from https://github.com/pixijs/pixi-spine/blob/master/examples/dynamic_texture_atlas.md,but it didn't work for me ,it shows "Region not found in atlas:" It should work. You can publish minimal demo in zip file or in one of sites like codesandbox, and people will help you. UPD. Alternatively: if you bought spine from esotericsoftware, you can request their help, and they will request help of pixijs team if this thing is really needed. Edited April 8, 2020 by ivan.popelyshev Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 8, 2020 Share Posted April 8, 2020 Spine plugin is a very difficult thing if you aren't ready to debug it yourself, usually I can guess what is the problem but not in your case. Just give something to work with 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.