• Content Count

  • Joined

  • Last visited

  1. Finally I found the solution in 43061-poor-performance-on-panning. My polygon coords where too big (in the order of 10^8). What mostly misleaded me was that batched polygons where draw ok, but not batched ones where drawn wrong. I've solved the problem by making graphics.position equal to the polygon center and, consequently, reducing polygon coords in the order of 10^4. Thanks for your help.
  2. I'm not able to attach images to the post. I always get the following error message: /var/www/html/uploads/monthly_2019_06 could not be created. The jpg file only has 350 KB in size. I have notified the problem to the forum managers.
  3. Well... I have created the following demo: But this demo works correctly. My application is not exactly like this, because it uses webpack for compilation, with the following dependency in my package.json file: "pixi.js": "^5.0.4" I really don't know what is the problem.
  4. Thank you very much. You are right. I get the error if I make: new Graphics().beginFill(color, 1).drawPolygon(N vertices).endFill() with N >= 100 The problem is solved if PIXI.GraphicsGeometry.BATCHABLE_SIZE >= N+1
  5. Using pixi.js v5, I'm trying to fill a polygon with about one hundred vertices using Graphics.drawPolygon(), but the polygon is drawn incorrectly. When I reduce the number of vertices to about 50, then the polygon is drawn correctly. Is there any limit (near 100) to the number of vertices that Graphics.drawPolygon() can draw? Thanks.
  6. I have a PIXI Application in a canvas (not the whole window) with scroll. I have a DisplayObject (Graphics) and I need its bounding rectangle in window coordinates. How can I get this? Method getBounds() provides me with the global coordinates of the object but, how can I convert these global coordinates to window coordinates? Thanks