Jump to content

ivan.popelyshev

Members
  • Content Count

    5034
  • Joined

  • Last visited

  • Days Won

    259

ivan.popelyshev last won the day on May 6

ivan.popelyshev had the most liked content!

About ivan.popelyshev

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    https://gameofbombs.com/
  • Twitter
    ivanpopelyshev

Profile Information

  • Gender
    Male
  • Location
    Moscow, Russia
  • Interests
    Pixi.js, Topcoder, Codeforces, ninjas and bombers

Recent Profile Visitors

58661 profile views
  1. looks like a bug. should be reported in pixijs github issues.
  2. or make canvas2d of pow2, draw image there, make texture out of it in pixi, enable mipmapping. Yes, this behaviour is default for ThreeJS, but pixi does like to force users to learn stuff
  3. You cannot change anything inside graphics, you can just "clear" and refill it. However, there's a "tint" property. Make white rectangle, then change "tint" whenever you want. Alternatively, use Sprite with "Texture.WHITE" as texture, and tint it.
  4. There's a demo for v5 too https://www.pixiplayground.com/#/edit/Ngi8fYSPwGGZYnfGIHb9O It was mentioned here: https://github.com/pixijs/pixi.js/wiki/v5-Hacks#re-use-previous-frame-of-filtered-object for v6 you have to update the code a bit because filterSystem most probably was changed
  5. You can also move it to pixijs github discussions , there might be more people from the team
  6. PixiJS binds only existing textures. However with all going on in reset() there's probably a case we missed that leads to unbound texture when multi-texture batcher works. However I'm sick in bed, so you have to wait for someone else to do it, or find on your own , its all in TextureSystem , and batcher does its thing through binding textures array somewhere in the same file, or maybe in BatchSystem / AbstracthBatchRenderer
  7. Well, you have to update pixi-layers to latest, and it will spawn deprecation warnings anyway. Its not yet migrated to new plugin format , but it works Also, probably update viewport. 5.2 5.3 and 6.0 have serious changes for it, i dont know whether it was re-published already for latest v6 features. Theoretically, on v6, viewport should be much faster
  8. "Sprite.from", aka "Texture.from" is sync function and it does load texture at that right moment, only if texture was already in browser cache. So if you call render() only one time, just after you used from() - no guarantees that it will be rendered, after all, how to render something that is not loaded yet? Welcome to javascript. How to solve it: 1. use pixi loader, like in all examples 2. the usual const tex = Texture.from("my.png"); function ready() { //do render } if (tex.baseTexture.valid) { ready(); } else { tex.baseTexture.on('loaded', ready); }
  9. that's the usual 4x3 matrix in 3d, pixi doesnt have it. Emulation is possible , like here: https://pixijs.io/examples/#/plugin-projection/iso-basic.js To do that thing you have to 1. Know how pixijs transforms work. completely. all fields. position,scale,rotation,skew, whatever. 2. Know usual 3d math for basic translation/rotation 3. maybe experiment with pixi-projection or pixi-3d plugins. So, its not exactly newbie material. However you can do it easily if you know how other 2d/3d renderers work internally, pixi is not far behind, its just doesnt have public API for
  10. There are no big breaking changes like there were between v4 and v5. There are breaking things for typescript, we changed the way we do typings. There are also changes in rendering between 5.1 5.2 and 5.3. If you try to update - im here to help. Which plugins do you use?
  11. for me on PC mipmap=2 makes everything better , whether its linear or nearest
  12. alternatively: make image power-of-two size btw ThreeJS does it automatically for all textures. pixi doesnt do this barbaric method.
  13. oh wait, i see it. not pow2.. anyway, check if device has webgl2. if not, you can just host several versions of image - downscaled 2 times, downscaled 4 times and so on, and download one that is a bit bigger than screen. Alternatively, you can do it with canvas2d manually, and give pixi corresponding texture. The whole problem is that downscaling more than 2 times requires mipmapping or manual scaling 2/4/8 times whatever will be close to your resolution
  14. whats the size of texture? does mobile have webgl2?
  15. > Also which method will be faster , to draw the lines or to load them as Sprites from image files ? I know the amount of operations is low here - only 10 lines , but in theory loading them from .png files looks to me the faster method. I dont think there's a difference on 10 lines
×
×
  • Create New...