Quantcast
Channel: Pixi.js Latest Topics
Browsing all 3978 articles
Browse latest View live

PIXI canvas freezing 0.2 second every 10 seconds

Hello, I recently noticed every 10 sec my PIXI canvas is freezing 0.2 second, and I don’t have any clue why. CONTEXT dependencies "@types/pixi.js": "^5.0.0" "pixi.js": "^5.3.9", "preact": "^10.4.8",...

View Article


Image may be NSFW.
Clik here to view.

Most effective use of many Graphics objects?

Hi, I have created a nice little top down snow and rain simulator which goes fast in code pen on PIXI v6 but a bit slower on my real project using V5 (for now). Naturally the project has alot more...

View Article


Image may be NSFW.
Clik here to view.

Disable chrome pixijs DevTools for production

Hi guys, any ideas on how to disable the pixijs devtool on production enviroment?   Thank you in advance   Riccardo

View Article

Playable Ads with Pixi Js

Hey! I was wondering if Pixi JS is a good engine to create Playable Ads! For a playable ad I need a single html file with embedded assets and inline javascript. Is there a possibility to do it in Pixi...

View Article

When applying а shader to a sprite, it gets cut off on the bottom and right...

2021-06-25 14-18-28.mkv Hi, I've made a fragment shader that bends and stretches a given texture to give it a fluid flow. Here is the code:   #ifdef GL_ES #define LOWP lowp precision mediump float;...

View Article


Image may be NSFW.
Clik here to view.

Sprites from buffer seem weird when use under blendMode

I had made a codePen demo to show this case(and 2 screen-capture-images below) https://codepen.io/tomleader/pen/jOmNWJG There are 3 buttons(click to see the result) 1. use img: The most common way ,...

View Article

Image may be NSFW.
Clik here to view.

[PIXIJS] [HELP] Drawing polygon inside rectangle with transparency (Hole...

Hello PIXIJS Devs. I am working on Line of Sight in PIXIJS. So far my algo works well. I ecountered on issue, that i can not draw polygon which makes a hole inside a rectangle.  I tried to use mask...

View Article

How to open a link to a website on click?

I am working on an advert game and at the end of the game I need to rout the player to the website of the company that gives the ad. Since I've never done such a thing, I have no idea how to do it. I...

View Article


PixiJS with ThreeJS

Does anyone have experience with setting up PixiJS and ThreeJS together and able to show a quick example? All the examples I've seen appear to be outdated?

View Article


Image may be NSFW.
Clik here to view.

mesh Plane and Rope in new Versions

Hi, I was trying to use Pixi.mesh.Plane to wrap an image around a mug.  you can see the functionality I'm looking for in the attached image. the problem is the fact that Pixi.mesh.Plane and Rope and...

View Article

Pixi resize all containers/sprites/animated sprite/nine slace pane

Hello, I try to resize all pixi.js stuff(containers/sprites/animated sprite/nine slace pane) that are on stage when browser window is resized. I can't find good solution for that as scaling up or down...

View Article

Adding custom Headers parameter to PIXI.Texture.from request

Hey guys! I need to add a UID to my headers for getting Texture (video or images). Is there any way to do this in PIXI? For example: PIXI.Texture.from(testVideo, {header: { 'UID': 'XXX' }}); I also...

View Article

help with HitTest

Trying to do a simple hitTest and found the method in interactions but only getting nulls back.  Something I'm missing below? The sprites in the group have interactive set to true....

View Article


Fullscreen with safari(ios)

hi.  i can draw my game with chrome or explore  but safari can't use fullscreen function like requestFullscreen( how can i draw fullscreen with safari

View Article

What class is used to store/separate sounds?

I am a beginner at JS and pixi.js. Using PIXI.sound.add() or PIXI.sound.Sound.from() work well but, since I saw that SoundLibrary is a class, and I want to have separate groups of sounds for...

View Article


Svg render

Hello I want to upload the svg file to pixi and then when I zoom-in or zoom-out the quality does not change, I used pixi-svg5 but it slows down the system a lot And I use the use tag in svg Can you...

View Article

AbstractBatchRenderer caching null textures

Hello, It's been a long while since I touched pixi.js and trying to update it from 4 to 5. For some reason I stumble upon a situation where the AbstractBatchRenderer has undefined _bufferedTextures....

View Article


Image may be NSFW.
Clik here to view.

How to load .webp files with Pixi.Loader?

I made .webp spritesheets with texture packer, add in pixi.loader .json file that connects that .webp image and I've got an error.  It works on a local machine, but, when i put it on server, loader...

View Article

Filter Buffer

How can I use the buffer function in filters? I want to do something like this

View Article

How to expend/pivot stage when dragging object to edge of rendering screen

function setupBlockDrag() { let isDragging = false let data = null rect.on('pointerdown', onDragStart) rect.on('pointerup', onDragEnd) rect.on('pointermove', onDragMove) function onDragStart(event) {...

View Article
Browsing all 3978 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>