Jump to content

problems about no file request in pixi-spine


ironman55
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

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 by ivan.popelyshev
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by ivan.popelyshev
Link to comment
Share on other sites

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 by ivan.popelyshev
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...