ivan.popelyshev

Members
  • Content Count

    2,703
  • Joined

  • Last visited

  • Days Won

    15

ivan.popelyshev last won the day on November 10

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

6,126 profile views
  1. ivan.popelyshev

    Listener mousemove event on Graphics element

    try "pointermove" instead of "mousemove"
  2. ivan.popelyshev

    Playing video on Firefox Android

    They still didnt fix my bug https://bugzilla.mozilla.org/show_bug.cgi?id=1442632
  3. ivan.popelyshev

    How to open zip file with pixi.js?

    http://www.html5gamedevs.com/topic/33036-load-asset-packages/
  4. ivan.popelyshev

    How to open zip file with pixi.js?

    Find how to unzip with javascript, then make a loader extension for it, like here: https://github.com/pixijs/pixi.js/tree/dev/src/loaders
  5. ivan.popelyshev

    Properly Changing Size of Pixijs Renderer

    renderer.view.width = dims.w; renderer.view.height = dims.h; You changed HTML5 canvas element, not the pixi renderer settings. If you search "resize" in this subforum or even in pixi docs, you'll see "renderer.resize" method. As a consequence, it changes canvas size.
  6. ivan.popelyshev

    [Advice] Animation plugin

    You can look at pixi-spine or pixi-animate, how they handle curves and animations. But they are also based on delta's. There's no solution, because when people make their own tool they either make very bad code or hide it behind a paywall. It looks like you need to level-up your skills and make your own timeline and open-source it for everyone
  7. ivan.popelyshev

    how can I use mouse to draw a line

    https://pixijs.io/examples/#/demos/mouse-trail.js Look at this open-source project, for example: https://github.com/wonderunit/alchemancy
  8. ivan.popelyshev

    When loaded images begin to use GPU?

    At first render pass. If you want to upload them before render, look here: http://pixijs.download/dev/docs/PIXI.prepare.html Or use good old "renderer.textureManager.updateTexture(myTexture)"
  9. ivan.popelyshev

    Using React in Pixi? Pixi in React?

    Ok, I'll write here the same thing as in almost every other thread: if you use pixi Application class - drop it. Just copy, look inside, and change it to whatever you want, because its a mashup for hello-worlds. Here's an article about Application :https://github.com/pixijs/pixi.js/wiki/v5-Custom-Application-GameLoop , however InteracitonManager is still inside renderer and you cant move it away. To use pixi with frameworks you have to understand how its components linked between and where to plug in stuff from the framework you chose.
  10. ivan.popelyshev

    How to decrease heating up computer.

    > Any pointers on how to skip rendering cleanly? I like the idea, and given´╗┐ my architecture (where everything is wrapped by accessors) it would be easy enough to set a global "dirty" flag, but I'm not clear on how to explicitly skip a render using the PIXI.Application model. Where can I trap the "I'm about to render" event/call? PixiJS application class is a mashup for hello-worlds and simple demos. For a serious project you have to copy it and make changes: https://github.com/pixijs/pixi.js/blob/dev/src/core/Application.js Everything in this article except interaction ( its still part of "renderer.plugins.application" and not moved separately) is true: https://github.com/pixijs/pixi.js/wiki/v5-Custom-Application-GameLoop
  11. ivan.popelyshev

    Listener mousemove event on Graphics element

    According to https://github.com/pixijs/pixi.js/blob/dev/src/interaction/interactiveTarget.js#L97 , its private method. Strange, its supposed to be public... You can fix that by submitting the pull request there
  12. ivan.popelyshev

    Listener mousemove event on Graphics element

    Add check on "elem.trackedPointers" inside. WHY - I dont know. HOW TO KNOW MORE - read interaction plugin sources: https://github.com/pixijs/pixi.js/tree/dev/src/interaction . InteractionManager is in "renderer.plugins.interaction". If you want different interaction behaviour, you can patch it: in prototype or directly in the instance. Based on my experience, serious projects hack interaction.
  13. ivan.popelyshev

    Poor rendering performance, but why?

    switch off antialias.
  14. ivan.popelyshev

    How to decrease heating up computer.

    Switch antialias to false if you use it. (its off by default, so its ok if you dont know what am i talking about)
  15. ivan.popelyshev

    How to decrease heating up computer.

    If you look at pixi ticker, you'll see that there's setting for target FPS count, but you already implemented your own solution. While Flash had "cacheAsBitmap" setting that AUTOMATICALLY cached ui every time you change it, pixi doesnt have that , you have to use separate canvas or renderTexture to store it. However, if the problem is fragment shader, it'll persist even through cacheAsBitmap. No, there are no other optimizations on pixi side.