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

global shader uniforms (ie. u_time)

Is there a way to globally set the values of certain uniforms, so they don't need to be set on a per shader basis? ie.: uniform vec2 u_resolution; uniform float u_time; It seems to be it might be...

View Article


Image may be NSFW.
Clik here to view.

"Operation is insecure" error in Firefox - Texture.fromVideo(videoElement)

Hello! The project is old so PIXI v.3.0.11 is used. For streaming - Flashphoner via WebRTC Steps to reproduce 1. Start video stream in html video element - stream.start(myDiv) which creates...

View Article


Image may be NSFW.
Clik here to view.

Pixi v5 and sort/zordering

Hi, been struggling with this problem - all the tut's I see online and all the helper libs I see are all for pixi v 4, so how would I go about ordering my sprites so that walls cover tiles, the...

View Article

Structs as uniform type (in fragment shader)

Hello. I'm making example filter with custom fragment shader. This is what I have in terms of shader code so far: //fragShader struct SomeInfo { vec4 color; }; uniform SomeInfo c; void main() {...

View Article

Image may be NSFW.
Clik here to view.

PixiJS Examples

Hi all Just to let you know that we've moved examples for PixiJS version 4 to https://pixijs.io/examples-v4/ and the regular examples page at https://pixijs.io/examples/ are targeting the upcoming...

View Article


Image may be NSFW.
Clik here to view.

How to make a glow / color fade with PIXI.filters.GlowFilter?

I want to add a really big blue glow to the gray hold bar. This example looks pretty good but I want it to look less like a tight border and more like a stretched blue fade out. I tried to accomplish...

View Article

Lazyloading for assets

In my web application (mobile platform) i have heavy assets, aprox 15mb. I there any way to load SD MD HD assets together and update textures of elements with time? Like, we loaded SD -> use SD but...

View Article

Add symbol animation

Hi, i'm new on this forum and also new with pixijs I've started to implement a new slot game, all work fine but i have some problems implementing symbols animations. on stop spin, i'ma able to change...

View Article


rendering to canvas id

How would I go about rendering to a stage that is defined on the html page, as in the <canvas> tag or id within other elements on the page. The examples render directly to the HTML page and not...

View Article


cacheAsBitmap Example

The PIXIV5 cacheAsBitmap example is broken at least when I run it on my computer. The v4 version works fine.  https://pixijs.io/examples/#/demos-basic/cacheAsBitmap.js

View Article

How to run animatedsprite outside ticker

Hey guys, So I have a game where all regular non-animated sprites update and whole game updates in a ticker. Code:   app.ticker.add(delta => gameLoop(delta)); } function gameLoop(delta){...

View Article

Image may be NSFW.
Clik here to view.

Jittery scrolling and how to handle texture frame properly.

No matter what I try or how I implement things, I keep getting some jittery scroll movement. I was using the <canvas> tag before this, without PixiJS and it was a lot of jittery movement. Just...

View Article

Rendering to canvas in css-grid

I'm new to pixi.js and struggling to find a solution in the pixi documents. I want to use a pixi stage on a canvas within a specific cell in css-grid. In fact, I should like to use different pixi...

View Article


Documentation Page Down

Hi, Since yesterday I've been having problems accessing the API Docs (http://pixijs.download/release/docs/index.html). The error reported is this:This site can’t be reached pixijs.download’s server IP...

View Article

Prevent event from propagating to parent

If I have a container and a child of it, and both have "interactable" set to true. I noticed that if I click on the child, both the child and its container get the event. How can I prevent the event...

View Article


Low fps particles

I would like to know what is affecting that my animation has low frames. When the particle size increases, the fps increase, but when the size of the particles decreases, the fps decrease. This is the...

View Article

SVG 'leaking' bug with WebGL renderer on Apple devices

Some time ago there was a bug report of a problem with rendering SVGs in iOS and MacOS, at least older ones. You can see it there: https://github.com/pixijs/pixi.js/issues/3433, but here is a short...

View Article


Image may be NSFW.
Clik here to view.

Refreshing page distorts textures

When it is the first time I open the game and play everything is fine  after a couple of moves, players get new turns, some cards fly around(players get resources, trade etc) and then when I hit page...

View Article

Image may be NSFW.
Clik here to view.

how to register projection plugin in PIXI.canvasRenderer

I'm totally new to pixijs and to game development in general. I need  a help in fixing this error in devices that use canvas if webGL is not available.   Im using projection plugin and it is seems...

View Article

pointerover On the mobile side

I want to be a touch-like game, the pointerover on the mobile side has no effect.

View Article
Browsing all 3978 articles
Browse latest View live